Re: What function runs when HL is shut down? -
29-10-2004
Pierre, I have a lot of things to try out now but so little time.
I did test the library constructor/destructor functions and they did execute, and it looked like the constructor executes as the very first thing and before any other global classes have initialized. The library destructor seemed to execute as the last thing to destruct. Now having said that I have to investigate this behaviour in a lot more detail to determine for certain what is going on. Botman already gave me the suggestion to read through the man pages, and there's tons of info in there for me to look over before I go about asking more questions - I only skimmed through it as of this point. Finally, I reallly REALLY have to figure out how the C++ compiler decides in what order things get contructed and destructed since such a thing is very important to understand, and hopfully gain control over.
I'll be posting in the other thread whatever I learn. This thread is just a quick and dirty fix for a broken feature the mEAn mod had when it runs under linux.
Maker of the (mEAn) Bot.Admin Manager
"In theory, there is no difference between theory and practice. But, in practice, there is." - Jan L.A. van de Snepscheut
|