image zoom memory problem

agraham

Expert
Licensed User
Longtime User
I think I now realise (blinding flash during dinner tonight - must have been the wine!) the (so bleeding obvious and I have actually encountered it before in another context but totally forgot about it) problem with memory use by BitmapEx. I need to think about it to come up with a way to restructure the use of BitmapEx so that you don't inadvertently cause it to happen. In the meantime the Dispose workaround is a valid solution to the problem.
 

agraham

Expert
Licensed User
Longtime User
I was right about the problem and while checking it found it was caused by a memory leak in the Basic4ppc treatment of library objects that have New called on them more than once so I don't need to to anything to ImageLibEx.

Erel agrees it is a bug and will hopefully fix it for the next version after which you won't need to Dispose and AddObject to free memory.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…