List:MySQL on Win32« Previous MessageNext Message »
From:cryo Date:August 9 1999 10:57pm
Subject:access violation in libmysql.dll from ActiveX dll
View as plain text  
Hi!

Following scenario:

I have a ActiveX-Dll built with VC++5.0. It is a Browser Helper Object.
That means, it attaches at run-time to Internet Explorer, and displays a
custom toolbar in the same area the other toolbars from IE reside. This
toolbar must communicate with a mySQL DB running on a freeBSD machine.
So i added the mysqllib.lib to the library path and placed the
libmysql.lib in the \winnt\system32 path and tried to call
mysql_real_connect() from my init function. At that point, IE craches
with an access violation (0xC000005) in libmysql.dll.

Is there any other, more generic way to accomplish what im trying to do?
Does the crash have to do with my dll being multithreaded?
(the sample program from the shareware version works OK)

Here the last lines of the debug trace: (HurraAssistentIE.dll is my DLL)

Loaded 'D:\WINNT\system32\RPCLTC1.DLL', no matching symbolic information
found.
Loaded 'D:\WINNT\system32\OleAut32.dll', no matching symbolic
information found.
LDR: Automatic DLL Relocation in IEXPLORE.EXE
LDR: Dll LIBMYSQL.dll base 10000000 relocated due to collision with
E:\MyProjects\HurraAssistentIE\Debug\HurraAssistentIE.dll
Loaded 'D:\WINNT\system32\libmySQL.dll', no matching symbolic
information found.
Loaded 'D:\WINNT\system32\wsock32.dll', no matching symbolic information
found.
Loaded 'D:\WINNT\system32\WS2_32.DLL', no matching symbolic information
found.
Loaded 'D:\WINNT\system32\WS2HELP.DLL', no matching symbolic information
found.
First-chance exception in IEXPLORE.EXE (LIBMYSQL.DLL): 0xC0000005:
Access Violation.
The program 'D:\Programme\Plus!\Microsoft Internet\IEXPLORE.EXE' has
exited with code 1 (0x1).


Please help me out, im quite stuck right now. The only workaround that
comes to mind is developing another "normal" dll to handle the mySQL
stuff, and let both communicate over some standard way.

thank you in advance

Marcelo "[CRY0]" Emmerich
Thread
access violation in libmysql.dll from ActiveX dllcryo9 Aug
  • access violation in libmysql.dll from ActiveX dllMichael Widenius17 Aug