| Bug #29566 | Cant load dynamic library "libmySQL.dll" via "LoadLibrary" in optimized version | ||
|---|---|---|---|
| Submitted: | 5 Jul 2007 7:48 | Modified: | 5 Jul 2007 12:15 |
| Reporter: | Jaromir Prinzler | Email Updates: | |
| Status: | Duplicate | Impact on me: | |
| Category: | MySQL Server: Compiling | Severity: | S3 (Non-critical) |
| Version: | 5.0.41 | OS: | Windows (XP Pro SP2) |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | 5.0.41, libmySQL.dll, LoadLibrary | ||
[5 Jul 2007 12:15]
MySQL Verification Team
Thank you for the bug report. Duplicate of bug; http://bugs.mysql.com/bug.php?id=28358

Description: Hello ! I hope you can understand me ;-) I use the "libmySQL.dll" via "LoadLibrary" on my Windows Applications. Now i must update to Version 5.0.41 and the library function abobe says that i cant load this library. The Windows API errormessage says "Unzulässiger Zugriff auf einen Speicherbereich" or better "Invalid accesses to a memory area". This effect i have when i use the optimized version from your ".\mysql-5.0.41-win32\lib\opt". the debug version on ".\mysql-5.0.41-win32\lib\debug" works fine - i can load this version perfectly. The last version i have used is "5.0.37" and it works. How to repeat: HINSTANCE hLibrary = LoadLibrary("libmySQL.dll"); if(!hLibrary) { LPVOID lpMsgBuf; FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER|FORMAT_MESSAGE_FROM_SYSTEM, NULL, GetLastError(), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR) &lpMsgBuf, 0, NULL); printf("%s\n", (char *) lpMsgBuf); LocalFree(lpMsgBuf); } FreeLibrary(hLibrary); Suggested fix: No idea ?!