File IO in DllMain RRS feed

  • Question

  • Hi

    Is it safe to call file IO routines in DllMain()? I suppose it depends upon when that DLL is loaded, i.e. if it is loaded BEFORE the file IO related modules have been loaded, it should be fine. Otherwise it isn't. Is this a fair comment? Any thoughts on this?

    The background behind my question is that I was trying to debug a custom DLL for my project and had added some logger statements in the DllMain() to tell me when the dll is being loaded/unloaded.



    PS My platform is WinCE R3.

    Wednesday, May 9, 2012 3:09 PM

All replies