Win 2K app problem 
Author Message
 Win 2K app problem

I built my program for Win2K and encountered a dialog box that says an
application exception has occurred and that it must shut down
immediately. However the app built for OS X runs fine. I've included
the backtrace in the hopes that someone could provide some leads:

Application exception occurred:
        App:  (pid=1260)

        Exception number: c0000005 (access violation)

*----> System Information <----*
        Computer Name: SPA06
        User Name: Administrator
        Number of Processors: 1
        Processor Type: x86 Family 15 Model 2 Stepping 4
        Windows 2000 Version: 5.0
        Current Build: 2195
        Service Pack: 2
        Current Type: Uniprocessor Free
        Registered Organization: XXXXXXXXXX
        Registered Owner: XXXXXXXX

*----> Task List <----*
   0 Idle.exe
   8 System.exe
 144 SMSS.exe
 168 CSRSS.exe
 164 WINLOGON.exe
 216 SERVICES.exe
 228 LSASS.exe
 388 SVCHOST.exe
 416 SPOOLSV.exe
 472 AClient.exe
 496 Avsynmgr.exe
 508 Cpqalert.exe
 524 CPQDFWAG.exe
 548 Webdmi.exe
 624 SVCHOST.exe
 652 NMSSvc.exe
 696 REGSVC.exe
 716 MSTASK.exe
 792 VSStat.exe
 824 Win32sl.exe
 860 WINMGMT.exe
 908 vshwin32.exe
 928 Cpqdmi.exe
 968 Avconsol.exe
 980 Mcshield.exe
 280 EXPLORER.exe
1096 SMTray.exe
1276 STARTEAK.exe
1152 PROMon.exe
1144 Chkadmin.exe
1160 CpqEAKSystemTra.exe
1296 CPQEADM.exe
1108 EAUSBKBD.exe
1412 BttnServ.exe
1260 Spa.exe
1392 DRWTSN32.exe
   0 _Total.exe

(00400000 - 00503000)
(77F80000 - 77FFB000)
(77B50000 - 77BD9000)
(77F40000 - 77F7C000)
(77E80000 - 77F35000)
(77E10000 - 77E74000)
(77DB0000 - 77E0B000)
(77D40000 - 77DB0000)
(782F0000 - 78532000)
(77C70000 - 77CBA000)
(77570000 - 775A0000)
(76B30000 - 76B6E000)
(78000000 - 78046000)
(77A50000 - 77B46000)
(6BD00000 - 6BD0D000)
(779B0000 - 77A4B000)
(775A0000 - 77625000)
(77840000 - 7787C000)
(770C0000 - 770E3000)
(10000000 - 10017000)
(75050000 - 75058000)
(75030000 - 75043000)
(75020000 - 75028000)
(01180000 - 013D6000)
(013E0000 - 013FA000)
(01400000 - 01417000)
(74FD0000 - 74FEF000)
(75010000 - 75017000)
(785C0000 - 785CC000)
(77980000 - 779A4000)
(77340000 - 77353000)
(77520000 - 77525000)
(77320000 - 77337000)
(75150000 - 75160000)
(75170000 - 751BF000)
(77BE0000 - 77BEF000)
(751C0000 - 751C6000)
(77950000 - 77979000)
(773B0000 - 773DE000)
(77380000 - 773A2000)
(77830000 - 7783E000)
(77880000 - 7790D000)
(77C10000 - 77C6D000)
(774E0000 - 77512000)
(774C0000 - 774D1000)
(77530000 - 77552000)
(77360000 - 77379000)
(777E0000 - 777E8000)
(777F0000 - 777F5000)
(76B20000 - 76B25000)
(772B0000 - 7731C000)

State Dump for Thread Id 0x4d4

eax=00000076 ebx=00000033 ecx=00000040 edx=01d36e28 esi=01d27000
edi=000000bf
eip=00405ef5 esp=0012e6c4 ebp=01f9ec82 iopl=0         nv up ei pl nz
na pe nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000            
efl=00200202

function: <nosymbols>
        00405ec9 8b8c2494000000   mov     ecx,[esp+0x94]        
ss:0012e758=001
2e83c
        00405ed0 0fbf7902         movsx   edi,word ptr [ecx+0x2]    
ds:00a7d613
=bb0a
        00405ed4 01f8             add     eax,edi
        00405ed6 8d348500000000   lea     esi,[00000000+eax*4]  
ds:00000076=???
?????
        00405edd 03742420         add     esi,[esp+0x20]        
ss:00babc97=002
40001
        00405ee1 8b542410         mov     edx,[esp+0x10]        
ss:00babc97=002
40001
        00405ee5 0fb64c8201       movzx   ecx,byte ptr [edx+eax*4+0x1]
ds:00a7d6
4a=88
        00405eea 894c240c         mov     [esp+0xc],ecx        
ss:00babc97=002
40001
        00405eee bfff000000       mov     edi,0xff
        00405ef3 29cf             sub     edi,ecx
FAULT ->00405ef5 0fb616           movzx   edx,byte ptr [esi]          
ds:01d270
00=??
        00405ef8 0fafd7           imul    edx,edi
        00405efb b881808080       mov     eax,0x80808081
        00405f00 89d3             mov     ebx,edx
        00405f02 f7ea             imul    edx
        00405f04 01da             add     edx,ebx
        00405f06 c1eb1f           shr     ebx,0x1f
        00405f09 c1fa07           sar     edx,0x7
        00405f0c 01d3             add     ebx,edx
        00405f0e 0fb65500         movzx   edx,byte ptr [ebp+0x0]      
ss:02a1c2
55=??
        00405f12 0faf54240c       imul    edx,[esp+0xc]        
ss:00babc98=000
02400
        00405f17 b881808080       mov     eax,0x80808081

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

FramePtr ReturnAd Param#1  Param#2  Param#3  Param#4  Function Name
01F9EC82 CFCECECF CECFCECE CECECFCE CFCECECF CECFCECE !<nosymbols>
CECECFCE 00000000 00000000 00000000 00000000 00000000 <nosymbols>

*----> Raw Stack Dump <----*
0012e6c4  14 00 00 00 8f 03 01 9b - 00 00 00 00 40 00 00 00

0012e6d4  28 6e d3 01 24 45 00 00 - 76 00 00 00 96 00 00 00
(n..$E..v.......
0012e6e4  28 6e d2 01 96 00 00 00 - 2f 00 00 00 b4 00 00 00
(n....../.......
0012e6f4  c8 01 00 00 82 03 01 53 - 12 02 05 79 0f 00 85 01
.......S...y....
0012e704  28 00 00 00 98 00 00 00 - b4 00 00 00 01 00 18 00
(...............
0012e714  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
................
0012e724  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 f9 01
................
0012e734  94 47 84 01 3c 48 84 01 - 58 02 00 00 94 47 84 01
.G..<H..X....G..
0012e744  91 60 40 00 8f 03 01 9b - 44 e8 12 00 00 00 d2 01

0012e754  58 02 00 00 3c e8 12 00 - 00 00 d3 01 58 02 00 00
X...<.......X...
0012e764  6e b2 e1 77 88 e7 12 00 - 98 2e e1 77 84 01 1c 00
n..w.......w....
0012e774  0f 00 00 00 00 00 00 00 - 00 00 00 00 6e b2 e1 77
............n..w
0012e784  cd ab ba dc ac e7 12 00 - 72 6a e1 77 6e b2 e1 77
........rj.wn..w
0012e794  84 01 1c 00 6c e8 12 00 - a8 d3 5a 00 40 00 00 00

0012e7a4  98 e7 12 00 78 56 58 00 - ec e7 12 00 5b 61 e8 77
....xVX.....[a.w
0012e7b4  30 6d e8 77 ff ff ff ff - fc e7 12 00 e2 48 e2 77
0m.w.........H.w
0012e7c4  a8 d3 5a 00 6c e8 12 00 - 74 e8 12 00 00 25 79 01
..Z.l...t....%y.
0012e7d4  78 56 58 00 a8 d3 5a 00 - 08 00 00 00 00 00 00 00
xVX...Z.........
0012e7e4  c8 e7 12 00 10 e8 12 00 - 2c eb 12 00 8a 1c e6 77
........,......w
0012e7f4  94 47 84 01 b4 00 00 00 - bc a2 4c 00 a4 e7 4b 00
.G........L...K.

State Dump for Thread Id 0x5a0

eax=77d50c62 ebx=001ada88 ecx=001ad8fc edx=00000000 esi=001ad940
edi=00000100
eip=77f82a84 esp=0117fe28 ebp=0117ff74 iopl=0         nv up ei pl nz
na pe nc
cs=001b  ss=0023  ds=0023  es=0023  fs=0038  gs=0000            
efl=00000202

function: ZwReplyWaitReceivePortEx
        77f82a79 b8ac000000       mov     eax,0xac
        77f82a7e 8d542404         lea     edx,[esp+0x4]        
ss:01bfd3fb=???
?????
        77f82a82 cd2e             int     2e
        77f82a84 c21400           ret     0x14

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

FramePtr ReturnAd Param#1  Param#2  Param#3  Param#4  Function Name
0117FF74 77D50781 77D50D7F 001AD940 00000000 401AD43C
ntdll!ZwReplyWaitReceivePo
rtEx
0117FFA8 77D50C7A 001AC7A8 0117FFEC 77E8758A 001ADA88
rpcrt4!RpcBindingSetOption

0117FFB4 77E8758A 001ADA88 00000000 401AD43C 001ADA88
rpcrt4!RpcBindingSetOption

0117FFEC 00000000 77D50C62 001ADA88 00000000 00905A4D
kernel32!SetFilePointer

*----> Raw Stack Dump <----*
0117fe28  2d 09 d5 77 04 01 00 00 - 54 ff 17 01 00 00 00 00
-..w....T.......
0117fe38  98 28 1b 00 58 ff 17 01 - a0 75 1a 00 a8 c7 1a 00
.(..X....u......
0117fe48  88 da 1a 00 e6 8c 5e 81 - b4 ab b2 b7 d0 0c 45 80
......^.......E.
0117fe58  34 00 00 c0 01 37 86 81 - 71 36 4a 80 58 88 00 e1
4....7..q6J.X...
0117fe68  b0 ac b2 b7 58 88 00 e1 - 00 00 00 00 00 00 00 00
....X...........
0117fe78  b4 ab b2 b7 68 10 45 80 - 01 00 00 00 c0 37 86 81
....h.E......7..
0117fe88  00 00 00 00 10 00 f8 00 - 8a 8c 5e 81 7c 00 f8 00
..........^.|...
0117fe98  9a 8c 5e 81 c8 75 86 81 - 58 88 00 e1 00 00 00 00
..^..u..X.......
0117fea8  1f 00 00 00 30 76 86 81 - 30 76 86 81 00 00 00 00
....0v..0v......
0117feb8  01 00 00 00 10 ac b2 b7 - 00 00 00 00 18 00 d4 e2
................
0117fec8  d4 ab b2 b7 00 00 00 00 - 91 4e 41 80 50 77 86 81
.........NA.Pw..
0117fed8  c0 37 86 81 c4 ac b2 b7 - a8 04 45 80 04 00 00 00
.7........E.....
0117fee8  88 8c 5e 81 97 db 49 80 - 80 f3 12 00 00 00 00 00
..^...I.........
0117fef8  48 f3 12 00 78 24 15 00 - 00 00 00 00 00 00 00 00
H...x$..........
0117ff08  01 00 00 00 19 00 02 00 - b0 27 50 c0 72 01 00 00
.........'P.r...
0117ff18  00 00 00 00 00 00 00 00 - 72 01 00 00 01 00 00 00
........r.......
0117ff28  00 20 50 c0 60 3d 3f 81 - 20 60 53 81 00 00 00 00  . P.`=?.
`S.....
0117ff38  64 ac b2 b7 8c 60 53 81 - 20 60 53 81 b0 61 53 81  d....`S.
`S..aS.
0117ff48  82 d8 42 80 c4 4b 06 80 - 80 61 53 81 20 60 53 81
..B..K...aS. `S.
0117ff58  00 a2 2f 4d ff ff ff ff - 50 fe 17 01 ff ff ff ff
../M....P.......

State Dump for Thread Id 0x140

eax=778321fe ebx=00000004 ecx=77db0260 edx=00000000 esi=77f8281e
edi=00000004
eip=77f82829 esp=01c2fd24 ebp=01c2fd70 iopl=0         nv up ei pl zr
na po nc
cs=001b  ss=0023  ds=0023  es=0023  fs=0038  gs=0000            
efl=00000246

function: NtWaitForMultipleObjects
        77f8281e b8e9000000       mov     eax,0xe9
        77f82823 8d542404         lea     edx,[esp+0x4]        
ss:026ad2f7=???
?????
        77f82827 cd2e             int     2e
        77f82829 c21400           ret     0x14

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

FramePtr ReturnAd Param#1  Param#2  Param#3  Param#4  Function Name
01C2FD70 77E86E1A 01C2FD48 00000001 00000000 00000000
ntdll!NtWaitForMultipleObj
ects
01C2FFB4 77E8758A 00000005 00000000 000B000A 01710640
kernel32!WaitForMultipleOb
jects
01C2FFEC 00000000 778321FE 01710640 00000000 000000C8
kernel32!SetFilePointer

*----> Raw Stack Dump <----*
01c2fd24  da 6d e8 77 04 00 00 00 - 48 fd c2 01 01 00 00 00
.m.w....H.......
01c2fd34  00 00 00 00 00 00 00 00 - 01 00 00 00 40 06 71 01

01c2fd44  01 00 00 00 60 01 00 00 - 64 01 00 00 74 01 00 00
....`...d...t...
01c2fd54  cc 01 00 00 d8 1a 61 b7 - 14 5e 02 00 00 00 00
...

read more »



Sun, 07 Aug 2005 17:19:24 GMT  
 Win 2K app problem

Quote:

> I built my program for Win2K and encountered a dialog box that says an
> application exception has occurred and that it must shut down
> immediately. However the app built for OS X runs fine. I've included
> the backtrace in the hopes that someone could provide some leads:

Your assembler code shows only that you are accessing some kind of array
(maybe characters inside a string).

I think you'll have to add some kind of log function to your application
so you can compile a version which writes a file with text about which
function runs currently.

I did this long ago for one of my application like this:

Sub Action()
   #if debugoutput then
   log "MainWindow.PushButton1.action start."
   #endif

   // do something

   #if debugoutput then
   log "MainWindow.PushButton1.action ends."
   #endif
End Sub

The log method must allways open the file and close it after writing to
it to clear the I/O buffer.

Mfg
Christian

--
Three thousand functions in one REALbasic plug-in. The MBS Plugin.

<http://www.monkeybreadsoftware.de/realbasic/plugins.html>



Mon, 08 Aug 2005 04:59:37 GMT  
 Win 2K app problem
Will try that although the idea of testing each code block does not
appear to be very appealing..... thanks for the suggestion and prompt
reply, in any case.
Quote:

> I think you'll have to add some kind of log function to your application
> so you can compile a version which writes a file with text about which
> function runs currently.

> I did this long ago for one of my application like this:

> Sub Action()
>    #if debugoutput then
>    log "MainWindow.PushButton1.action start."
>    #endif

>    // do something

>    #if debugoutput then
>    log "MainWindow.PushButton1.action ends."
>    #endif
> End Sub

> The log method must allways open the file and close it after writing to
> it to clear the I/O buffer.

> Mfg
> Christian



Mon, 08 Aug 2005 12:35:16 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Dos App running on Win 2K

2. Weird Win 2K indexing problem

3. MASM problems in Win 2k.

4. sys.argv problem in Win 2k

5. CFD and Win 2k group > 64K

6. Clarion for dos 3009 & win 2k

7. Non CW Question : Win 2k Adv Server keeps rebooting

8. NT4 Workstation / Win 2K Pro Registry Setting Required

9. Win 2k and clarion dos ctrl-esc key

10. YAWin2KQ (Yet Another Win 2K Question)

11. win 2000, 2K and screen

12. SCSI pass thru - Linux, Win NT/2K/XP

 

 
Powered by phpBB® Forum Software