A
Alan Franzoni
Hello,
I've got a complex data structure (graph-like). Each of my nodes may
reference zero or more other nodes, internally managed by a set() object.
I have a root node which is not referenced by any other node. So, I
created a "clear()" method which is called on all children (by calling
their clear() method" and then clears the set with the references of the
node itself.
I have a serious "leak" issue; even though I clear all those sets and I
delete all the references I can have to the current namespace, memory is
not freed.
I have tried the gc module and it couldn't help (I can't determine where
the references are) and I tried using weakref.ref as well to connect
object, but then I have problems (objects have no more references to
them beside their parents, hence they get deleted).
I understand it's impossibile to tell what's my problem without seeing
the actual code (which I can't post) but I'm asking if there's any
tool/debugger I could employ in order to track what's happening.
Thanks!
--
Alan Franzoni <[email protected]>
-
Togli .xyz dalla mia email per contattarmi.
Remove .xyz from my address in order to contact me.
-
GPG Key Fingerprint (Key ID = FE068F3E):
5C77 9DC3 BD5B 3A28 E7BC 921A 0255 42AA FE06 8F3E
I've got a complex data structure (graph-like). Each of my nodes may
reference zero or more other nodes, internally managed by a set() object.
I have a root node which is not referenced by any other node. So, I
created a "clear()" method which is called on all children (by calling
their clear() method" and then clears the set with the references of the
node itself.
I have a serious "leak" issue; even though I clear all those sets and I
delete all the references I can have to the current namespace, memory is
not freed.
I have tried the gc module and it couldn't help (I can't determine where
the references are) and I tried using weakref.ref as well to connect
object, but then I have problems (objects have no more references to
them beside their parents, hence they get deleted).
I understand it's impossibile to tell what's my problem without seeing
the actual code (which I can't post) but I'm asking if there's any
tool/debugger I could employ in order to track what's happening.
Thanks!
--
Alan Franzoni <[email protected]>
-
Togli .xyz dalla mia email per contattarmi.
Remove .xyz from my address in order to contact me.
-
GPG Key Fingerprint (Key ID = FE068F3E):
5C77 9DC3 BD5B 3A28 E7BC 921A 0255 42AA FE06 8F3E