Eric Lavitsky
Guest
|
Posted:
Fri Dec 16, 2005 9:30 am Post subject:
VB6 WMP.DLL Access Violation |
|
|
I'm trying to create an OCX using VB6 with WMP 10 embedded, and I'm having some
stability issues. When I exit my application that uses the OCX, I get an access
violation. The steps to reproduce this and details on the exception are
included below. Can anyone explain why this is happening and provide a fix?
Create a project with one form.
Add a component reference to wmp.dll
Add a User Control to the project
Add an instance of the wmp control to the user control
Add an instance of the user control to the main form
Compile the program
Open the program in the debugger (WinDbg)
Run the program and close the main form window
You will get the following exception:
(13ec.32c): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
eax=00000004 ebx=00d81d84 ecx=7c809f12 edx=feeefeee esi=00001000 edi=feeefef1
eip=7c809eec esp=0012feb4 ebp=0012fee0 iopl=0 nv up ei pl zr na po nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00010246
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\system32\kernel32.dll -
kernel32!IsBadReadPtr+0x39:
7c809eec 8a02 mov al,[edx] ds:0023:feeefeee=??
c0000
The system seems to be freeing something twice (off the heap, I
presume). The application doesn't exit properly.
Tnx!
Eric
|
|