Apparently, every time a Picture is added to an ImageWell, memory is leaked.
Demonstration: Create a new project, add an ImageWell, StaticText and
a Button. Put this in the Action event of the button. Running it
will show that each loop increases memory usage. The memory is never
released.
Dim pic as Picture
pic = new Picture( 200, 200, 32 )
Dim i as Integer
for i=0 to 1000
ImageWell1.Image = pic
StaticText1.Text = Str( Runtime.MemoryUsed\1024 ) ' shows KB
App.DoEvents()
next
Of course, in my application, I'm showing a different picture each
time, but the memory goes wild. I need a workaround to release the
memory for an old image when a new picture is send to the ImageWell.
I'm running RB 2007 r1 on a Mac with OS X 10.4.8
Jeff
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>