> I think most of my problems were caused by trying to do stuff in the > DLL_PROCESS_DETACH section of DllMain that shouldn't be done there. > OleUninitialize, setting events, causing threads to run, suspend and finally > exit...all too much as consequences of FreeLibrary call. >
I am glad you seem to have a solution. It still is a mystery to me why it worked for some people and not others, although there was that tantalizing hint about it depending on whether the process that ran the script was started with PowerPro or not (but note that all that happens when you run a ppro command line is that a message gets sent with that command line to main running instance of PPro with wm_copydata and then the process started by the command line dies). In any event, I guess it will remain a mystery. Kinda like how they get the caramel into caramilk, (now google-able).
