Hi All,
Quick question about performing initialise and clean up code for a COM+ application on startup and shutdown.
Is there a way of doing this which is not too difficult? My managed application has to initialise and clean up some unmanaged resources on startup and shutdown of the application - not each object. These unmanaged resources only amount to calling some functions to initialise or deinitialise some stuff, so there's nothing major.
I would prefer not to have to implement the IProcessInitializer interface, so I'm wondering if there is a way of doing this really simply with existing methods and code. My component does inherit from ServicedComponent in the normal way by the way.
Thanks in advance,
David
Quick question about performing initialise and clean up code for a COM+ application on startup and shutdown.
Is there a way of doing this which is not too difficult? My managed application has to initialise and clean up some unmanaged resources on startup and shutdown of the application - not each object. These unmanaged resources only amount to calling some functions to initialise or deinitialise some stuff, so there's nothing major.
I would prefer not to have to implement the IProcessInitializer interface, so I'm wondering if there is a way of doing this really simply with existing methods and code. My component does inherit from ServicedComponent in the normal way by the way.
Thanks in advance,
David