e=ForceEngine()
for k in range(1000):
e.ids=range(0,1000000)
While this, of course gives no problem:
ids=[]
for k in range(1000):
ids=range(0,1000000)
It is very annoying because it is a common situation (although fortunately we assign small things in most cases so the leak is unnoticed).
It sounds like a broken reference counting.
If so, the solution must be somewhere in Serializable.hpp, maybe _DEF_READWRITE_BY_VALUE?
But I'm still clueless overall.
Yet another example leaking:
e=ForceEngine() range(0, 1000000)
for k in range(1000):
e.ids=
While this, of course gives no problem: range(0, 1000000)
ids=[]
for k in range(1000):
ids=
It is very annoying because it is a common situation (although fortunately we assign small things in most cases so the leak is unnoticed).
It sounds like a broken reference counting. BY_VALUE?
If so, the solution must be somewhere in Serializable.hpp, maybe _DEF_READWRITE_
But I'm still clueless overall.