[python-win32] Problem with python-win32

2006-08-25 Thread guillaume . dauguet
Hi, I'm an engineer from France and I use PythonWin very often. I Have one question please : I'd like to run a function from a library included in the "Tools=>COM Browser=>Registered Type Librairies" menu. This library is called "Bibiothèque de pilotage de Scandiag" and I'd like to run from th

[python-win32] Memory Consumption when running Python COM Script

2006-08-25 Thread Johan Lindvall
Hi,We are having performance problems when running python COM Scripts. The app starts it own internal scripting engine and if we use _vbscript_, everything is fine. If we use PythonScript, the app consumes large amounts of memory (up to 3 GB) and the crashes because it runs out of memory. This is t

[python-win32] Unexpected exception in gateway method 'AddTypeLib' with own Active Script Host

2006-08-25 Thread Johan Lindvall
Hi,We are sometimes getting the error below when running a Python script in our app.We are calling AddTypeLib on the IActiveScript interface.It always works with VB-scripts and sometimes fails with Python. What could be the problem?===pythoncom error: Une

Re: [python-win32] ADO memory leak?

2006-08-25 Thread Jim Vickroy
Roger, Attached are 2 scripts (ado-mem-test-04.py, ado-mem-test-05.py) for testing possible ADO memory leak problems. ado-mem-test-04.py appears to exhibit a steady increase in memory requirements with time; ado-mem-test-05.py does not appear to exhibit this behavior. The primary difference

Re: [python-win32] Problem with python-win32

2006-08-25 Thread Jim Vickroy
[EMAIL PROTECTED] wrote: Hi, I'm an engineer from France and I use PythonWin very often. I Have one question please : I'd like to run a function from a library included in the "Tools=>COM Browser=>Registered Type Librairies" menu. This library is called "Bibiothèque de pilotage de Scandi

[python-win32] Re: ADO memory leak?

2006-08-25 Thread Roger Upole
Looks like there's a refcount leak in the date conversion somewhere. Distilled down some more, if you change the last few lines of the script to parameter = command.Parameters.Item('@%s' % column.Name) for x in xrange(1): parameter.Value = datetime.datetime.now() the total refcount

Re: [python-win32] Problem with python-win32

2006-08-25 Thread Tim Roberts
Jim Vickroy wrote: > [EMAIL PROTECTED] wrote: > >> >>Hi, >> >>I'm an engineer from France and I use PythonWin very often. I Have one >>question please : I'd like to run a function from a library included in the >>"Tools=>COM Browser=>Registered Type Librairies" menu. This library is >>called "Bibi

Re: [python-win32] Problem with python-win32

2006-08-25 Thread Michel Claveau
Bonjour ! Le ProgID est une chaîne de caractères. A chaque ProgID est associé un CLSID (chaîne de chiffres et lettres entre accolades). Perso, je trouve les ProgID avec Regedit, dans HKEY_CLASSES_ROOT\CLSID\...\ProgID (où ... est le CLSID) Le CLSID peut être affiché avec VB (et sans dout

Re: [python-win32] Shape file field update problem

2006-08-25 Thread Ahmed, Shakir
HI, I generated this python script from Arc GIS Model, tried to run from python win but getting error. I am trying to update a text field from a date filed data. Any help is highly appreciated. add_field.py # Created o

Re: [python-win32] Shape file field update problem

2006-08-25 Thread Gabriel Genellina
At Friday 25/8/2006 17:49, Ahmed, Shakir wrote: I generated this python script from Arc GIS Model, tried to run from python win but getting error. I am trying to update a text field from a date filed data. Any help is highly appreciated. # Calculating the fields to the date as a text field gp.