Windows XP Prof. Eng.
ActivePython 2.2.1 Build 222
VPython 2002-12-12
VPython quickly (about 1M/sec) eats up memory when executing EMWave.py, that can be downloaded from:
http://www.physics.syr.edu/~salgado/software/vpython/
Main loop don't seem to contain object creation. Circular references may cause this, but I doesn't know enough of VPython to figure out more. I'll execute any test scripts on request.
Best wishes: - Complex -
Logged In: YES
user_id=676765
The mouse functionality had a memory leak due to passing
values to Python on the heap instead of on the stack. It
has been fixed in CVS. Now we pass values by reference.
Not perfect, but it works well for now.
Thank you for your report,
Jonathan
Logged In: YES
user_id=676765
Followup:
The proper way to pass Python an outgoing object is through
the FromAPI() constructor. asObject, asVector, and
asImmutableVector are specialized versions of this constructor.