F
Fernando Cacciola
Hi,
In the context of C#:
Comming from C++ and new to C# it just ocurred to me to put some code in
the finalizer of a class as a mean to commit changes whatever happens.
It would have worked right if it were not for the fact that when I close the
application this finalizer is called after GDI+ uninitializes,
and so, for instance, creating a new Matrix() object raises a "GDI+ is not
properly initialized".
I think I'll forget about using the finalizer for this, but anyway, I'm
curious: is there any way to have some control of the order of finalization,
or at least to tell whether some resource, like GDI+, was finalized already?
TIA
Fernando Cacciola
SciSoft
In the context of C#:
Comming from C++ and new to C# it just ocurred to me to put some code in
the finalizer of a class as a mean to commit changes whatever happens.
It would have worked right if it were not for the fact that when I close the
application this finalizer is called after GDI+ uninitializes,
and so, for instance, creating a new Matrix() object raises a "GDI+ is not
properly initialized".
I think I'll forget about using the finalizer for this, but anyway, I'm
curious: is there any way to have some control of the order of finalization,
or at least to tell whether some resource, like GDI+, was finalized already?
TIA
Fernando Cacciola
SciSoft