c++ - Usage limitations during the DllMain Attach and Detach process -


one colleague of mine has troubles during dllmain detach process. bug seems not appear in cases, often.

while trying him, kind of remembered of usage limitations during dllmain attach , detach process, not sure remember since 2 year old technical discussions , not me working on thoses termination issues.

namely kind of remember should:

  • avoid using new , delete operator , prefer hglobal memory allocation
  • avoid dealing thread terminations here.

could correct me if wrong, explain me if ever, or point technical article deal these issues.

avoid calling loadlibrary , related apis.

in addition steve's link, here relevant posts raymond chen's the old new thing:


Comments