|
Estaban,
As far as I know (from design and from use), resources are freed up
automatically, as per Dolphin's usual mechanism, and you don't even need to
use #finalize. I've had apps where I've shown over a thousand bitmaps at a
time with no problem.
> I ask this, because in the task manager, showing GDI Objects column, i see
a
> lot of GDI objects when Dolphin is running, almost many as explorer.exe
has.
> And I don't know if i'm making a memory leak somewhere.
Frankly I'm not sure if the task manager distinguishes between GDI and GDI+
objects. I too see a lot of GDI objects when Dolphin is running - e.g.,
when I open the PackageBrowser it seems to add about 50 GDI objects. I
assume there's no memory leakage from OA's stuff, otherwise we would have
heard something by now. Though I can't guarantee memory leakage from the
GDI+ stuff, I don't think there is any leakage. BTW, a good tool to use to
see what objects are in your image is Chris Uppal's "Space Breakdown" -
thanks again, Chris.
For sure, if you do see memory problems or objects not being gc'd ...
holler.
-- Louis
|