VB6 EXE crash, with IDE OK. Event sink in VM60.dll 
Author Message
 VB6 EXE crash, with IDE OK. Event sink in VM60.dll

I have a project made up of a C++ in process OLE server and VB client.  I am
using Studio 6 with the full SP1.

The VB6 compiled EXE crashes with an application error when the OLE server
fires an event.  The program does NOT crash if I run the program in the VB
IDE.

Under Studio V5 the same code works fine.

Has anyone got a clue what to do or seen something similiar?
What are the differences between an EXE and the VB IDE?

The Dr Watson log points to a problem in the EVENT_SINK_Invoke function of
MSVBVM60.dll:

function: EVENT_SINK_Invoke
        6600ea38 55               push    ebp
        6600ea39 8bec             mov     ebp,esp
        6600ea3b 56               push    esi
        6600ea3c 8b35a8100066
ds:660010a8=77f1d1c3
                                  mov     esi,[Ordinal946+0x10a8 (660010a8)]
        6600ea42 ff3500001166     push    dword ptr [66110000]
ds:66110000=00000004
        6600ea48 ffd6             call    esi
FAULT ->6600ea4a 83783400         cmp   dword ptr [eax+0x34],0x0
ds:00c1ea06=????????
        6600ea4e 0f855fa00700     jne     EVENT_SINK_AddRef+0x25467
(66088ab3)
        6600ea54 6683783800       cmp     word ptr [eax+0x38],0x0
ds:00c1ea07=????
        6600ea59 0f8554a00700     jne     EVENT_SINK_AddRef+0x25467
(66088ab3)
        6600ea5f ff3500001166     push    dword ptr [66110000]
ds:66110000=00000004
        6600ea65 ffd6             call    esi
        6600ea67 f680a000000002   test    byte ptr [eax+0xa0],0x2
ds:000000a0=??
        6600ea6e 0f853fa00700     jne     EVENT_SINK_AddRef+0x25467
(66088ab3)
        6600ea74 ff7528           push    dword ptr [ebp+0x28]
ss:02c0e4da=????????
        6600ea77 ff7524           push    dword ptr [ebp+0x24]
ss:02c0e4da=????????
        6600ea7a ff7520           push    dword ptr [ebp+0x20]
ss:02c0e4da=????????
        6600ea7d ff751c           push    dword ptr [ebp+0x1c]
ss:02c0e4da=????????

*----> Stack Back Trace <----*

FramePtr ReturnAd Param#1  Param#2  Param#3  Param#4  Function Name
01fefad4 5f588000 0014321c 00000001 5f59b488 00000000
MSVBVM60!EVENT_SINK_Invoke
01fefbe4 1001265d 00000001 00000001 00000000 00000000 !Ordinal2063
01fefccc 1001390d 01391600 00000001 100946d4 01392c0c !<nosymbols>
01fefd94 1002ea5f 0138b0d4 00000003 00000001 10215e68 !<nosymbols>
01fefee0 5f4385c4 0138a498 10215e68 01cef8cc 01394220 !<nosymbols>
01feff84 1020c323 01cefa40 10215e68 01cef8cc 01394220 !Ordinal1879
01feffb8 77f04f2c 01394220 10215e68 01cef8cc 01394220 !beginthreadex
01feffec 00000000 00000000 00000000 00000000 00000000 kernel32!lstrcmpiW
00000000 00000000 00000000 00000000 00000000 00000000 !<nosymbols>



Sun, 22 Apr 2001 03:00:00 GMT  
 VB6 EXE crash, with IDE OK. Event sink in VM60.dll
The difference is that by default IDE uses p-code whereas EXE uses native
code. Try to make a p-code exe. Try to play with the various optimization
levels.

Eberhard Franz



Quote:
> I have a project made up of a C++ in process OLE server and VB client.  I
am
> using Studio 6 with the full SP1.

> The VB6 compiled EXE crashes with an application error when the OLE
server
> fires an event.  The program does NOT crash if I run the program in the
VB
> IDE.

> Under Studio V5 the same code works fine.

> Has anyone got a clue what to do or seen something similiar?
> What are the differences between an EXE and the VB IDE?

> The Dr Watson log points to a problem in the EVENT_SINK_Invoke function
of
> MSVBVM60.dll:

> function: EVENT_SINK_Invoke
>         6600ea38 55               push    ebp
>         6600ea39 8bec             mov     ebp,esp
>         6600ea3b 56               push    esi
>         6600ea3c 8b35a8100066
> ds:660010a8=77f1d1c3
>                                   mov     esi,[Ordinal946+0x10a8
(660010a8)]
>         6600ea42 ff3500001166     push    dword ptr [66110000]
> ds:66110000=00000004
>         6600ea48 ffd6             call    esi
> FAULT ->6600ea4a 83783400         cmp   dword ptr [eax+0x34],0x0
> ds:00c1ea06=????????
>         6600ea4e 0f855fa00700     jne     EVENT_SINK_AddRef+0x25467
> (66088ab3)
>         6600ea54 6683783800       cmp     word ptr [eax+0x38],0x0
> ds:00c1ea07=????
>         6600ea59 0f8554a00700     jne     EVENT_SINK_AddRef+0x25467
> (66088ab3)
>         6600ea5f ff3500001166     push    dword ptr [66110000]
> ds:66110000=00000004
>         6600ea65 ffd6             call    esi
>         6600ea67 f680a000000002   test    byte ptr [eax+0xa0],0x2
> ds:000000a0=??
>         6600ea6e 0f853fa00700     jne     EVENT_SINK_AddRef+0x25467
> (66088ab3)
>         6600ea74 ff7528           push    dword ptr [ebp+0x28]
> ss:02c0e4da=????????
>         6600ea77 ff7524           push    dword ptr [ebp+0x24]
> ss:02c0e4da=????????
>         6600ea7a ff7520           push    dword ptr [ebp+0x20]
> ss:02c0e4da=????????
>         6600ea7d ff751c           push    dword ptr [ebp+0x1c]
> ss:02c0e4da=????????

> *----> Stack Back Trace <----*

> FramePtr ReturnAd Param#1  Param#2  Param#3  Param#4  Function Name
> 01fefad4 5f588000 0014321c 00000001 5f59b488 00000000
> MSVBVM60!EVENT_SINK_Invoke
> 01fefbe4 1001265d 00000001 00000001 00000000 00000000 !Ordinal2063
> 01fefccc 1001390d 01391600 00000001 100946d4 01392c0c !<nosymbols>
> 01fefd94 1002ea5f 0138b0d4 00000003 00000001 10215e68 !<nosymbols>
> 01fefee0 5f4385c4 0138a498 10215e68 01cef8cc 01394220 !<nosymbols>
> 01feff84 1020c323 01cefa40 10215e68 01cef8cc 01394220 !Ordinal1879
> 01feffb8 77f04f2c 01394220 10215e68 01cef8cc 01394220 !beginthreadex
> 01feffec 00000000 00000000 00000000 00000000 00000000 kernel32!lstrcmpiW
> 00000000 00000000 00000000 00000000 00000000 00000000 !<nosymbols>



Mon, 23 Apr 2001 03:00:00 GMT  
 VB6 EXE crash, with IDE OK. Event sink in VM60.dll
Thank you for the information.  I have tried compiling to p-code, no
optimization, optimize for fast etc.  The results are consistant.  It always
works in the IDE, but fails as an EXE.
Quote:
>The difference is that by default IDE uses p-code whereas EXE uses native
>code. Try to make a p-code exe. Try to play with the various optimization
>levels.

>Eberhard Franz




Tue, 24 Apr 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. VB6 IDE crashes when reference local DLL that uses a remote MTS DLL

2. inside IDE ok, fails as EXE - PANIC!

3. API mciSendString OK in ide mode, fails as exe

4. Making exe will crash VB6 IDE

5. VB6 SP1 ok, how about the vbrun60.exe

6. ActiveX EXE with User Interface to Allow Sinking Events from Remote Servers

7. GPF in Krnl386.exe crashes VB5 IDE on unload of MDI child form

8. krnl386.exe GPF crashes VB5 IDE on MDI child unload

9. VB 5.0 my program work in IDE but the .exe crash

10. Program runs in IDE well, but EXE crashes

11. VB using COM crashed in IDE, exe is fine

12. COM callbacks, fine in IDE, crash in EXE

 

 
Powered by phpBB® Forum Software