Issue 360 in pymt: How freeing memory allocated by MTLabel?

1 view
Skip to first unread message

py...@googlecode.com

unread,
Oct 11, 2011, 5:36:25 AM10/11/11
to pymt-...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 360 by ozzac...@yahoo.it: How freeing memory allocated by MTLabel?
http://code.google.com/p/pymt/issues/detail?id=360

What steps will reproduce the problem?

The following code shows that memory allocated by labels is never released
(you only need to have a look in the Windows task manager at the memory
allocated by the Python process):

plane = MTScatterPlane()
mylabels = []
for i in xrange(200):
label = MTLabel(label='Hello World', pos=(i,i), font_size=i)
plane.add_widget(label)
mylabels.append(label)

for label in mylabels:
plane.remove_widget(label)
del label

runTouchApp(plane)


What is the expected output? What do you see instead?

The memory must be freed when a label is no more used; or it must be a
method to force the de-allocation (what?).

What version of the product are you using? On what operating system?

PyMT v0.5.1; Windows 7 (64bit)

Please provide any additional information below.
The problem does not seem to be related to the use of the internal Cache
integrated in the MTLabel implementation (even when disabled the problem
persists).


Reply all
Reply to author
Forward
0 new messages