My app loads several user plugins while starting using the LoadLibrary function.
_handle = LoadLibrary(fileName);
if (! _handle)
{
printf("GetLastError: %d\n", GetLastError());
return false;
}
return true;
Until now, it works. Since few days, despite the fileName is valid, the LoadLibrary function fails and GetLastError returns 6 (ERROR_INVALID_HANDLE).
This behavior is not systematic. Sometime the LoadLibrary function succeed.
Any ideas on how to debug this and find why my app cannot loads the plugins ?