Boehm, Hans wrote: > It still seems like allocating memory inside DllMain is risky? > Especially if it's done through GC_INTERNAL_MALLOC, which > can trigger a GC, etc. <snip> I use GlobalAlloc instead. That seems safe to me - if it wasn't, that would break any C++ program that allocates in a constructor for static data. Ben.