Export (0) Print
Expand All

dllMainReturnsFalse MDA

The dllMainReturnsFalse managed debugging assistant (MDA) is activated if the managed DllMain function of a user assembly, called with reason DLL_PROCESS_ATTACH, returns FALSE.

The DllMain function returned FALSE, indicating that it did not execute properly. This can cause undetermined issues because DllMain functions typically contain important initialization code.

The DllMain function is called with reason DLL_PROCESS_ATTACH for DLL initialization upon load. If it returns FALSE, it means that DLL initialization failed.

Analyze the code of the DllMain function of the failed DLL and identify the cause of the initialization failure.

This MDA has no effect on the CLR. It only reports data about the return value for DllMain.

A message indicating that a DllMain function, called for reason DLL_PROCESS_ATTACH, returned FALSE. Note that this MDA is activated only if DllMain is implemented in managed code.

<mdaConfig>
  <assistants>
    <dllMainReturnsFalse />
  </assistants>
</mdaConfig>

Community Additions

ADD
Show:
© 2014 Microsoft