In a DLL which hooks the mouse for all threads with a 'SetWindowsHookEx(WH_MOUSE, MouseHook, hookDLL.m_hInstance, 0);' call and VLD being used, the execution of the above to set the Windows hook causes Visual Studio to crash and close. This is the case even when the hook procedure does nothing but pass the hook onto the next caller with a CallNextHookEx call. If the hook procedure only hooks the mouse for the current thread there is no problem with VLD.
↧