Windows. By the way, the GarbageCollector fixes does not seem to be in
the latest trunk yet - is this correct?
- Frank
On 02/03/2010 10:42 AM, Jelle Feringa wrote:
What platform Frank?
On Mar 2, 2010, at 6:12 PM, Frank Conradie wrote:
Thanks Thomas! Any chance of a new or interim release in the very
near future? I am not currently able to build the SVN myself with all
the new Salome stuff (although I guess I should get it building
sooner rather than later ;)
Cheers,
Frank
On 02/03/2010 6:35 AM, Thomas Paviot wrote:
Hi,
This issue closed. See:
*Changeset: http://code.google.com/p/pythonocc/source/detail?r=904
*Issue Tracker:
http://code.google.com/p/pythonocc/issues/detail?id=6&can=1
<http://code.google.com/p/pythonocc/issues/detail?id=6&can=1>
Thomas
2010/2/19 Jelle Feringa <jelleferi...@gmail.com
<mailto:jelleferi...@gmail.com>>
Ai, of course, I recall, sorry 'bout that… well, I guess we
agree that it should be good to integrate the code Frank produced…
On Feb 19, 2010, at 1:27 PM, Thomas Paviot wrote:
Jelle,
There's already one unit test for the GarbageCollector module
(see below), but I agree we shoul build a more complete set of
unit tests dedicated to the memory management issue.
Thomas
*class* Test(unittest.TestCase):
*def* *testGarbageCollector*(self):
*'''
Test GarbageColector features
'''*
*print* *'Test: GarbageCollector'*
number_of_collected_objects_1 =
len(GarbageCollector.garbage._collected_objects)
h = Standard_Transient().GetHandle()
/# The Standard_Transient object was deleted, it should now be in
the garbage
/ number_of_collected_objects_2 =
len(GarbageCollector.garbage._collected_objects)
self.assertEqual(number_of_collected_objects_2-number_of_collected_objects_1,1)
self.assertEqual(h.IsNull(), False)
/# Now free memory, i.e. kill all objects
/ GarbageCollector.garbage.purge()
/# Now the handle should be NULL, since the Standard_Transient
object was killed
/ self.assertEqual(h.IsNull(), False)
2010/2/19 Jelle Feringa <jelleferi...@gmail.com
<mailto:jelleferi...@gmail.com>>
This has been an impressive thread to follow! Thanks for
your work Thomas & Frank, very interesting! Who knows we
can use your script as the start of a unit test.
Thanks,
-jelle
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org <mailto:Pythonocc-users@gna.org>
https://mail.gna.org/listinfo/pythonocc-users
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org <mailto:Pythonocc-users@gna.org>
https://mail.gna.org/listinfo/pythonocc-users
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org <mailto:Pythonocc-users@gna.org>
https://mail.gna.org/listinfo/pythonocc-users
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org <mailto:Pythonocc-users@gna.org>
https://mail.gna.org/listinfo/pythonocc-users
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users