A
Alain Dekker
Hi,
I know the automatic garbage collection is supposed to be "better" but
having spent my programming life looking after memory myself, I don't like
the fluffiness of it. OK, rant over.
I display a startup form, then overlay another "main run screen" when all
startup actions are complete. As part of that startup I display a bunch of
pretty images, changing on a timer tick event, in the startup screen.
I've cached those images (they're embedded into the EXE) into an array and
then cycle through the images as the startup goes on. Problem is that when I
overlay the main run screen, the memory from these images is never released.
Is there any way I can force C# to give me back the memory? There doesn't
seem to be any "delete" keyword like there is in C++ and its not going to be
simple to convert the code into a "using" clause.
Thanks,
Alain
I know the automatic garbage collection is supposed to be "better" but
having spent my programming life looking after memory myself, I don't like
the fluffiness of it. OK, rant over.
I display a startup form, then overlay another "main run screen" when all
startup actions are complete. As part of that startup I display a bunch of
pretty images, changing on a timer tick event, in the startup screen.
I've cached those images (they're embedded into the EXE) into an array and
then cycle through the images as the startup goes on. Problem is that when I
overlay the main run screen, the memory from these images is never released.
Is there any way I can force C# to give me back the memory? There doesn't
seem to be any "delete" keyword like there is in C++ and its not going to be
simple to convert the code into a "using" clause.
Thanks,
Alain