Jul-29-2020, 03:15 PM
What you describe is not normal behavior, so all you have to do is find the bug in you code.
To get much help you really have to wrap you python code inside python tags.
Without proper formatting it is hard to read your code. Without all the relevant code it is hard to find your error. My guess is you are deleting entries by creating new entries. If there is no reference to an Entry it gets gobbled up by garbage collection. All Python objects have a reference count. The count is essentially how many variables are mapped to the object.
When the count drops to zero the object is deleted and memory is returned to the heap to be reused. Each time you call obj.subframe_AGap(), obj.jobNameA_entry gets pointed at a new Entry. That means it no longer points to the existing entry. If obj.jobNameA_entry was the only variable mapped to the Entry the reference count drops to zero and the Entry object gets deleted.
Though what I say is correct it may not be what is causing your problem. If you could create a small working example that demonstrates the problem I'm sure someone will give you a better answer.
To get much help you really have to wrap you python code inside python tags.
Quote:There is a little python button in the toolbar for doing this.[python]
code goes here
[/python]
Without proper formatting it is hard to read your code. Without all the relevant code it is hard to find your error. My guess is you are deleting entries by creating new entries. If there is no reference to an Entry it gets gobbled up by garbage collection. All Python objects have a reference count. The count is essentially how many variables are mapped to the object.
When the count drops to zero the object is deleted and memory is returned to the heap to be reused. Each time you call obj.subframe_AGap(), obj.jobNameA_entry gets pointed at a new Entry. That means it no longer points to the existing entry. If obj.jobNameA_entry was the only variable mapped to the Entry the reference count drops to zero and the Entry object gets deleted.
Though what I say is correct it may not be what is causing your problem. If you could create a small working example that demonstrates the problem I'm sure someone will give you a better answer.