如何解决“应用程序异常”问题? [英] How to trouble shoot a "Application Exception"?
问题描述
我创建了一个名为JpegViewer.exe的应用程序。它只需加载一个
Jpeg文件并显示在屏幕上。它在我的实验室中运行良好。
当我在客户现场使用它时,情况发生了变化。偶尔,它会因应用程序异常而爆炸。它似乎只在
客户站点死亡
这只能在客户端站点的计算机上重复。我不能
重现这个Bug在我的实验室里。
我100%确信JpegViewer.exe
程序没有编程错误,因为我已经完成了测试。再次,它在我的实验室中运行良好
(它对我有用!)。
我认为客户环境有一些有趣的东西,但是/>
没有什么可靠的尝试。非常感谢任何建议/帮助!
(这就是我调用的方式JpegViewer.exe,没有错误被
尝试,阻止)
公共共享子启动应用程序(ByVal命令为字符串)
尝试
Shell(Command,AppWinStyle.NormalFocus)
Catch ex As Exception
UpdateStatus(" LaunchApplication - ERROR - 无法启动>
任务。)
结束尝试
结束子
(这是在客户端站点的事件日志中显示的内容 - 有时候只有
- 但是当它发生时,我的Jpegviewer程序会死于一个可疑的死亡
(Jpegviewer似乎甚至没有做任何事情)。)
发生应用程序异常:
App :( pid = 668)
时间:1/7/2004 @ 15:26:43.187
例外号码:c0000005(访问违规)
* ----&g吨;系统信息< ---- *
计算机名称:GBHS-513-08
用户名:SYSTEM
处理器数量:1
处理器类型:x86系列15型号2步进9
Windows 2000版本: 5.0
当前版本:2195
服务包装:4
当前类型:单处理器免费
注册组织:RJUHSD
注册所有者:RJUHSD
* ----> ;任务列表< ---- *
0 Idle.exe
8 System.exe
168 SMSS.exe
192 CSRSS.exe
188 WINLOGON.exe
240 SERVICES.exe
252 LSASS.exe
428 svchost.exe
456 spoolsv.exe
536 ACLIENT.exe
560 AeXNSAgent.exe
572 ccsrvc。 exe
596 DefWatch.exe
604 SHELLKER.exe
628 svchost.exe
656 Rtvscan.exe
708 PlatinumClientS.exe
940 regsvc.exe
964 mstask.exe
1036 WinMgmt.exe
1040 winvnc.exe
1060 WSFINALACLSERVI.exe
1080 svchost.exe
512 explorer.exe
>
1532 CLIENT.exe
1588 hkcmd.exe
1596 CreateCD50.exe
1640 Directcd.exe
1648 AClntUsr.exe
1540 VPTray.exe
668 JpegViewer.exe
1524 DRWTSN32.exe
0 _Total.exe
(11000000 - 11008000)
(77F80000 - 77FFB000)
(79170000 - 79196000)
(7C570000 - 7C623000)
(7C2D0000 - 7C332000)
(77D30000 - 77D9E000)
(70A70000 - 70AD5000)
(78000000 - 78045000)
(77F40000 - 77F79000)
(77E10000 - 77E6F000)
(10000000 - 10011000)
(791B0000 - 79412000)
(7C340000 - 7C396000)
(79040000 - 79085000)
(782F0000 - 78538000)
(71710000 - 71794000)
>
线程ID的状态转储0x5a0
eax = 00000000 ebx = 00000000 ecx = 7ffde000 edx = 793dd0b8 esi = 00000000
edi = 00000000
eip = 791cfea1 esp = 0012fa50 ebp = 0012fa64 iopl = 0 nv up ei pl zr na po
nc
efl = 00000246
功能:CoInitializeCor
791cfe80 5e pop esi
791cfe81 7408 jz CoInitializeCor + 0xb6eb(791d9f8b)
791cfe83 a1cccb3d79
ds:793dcbcc = 00000000
mov eax,[CorCreateMiniDump + 0x7f709
(793dcbcc)]
791cfe88 ff4048 inc dword ptr [eax + 0x48]
ds :00a89ee6 = ????????
791cfe8b a1cccb3d79
ds:793dcbcc = 00000000
mov eax,[ CorCreateMiniDump + 0x7f709
(793dcbcc)]
791cfe90 ff4074 inc dword ptr [eax + 0x74]
ds:00a89ee6 =? ???????
791cfe93 e86341feff致电Ordinal71 + 0x3ffb(791b3ffb)
791cfe98 5d pop ebp
791cfe 99 c20400 ret 0x4
791cfe9c a1cccb3d79
ds:793dcbcc = 00000000
mov eax,[CorCreateMiniDump + 0x7f709
(793dcbcc)]
FAULT - > 791cfea1 397850 cmp [eax + 0x50],edi
ds:00a89ee6 = ???? ????
791cfea4 53推ebx
791cfea5 8b1d10121b79
ds:791b1210 = 7c59b9ad >
mov ebx,[Ordinal71 + 0x1210(791b1210)]
791cfeab 56推esi
791cfeac 0f856e6f0700 jne DllGetClassObjectInternal + 0x100cd
(79246e20)
791cfeb2 68b0010000推0x1b0
791cfeb7 e88af5ffff电话CoInitializeCor + 0xba6(791cf446)
791cfebc 59 pop ecx
791cfebd 8945f0 mov [ebp + 0xf0],eax
ss:00bb994a = ?? ??????
791cfec0 3bc7 cmp eax,edi
791cfec2 897dfc mov [ebp + 0xfc],edi
ss:00bb994a = ????????
791cfec5 0f8496000000 je CoInitializeCor + 0x16c1(791cff61)
* ----> Stack Back Trace< ---- *
FramePtr ReturnAd Param#1 Param#2 Param#3 Param#4功能名称
0012FA64 791C7EBF 0012FA80 7928841E 00000000 793E6518!CoInitializeCor
0012FA6C 7928841E 00000000 793E6518 793E6518 0012FAA8!CoInitializeEE
0012FA80 7928C344 00000800 7C579109 00000000 80004005
!DllGetClassObjectInternal
0012FAA8 7928C464 0012FAB4 00000000 0012FAF4 79288F16!Ordinal18
0012FAB8 79288F16 0000171A 00139D88 00000400 00000001!Ordinal18
0012FAF4 792457D2 00000000 0000171B 0000171A 00000010!Ordinal19
0012FF38 791CE9CB 00000000 793DD0B8 7FFDF000 7FFDE000
!DllGetClassObjectInternal
0012FF60 791CED2D 00000002 00000000 793DD0B8 7FFDF000!CoInitializeCor
0012FF90 791B16D2 00000002 00136FF8 0012FFC0 791C6EDF!CoInitializeCor
0012FFA0 791C6EDF 00000002 00000000 00000000 7917D0B8!Ordinal71
0012FFC0 7C5987E7 00000000 00000000 7FFDF000 C0000005!CorExeMain
0012FFF0 00000000 11003F6E 00000000 000000C8 00000100
kernel32 !ProcessIdToSessionId
* ---->生堆栈转储< ---- *
0012fa50 00 08 00 00 00 e0 fd 7f - 2c ff 12 00 40 8e 3c 79
.. .......,... @。< y
0012fa60 ff ff ff ff 6c fa 12 00 - bf 7e 1c 79 80 fa 12 00
..... l .... ~.y ....
0012fa70 1e 84 28 79 00 00 00 00 - 18 65 3e 79 18 65 3e 79
...(y ..... e> y.e> y
0012fa80 a8 fa 12 00 44 c3 28 79 - 00 08 00 00 09 91 57 7c
..... D.(y ...... W |
0012fa90 00 00 00 00 05 40 00 80 - 00 00 00 00 00 00 00 00
...... @ ..........
0012faa0 00 e0 fd 7f 00 00 00 00 - b8 fa 12 00 64 c4 28 79
............. d。(y
0012fab0 b4 fa 12 00 00 00 00 00 - f4 fa 12 00 16 8f 28 79
...............(y
0012fac0 1a 17 00 00 88 9d 13 00 - 00 04 00 00 01 00 00 00
................ 。
0012fad0 1c e1 27 79 20 04 35 7c - ff ff ff ff 02 00 00 00 ..''y
..5 | .. .... ..
0012fae0 88 9d 13 00 f8 93 13 00 - 81 5d 1c 79 00 00 1b 79
.......... ] .y ... y
0012faf0 28 fd 12 00 38 ff 12 00 - d2 57 24 79 00 00 00 00
(... 8 .... W $ y ....
0012fb00 1b 17 00 00 1a 17 00 00 - 10 00 00 00 01 00 00 00
。 ................
0012fb10 28 fb 12 00 28 fd 12 00 - 05 40 00 80 01 00 00 00
(...(.... @ ......
0012fb20 00 00 00 00 b7 00 07 80 - 3c 00 55 00 6e 00 6b 00
.........< .Unk
0012fb30 6e 00 6f 00 77 00 6e 00 - 3e 00 00 00 00 00 00 00
nown> .......
0012fb40 00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 < br $> b $ b .................
0012fb50 10 00 00 00 e2 05 01 00 - b4 fb 12 00 02 00 00 00
.................
0012fb60 77 c2 f8 77 70 f1 fc 77 - 10 00 00 00 e2 05 01 00
w..wp..w ........
0012fb70 cc f b 12 00 02 00 00 00 - 77 c2 f8 77 70 f1 fc 77
......... w..wp..w
0012fb80 a0 1f f8 77 4f b2 f8 77 - 10 00 00 00 e2 05 01 00
.... wO..w ........
y ....
0012fb00 1b 17 00 00 1a 17 00 00 - 10 00 00 00 01 00 00 00
.................
0012fb10 28 fb 12 00 28 fd 12 00 - 05 40 00 80 01 00 00 00
(...(.... @ ......
0012fb20 00 00 00 00 b7 00 07 80 - 3c 00 55 00 6e 00 6b 00
.........< .Unk
0012fb30 6e 00 6f 00 77 00 6e 00 - 3e 00 00 00 00 00 00 00
nown> .......
0012fb40 00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
.................
0012fb50 10 00 00 00 e2 05 01 00 - b4 fb 12 00 02 00 00 00
.................
0012fb60 77 c2 f8 77 70 f1 fc 77 - 10 00 00 00 e2 05 01 00
w..wp..w ........
0012fb70 cc fb 12 00 02 00 00 00 - 77 c2 f8 77 70 f1 fc 77
......... w..wp。 .w
0012fb80 a0 1f f8 77 4f b2 f8 77 - 10 00 00 00 e2 05 01 00
.... wO..w .. ......
我建议插入一些更具体的错误处理程序,但你可以使用
这样的东西.. 。 http://www.knowdotnet.com/articles/eventlog.html
这也可能有所帮助。
http://www.knowdotnet.com/articles/l...leasemode.html
" gregory_may" <无>写在消息
新闻:ud ************** @ TK2MSFTNGP11.phx.gbl ...我有一个应用程序我创建名为JpegViewer.exe。它只需加载
一个Jpeg文件并显示在屏幕上。它在我的实验室中运行良好。
当我在客户现场使用它时,情况会发生变化。偶尔,它会因应用程序异常而爆炸。它似乎只会在
客户站点死亡
这只能在客户端站点的计算机上重复。我无法重现这个虫子。在我的实验室里。
我100%确信JpegViewer.exe程序没有编程错误,因为我已经完成了测试。再次,它在我的
实验室中运行得很好(它适用于我!)。
我认为客户环境有一些有趣的东西,但没有什么可靠的尝试。非常感谢任何建议/帮助!
(这就是我调用的方式JpegViewer.exe,没有错误被
尝试,捕获阻止)
公共共享Sub LaunchApplication(ByVal命令为字符串)
尝试
Shell(Command,AppWinStyle.NormalFocus)
抓住ex Exception
UpdateStatus(LaunchApplication - ERROR - 无法启动
任务。)
结束尝试
结束Sub
(这是在客户端站点的事件日志中显示的内容 - 有时只是
- 但是当它发生时,我的Jpegviewer程序会死于一个可能的死亡
(Jpegviewer似乎甚至没有做任何事情)。)
应用程序异常发生:
App :( pid = 668)
>时间:1/7/2004 @ 15:26:43.187
例外号码:c0000005(访问违规)
* ---->系统信息< ---- *
计算机名称:GBHS-513-08
用户名:SYSTEM
处理器数量:1
处理器类型:x86系列15型号2步进9
Windows 2000版本:5.0
当前版本:2195
>服务包:4
当前类型:单处理器免费
注册组织:RJUHSD
注册所有者:RJUHSD
* ---->任务列表< ---- *
0 Idle.exe
8 System.exe
168 SMSS.exe
< 192 CSRSS.exe
188 WINLOGON.exe
240 SERVICES.exe
252 LSASS.exe
> 428 svchost.exe
456 spoolsv.exe
536 ACLIENT.exe
560 AeXNSAgent.exe
572 ccsrvc.exe
596 DefWatch.exe
604 SHELLKER.exe
628 svchost.exe
656 Rtvscan。 exe
708 PlatinumClientS.exe
940 regsvc.exe
964 mstask.exe
1036 WinMgmt.exe < 1040 winvnc.exe
1060 WSFINALACLSERVI.exe
1080 svchost.exe
512 explorer.exe
1532 CLIENT.exe
1588 hkcmd.exe
1596 CreateCD50.exe
1640 Directcd.exe
1648 AClntUsr.exe
1540 VPTray.exe
668 JpegViewer.exe
1524 DRWTSN32.exe
> 0 _Total.exe
(11000000 - 11008000)
(77F80000 - 77FFB000)
(79170000 - 79196000)
(7C570000 - 7C623000)
(7C2D0000 - 7C332000)
(77D30000 - 77D9E000)
(70A70000 - 70AD5000)
(78000000 - 78045000)
(77F40000 - 77F79000)
(77E10000 - 77E6F000)
(10000000 - 10011000)
(791B0000 - 79412000)
(7C340000 - 7C396000)
(79040000 - 79085000)
(782F0000 - 78538000)
(71710000 - 71794000)
线程Id的状态转储0x5a0
eax = 00000000 ebx = 00000000 ecx = 7ffde000 edx = 793dd0b8 esi = 00000000
edi = 00000000
eip = 791cfea1 esp = 0012fa50 ebp = 0012fa64 iopl = 0 nv up ei pl zr na po
nc
cs = 001b ss = 0023 ds = 0023 es = 0023 fs = 0038 gs = 0000
efl = 00000246
功能:CoInitializeCor
791cfe80 5e pop esi
791cfe81 7408 jz CoInitializeCor + 0xb6eb
(791d9f8b)
791cfe83 a1cccb3d79
ds:793dcbcc = 00000000
mov eax,[CorCreateMiniDump + 0x7f709
(793dcbcc)]
791cfe88 ff4048 inc dword ptr [eax + 0x48]
ds:00a89ee6 = ????????
791cfe8b a1cccb3d79
ds:793dcbcc = 00000000
mov eax,[CorCreateMiniDump + 0x7f709
(793dcbcc)]
791cfe90 ff4074 inc dword ptr [eax + 0x74]
ds:00a89ee6 = ??????? ?
791cfe93 e86341feff致电Ordinal71 + 0x3ffb(791b3ffb)
791cfe98 5d pop ebp
791cfe99 c20400 ret 0x4
791cfe9c a1cccb3d79
ds:793dcbcc = 00000000
mov eax,[CorCreateMiniDump + 0x7f709
(793dcbcc)]
故障 - > 791cfea1 397850 cmp [ea x + 0x50],edi
ds:00a89ee6 = ????????
791cfea4 53推ebx
791cfea5 8b1d10121b79
ds: 791b1210 = 7c59b9ad
mov ebx,[Ordinal71 + 0x1210
(791b1210)]
791cfeab 56推esi
791cfeac 0f856e6f0700 jne DllGetClassObjectInternal + 0x100cd
(79246e20 )791cfeb2 68b0010000推0x1b0
791cfeb7 e88af5ffff通话CoInitializeCor + 0xba6(791cf446)
791cfebc 59 pop ecx
791cfebd 8945f0 mov [ebp + 0xf0],eax
ss:00bb994a = ????????
791cfec0 3bc7 cmp eax,edi
791cfec2 897dfc mov [ebp + 0xfc],edi
ss:00bb994a = ????????
791cfec5 0f8496000000 je CoInitializeCor + 0x16c1
(791cff61)
* ----> Stack Back Trace< ---- *
FramePtr ReturnAd Param#1 Param#2 Param#3 Param#4功能名称
0012FA64 791C7EBF 0012FA80 7928841E 00000000 793E6518!CoInitializeCor
0012FA6C 7928841E 00000000 793E6518 793E6518 0012FAA8!CoInitializeEE
0012FA80 7928C344 00000800 7C579109 00000000 80004005
!DllGetClassObjectInternal
0012FAA8 7928C464 0012FAB4 00000000 0012FAF4 79288F16 !序数18
0012FAB8 79288F16 0000171A 00139D88 00000400 00000001!Ordinal18
0012FAF4 792457D2 00000000 0000171B 0000171A 00000010!Ordinal19
0012FF38 791CE9CB 00000000 793DD0B8 7FFDF000 7FFDE000
!DllGetClassObjectInternal
0012FF60 791CED2D 00000002 00000000 793DD0B8 7FFDF000!CoInitializeCor
0012FF90 791B16D2 00000002 00136FF8 0012FFC0 791C6EDF!CoInitializeCor
0012FFA0 791C6EDF 00000002 00000000 00000000 7917D0B8 !Ordinal71
0012FFC0 7C5987E7 00000000 00000000 7FFDF00 0 C0000005!CorExeMain
0012FFF0 00000000 11003F6E 00000000 000000C8 00000100
kernel32!ProcessIdToSessionId
* ---->生堆栈转储< ---- *
0012fa50 00 08 00 00 00 e0 fd 7f - 2c ff 12 00 40 8e 3c 79
........ ,. .. @。< y
0012fa60 ff ff ff ff 6c fa 12 00 - bf 7e 1c 79 80 fa 12 00
.... l ....〜.y。 ...
0012fa70 1e 84 28 79 00 00 00 00 - 18 65 3e 79 18 65 3e 79
..(y ... e> y.e> y
0012fa80 a8 fa 12 00 44 c3 28 79 - 00 08 00 00 09 91 57 7c
.... D.(y ...... W |
0012fa90 00 00 00 00 05 40 00 80 - 00 00 00 00 00 00 00
..... @ ..........
0012faa0 00 e0 fd 7f 00 00 00 00 - b8 fa 12 00 64 c4 28 79
............ d。(y
0012fab0 b4 fa 12 00 00 00 00 00 - f4 fa 12 00 16 8f 28 79
..............(y
0012fac0 1a 17 00 00 88 9d 13 00 - 00 04 00 00 01 00 00 00
................
0012fad0 1c e1 27 79 20 04 35 7c - ff ff ff ff 02 00 00 00 ..''y
.5 | ........
0012fae0 88 9d 13 00 f8 93 13 00 - 81 5d 1c 79 00 00 1b 79
.........]。y ... y
> 0012faf0 28 fd 12 00 38 ff 12 00 - d2 57 24 79 00 00 00 00
(... 8 .... W
y ....
0012fb00 1b 17 00 00 1a 17 00 00 - 10 00 00 00 01 00 00 00
................
0012fb10 28 fb 12 00 28 fd 12 00 - 05 40 00 80 01 00 00 00
(...(.... @ ......
0012fb20 00 00 00 00 b7 00 07 80 - 3c 00 55 00 6e 00 6b 00
........< .Unk
0012fb30 6e 00 6f 00 77 00 6e 00 - 3e 00 00 00 00 00 00 00
nown> .......
0012fb40 00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00
................
0012fb50 10 00 00 00 e2 05 01 00 - b4 fb 12 00 02 00 00 00
。 ...............
0012fb60 77 c2 f8 77 70 f1 fc 77 - 10 00 00 00 e2 05 01 00
w..wp。 .w ........
0012fb70 cc fb 12 00 02 00 00 00 - 77 c2 f8 77 70 f1 fc 77
........ w。 .wp..w
0012fb80 a0 1f f8 77 4f b2 f8 77 - 10 00 00 00 e2 05 01 00
... wO..w ........
I have an application I created called "JpegViewer.exe". It simply loads a
Jpeg file and displays in on the screen. It works great, in my lab.
When I am using it at a customer site, things change. Occasionally, it
blows up with an Application Exception. It seems to only die at the
customer site
This can only be duplicated on the machines at a client site. I cannot
reproduce this "Bug" in my lab.
I am 100% confident there is no programatic bug the the JpegViewer.exe
program, because of the testing I have done. Again it works great in my lab
(it Works for me!).
I think there is something funny with the customer environment, but have
nothing solid to try. Any suggestions/help is greatly appreciated!
(This is how I am calling "JpegViewer.exe", no errors are caught by the
try,catch block)
Public Shared Sub LaunchApplication(ByVal Command As String)
Try
Shell(Command, AppWinStyle.NormalFocus)
Catch ex As Exception
UpdateStatus("LaunchApplication - ERROR - Could not launch
task.")
End Try
End Sub
(This is what shows up in the event log at the client site - again, only
sometimes - but when it does, my Jpegviewer program dies a horable death
(Jpegviewer doesnt even seem to actually do anything).)
Application exception occurred:
App: (pid=668)
When: 1/7/2004 @ 15:26:43.187
Exception number: c0000005 (access violation)
*----> System Information <----*
Computer Name: GBHS-513-08
User Name: SYSTEM
Number of Processors: 1
Processor Type: x86 Family 15 Model 2 Stepping 9
Windows 2000 Version: 5.0
Current Build: 2195
Service Pack: 4
Current Type: Uniprocessor Free
Registered Organization: RJUHSD
Registered Owner: RJUHSD
*----> Task List <----*
0 Idle.exe
8 System.exe
168 SMSS.exe
192 CSRSS.exe
188 WINLOGON.exe
240 SERVICES.exe
252 LSASS.exe
428 svchost.exe
456 spoolsv.exe
536 ACLIENT.exe
560 AeXNSAgent.exe
572 ccsrvc.exe
596 DefWatch.exe
604 SHELLKER.exe
628 svchost.exe
656 Rtvscan.exe
708 PlatinumClientS.exe
940 regsvc.exe
964 mstask.exe
1036 WinMgmt.exe
1040 winvnc.exe
1060 WSFINALACLSERVI.exe
1080 svchost.exe
512 explorer.exe
1532 CLIENT.exe
1588 hkcmd.exe
1596 CreateCD50.exe
1640 Directcd.exe
1648 AClntUsr.exe
1540 VPTray.exe
668 JpegViewer.exe
1524 DRWTSN32.exe
0 _Total.exe
(11000000 - 11008000)
(77F80000 - 77FFB000)
(79170000 - 79196000)
(7C570000 - 7C623000)
(7C2D0000 - 7C332000)
(77D30000 - 77D9E000)
(70A70000 - 70AD5000)
(78000000 - 78045000)
(77F40000 - 77F79000)
(77E10000 - 77E6F000)
(10000000 - 10011000)
(791B0000 - 79412000)
(7C340000 - 7C396000)
(79040000 - 79085000)
(782F0000 - 78538000)
(71710000 - 71794000)
State Dump for Thread Id 0x5a0
eax=00000000 ebx=00000000 ecx=7ffde000 edx=793dd0b8 esi=00000000
edi=00000000
eip=791cfea1 esp=0012fa50 ebp=0012fa64 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: CoInitializeCor
791cfe80 5e pop esi
791cfe81 7408 jz CoInitializeCor+0xb6eb (791d9f8b)
791cfe83 a1cccb3d79
ds:793dcbcc=00000000
mov eax,[CorCreateMiniDump+0x7f709
(793dcbcc)]
791cfe88 ff4048 inc dword ptr [eax+0x48]
ds:00a89ee6=????????
791cfe8b a1cccb3d79
ds:793dcbcc=00000000
mov eax,[CorCreateMiniDump+0x7f709
(793dcbcc)]
791cfe90 ff4074 inc dword ptr [eax+0x74]
ds:00a89ee6=????????
791cfe93 e86341feff call Ordinal71+0x3ffb (791b3ffb)
791cfe98 5d pop ebp
791cfe99 c20400 ret 0x4
791cfe9c a1cccb3d79
ds:793dcbcc=00000000
mov eax,[CorCreateMiniDump+0x7f709
(793dcbcc)]
FAULT ->791cfea1 397850 cmp [eax+0x50],edi
ds:00a89ee6=????????
791cfea4 53 push ebx
791cfea5 8b1d10121b79
ds:791b1210=7c59b9ad
mov ebx,[Ordinal71+0x1210 (791b1210)]
791cfeab 56 push esi
791cfeac 0f856e6f0700 jne DllGetClassObjectInternal+0x100cd
(79246e20)
791cfeb2 68b0010000 push 0x1b0
791cfeb7 e88af5ffff call CoInitializeCor+0xba6 (791cf446)
791cfebc 59 pop ecx
791cfebd 8945f0 mov [ebp+0xf0],eax
ss:00bb994a=????????
791cfec0 3bc7 cmp eax,edi
791cfec2 897dfc mov [ebp+0xfc],edi
ss:00bb994a=????????
791cfec5 0f8496000000 je CoInitializeCor+0x16c1 (791cff61)
*----> Stack Back Trace <----*
FramePtr ReturnAd Param#1 Param#2 Param#3 Param#4 Function Name
0012FA64 791C7EBF 0012FA80 7928841E 00000000 793E6518 !CoInitializeCor
0012FA6C 7928841E 00000000 793E6518 793E6518 0012FAA8 !CoInitializeEE
0012FA80 7928C344 00000800 7C579109 00000000 80004005
!DllGetClassObjectInternal
0012FAA8 7928C464 0012FAB4 00000000 0012FAF4 79288F16 !Ordinal18
0012FAB8 79288F16 0000171A 00139D88 00000400 00000001 !Ordinal18
0012FAF4 792457D2 00000000 0000171B 0000171A 00000010 !Ordinal19
0012FF38 791CE9CB 00000000 793DD0B8 7FFDF000 7FFDE000
!DllGetClassObjectInternal
0012FF60 791CED2D 00000002 00000000 793DD0B8 7FFDF000 !CoInitializeCor
0012FF90 791B16D2 00000002 00136FF8 0012FFC0 791C6EDF !CoInitializeCor
0012FFA0 791C6EDF 00000002 00000000 00000000 7917D0B8 !Ordinal71
0012FFC0 7C5987E7 00000000 00000000 7FFDF000 C0000005 !CorExeMain
0012FFF0 00000000 11003F6E 00000000 000000C8 00000100
kernel32!ProcessIdToSessionId
*----> Raw Stack Dump <----*
0012fa50 00 08 00 00 00 e0 fd 7f - 2c ff 12 00 40 8e 3c 79
.........,...@.<y
0012fa60 ff ff ff ff 6c fa 12 00 - bf 7e 1c 79 80 fa 12 00
.....l....~.y....
0012fa70 1e 84 28 79 00 00 00 00 - 18 65 3e 79 18 65 3e 79
...(y.....e>y.e>y
0012fa80 a8 fa 12 00 44 c3 28 79 - 00 08 00 00 09 91 57 7c
.....D.(y......W|
0012fa90 00 00 00 00 05 40 00 80 - 00 00 00 00 00 00 00 00
......@..........
0012faa0 00 e0 fd 7f 00 00 00 00 - b8 fa 12 00 64 c4 28 79
.............d.(y
0012fab0 b4 fa 12 00 00 00 00 00 - f4 fa 12 00 16 8f 28 79
...............(y
0012fac0 1a 17 00 00 88 9d 13 00 - 00 04 00 00 01 00 00 00
.................
0012fad0 1c e1 27 79 20 04 35 7c - ff ff ff ff 02 00 00 00 ..''y
..5|........
0012fae0 88 9d 13 00 f8 93 13 00 - 81 5d 1c 79 00 00 1b 79
..........].y...y
0012faf0 28 fd 12 00 38 ff 12 00 - d2 57 24 79 00 00 00 00
(...8....W$y....
0012fb00 1b 17 00 00 1a 17 00 00 - 10 00 00 00 01 00 00 00
.................
0012fb10 28 fb 12 00 28 fd 12 00 - 05 40 00 80 01 00 00 00
(...(....@......
0012fb20 00 00 00 00 b7 00 07 80 - 3c 00 55 00 6e 00 6b 00
.........<.U.n.k.
0012fb30 6e 00 6f 00 77 00 6e 00 - 3e 00 00 00 00 00 00 00
n.o.w.n.>.......
0012fb40 00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
.................
0012fb50 10 00 00 00 e2 05 01 00 - b4 fb 12 00 02 00 00 00
.................
0012fb60 77 c2 f8 77 70 f1 fc 77 - 10 00 00 00 e2 05 01 00
w..wp..w........
0012fb70 cc fb 12 00 02 00 00 00 - 77 c2 f8 77 70 f1 fc 77
.........w..wp..w
0012fb80 a0 1f f8 77 4f b2 f8 77 - 10 00 00 00 e2 05 01 00
....wO..w........
y....
0012fb00 1b 17 00 00 1a 17 00 00 - 10 00 00 00 01 00 00 00
.................
0012fb10 28 fb 12 00 28 fd 12 00 - 05 40 00 80 01 00 00 00
(...(....@......
0012fb20 00 00 00 00 b7 00 07 80 - 3c 00 55 00 6e 00 6b 00
.........<.U.n.k.
0012fb30 6e 00 6f 00 77 00 6e 00 - 3e 00 00 00 00 00 00 00
n.o.w.n.>.......
0012fb40 00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
.................
0012fb50 10 00 00 00 e2 05 01 00 - b4 fb 12 00 02 00 00 00
.................
0012fb60 77 c2 f8 77 70 f1 fc 77 - 10 00 00 00 e2 05 01 00
w..wp..w........
0012fb70 cc fb 12 00 02 00 00 00 - 77 c2 f8 77 70 f1 fc 77
.........w..wp..w
0012fb80 a0 1f f8 77 4f b2 f8 77 - 10 00 00 00 e2 05 01 00
....wO..w........
I''d recommend inserting some more specific error handlers, but you can use
something like this ... http://www.knowdotnet.com/articles/eventlog.html
This might help too.
http://www.knowdotnet.com/articles/l...leasemode.html
"gregory_may" <None> wrote in message
news:ud**************@TK2MSFTNGP11.phx.gbl...I have an application I created called "JpegViewer.exe". It simply loads a Jpeg file and displays in on the screen. It works great, in my lab.
When I am using it at a customer site, things change. Occasionally, it
blows up with an Application Exception. It seems to only die at the
customer site
This can only be duplicated on the machines at a client site. I cannot
reproduce this "Bug" in my lab.
I am 100% confident there is no programatic bug the the JpegViewer.exe
program, because of the testing I have done. Again it works great in my lab (it Works for me!).
I think there is something funny with the customer environment, but have
nothing solid to try. Any suggestions/help is greatly appreciated!
(This is how I am calling "JpegViewer.exe", no errors are caught by the
try,catch block)
Public Shared Sub LaunchApplication(ByVal Command As String)
Try
Shell(Command, AppWinStyle.NormalFocus)
Catch ex As Exception
UpdateStatus("LaunchApplication - ERROR - Could not launch
task.")
End Try
End Sub
(This is what shows up in the event log at the client site - again, only
sometimes - but when it does, my Jpegviewer program dies a horable death
(Jpegviewer doesnt even seem to actually do anything).)
Application exception occurred:
App: (pid=668)
When: 1/7/2004 @ 15:26:43.187
Exception number: c0000005 (access violation)
*----> System Information <----*
Computer Name: GBHS-513-08
User Name: SYSTEM
Number of Processors: 1
Processor Type: x86 Family 15 Model 2 Stepping 9
Windows 2000 Version: 5.0
Current Build: 2195
Service Pack: 4
Current Type: Uniprocessor Free
Registered Organization: RJUHSD
Registered Owner: RJUHSD
*----> Task List <----*
0 Idle.exe
8 System.exe
168 SMSS.exe
192 CSRSS.exe
188 WINLOGON.exe
240 SERVICES.exe
252 LSASS.exe
428 svchost.exe
456 spoolsv.exe
536 ACLIENT.exe
560 AeXNSAgent.exe
572 ccsrvc.exe
596 DefWatch.exe
604 SHELLKER.exe
628 svchost.exe
656 Rtvscan.exe
708 PlatinumClientS.exe
940 regsvc.exe
964 mstask.exe
1036 WinMgmt.exe
1040 winvnc.exe
1060 WSFINALACLSERVI.exe
1080 svchost.exe
512 explorer.exe
1532 CLIENT.exe
1588 hkcmd.exe
1596 CreateCD50.exe
1640 Directcd.exe
1648 AClntUsr.exe
1540 VPTray.exe
668 JpegViewer.exe
1524 DRWTSN32.exe
0 _Total.exe
(11000000 - 11008000)
(77F80000 - 77FFB000)
(79170000 - 79196000)
(7C570000 - 7C623000)
(7C2D0000 - 7C332000)
(77D30000 - 77D9E000)
(70A70000 - 70AD5000)
(78000000 - 78045000)
(77F40000 - 77F79000)
(77E10000 - 77E6F000)
(10000000 - 10011000)
(791B0000 - 79412000)
(7C340000 - 7C396000)
(79040000 - 79085000)
(782F0000 - 78538000)
(71710000 - 71794000)
State Dump for Thread Id 0x5a0
eax=00000000 ebx=00000000 ecx=7ffde000 edx=793dd0b8 esi=00000000
edi=00000000
eip=791cfea1 esp=0012fa50 ebp=0012fa64 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: CoInitializeCor
791cfe80 5e pop esi
791cfe81 7408 jz CoInitializeCor+0xb6eb (791d9f8b)
791cfe83 a1cccb3d79
ds:793dcbcc=00000000
mov eax,[CorCreateMiniDump+0x7f709
(793dcbcc)]
791cfe88 ff4048 inc dword ptr [eax+0x48]
ds:00a89ee6=????????
791cfe8b a1cccb3d79
ds:793dcbcc=00000000
mov eax,[CorCreateMiniDump+0x7f709
(793dcbcc)]
791cfe90 ff4074 inc dword ptr [eax+0x74]
ds:00a89ee6=????????
791cfe93 e86341feff call Ordinal71+0x3ffb (791b3ffb)
791cfe98 5d pop ebp
791cfe99 c20400 ret 0x4
791cfe9c a1cccb3d79
ds:793dcbcc=00000000
mov eax,[CorCreateMiniDump+0x7f709
(793dcbcc)]
FAULT ->791cfea1 397850 cmp [eax+0x50],edi
ds:00a89ee6=????????
791cfea4 53 push ebx
791cfea5 8b1d10121b79
ds:791b1210=7c59b9ad
mov ebx,[Ordinal71+0x1210 (791b1210)]
791cfeab 56 push esi
791cfeac 0f856e6f0700 jne DllGetClassObjectInternal+0x100cd
(79246e20)
791cfeb2 68b0010000 push 0x1b0
791cfeb7 e88af5ffff call CoInitializeCor+0xba6 (791cf446)
791cfebc 59 pop ecx
791cfebd 8945f0 mov [ebp+0xf0],eax
ss:00bb994a=????????
791cfec0 3bc7 cmp eax,edi
791cfec2 897dfc mov [ebp+0xfc],edi
ss:00bb994a=????????
791cfec5 0f8496000000 je CoInitializeCor+0x16c1 (791cff61)
*----> Stack Back Trace <----*
FramePtr ReturnAd Param#1 Param#2 Param#3 Param#4 Function Name
0012FA64 791C7EBF 0012FA80 7928841E 00000000 793E6518 !CoInitializeCor
0012FA6C 7928841E 00000000 793E6518 793E6518 0012FAA8 !CoInitializeEE
0012FA80 7928C344 00000800 7C579109 00000000 80004005
!DllGetClassObjectInternal
0012FAA8 7928C464 0012FAB4 00000000 0012FAF4 79288F16 !Ordinal18
0012FAB8 79288F16 0000171A 00139D88 00000400 00000001 !Ordinal18
0012FAF4 792457D2 00000000 0000171B 0000171A 00000010 !Ordinal19
0012FF38 791CE9CB 00000000 793DD0B8 7FFDF000 7FFDE000
!DllGetClassObjectInternal
0012FF60 791CED2D 00000002 00000000 793DD0B8 7FFDF000 !CoInitializeCor
0012FF90 791B16D2 00000002 00136FF8 0012FFC0 791C6EDF !CoInitializeCor
0012FFA0 791C6EDF 00000002 00000000 00000000 7917D0B8 !Ordinal71
0012FFC0 7C5987E7 00000000 00000000 7FFDF000 C0000005 !CorExeMain
0012FFF0 00000000 11003F6E 00000000 000000C8 00000100
kernel32!ProcessIdToSessionId
*----> Raw Stack Dump <----*
0012fa50 00 08 00 00 00 e0 fd 7f - 2c ff 12 00 40 8e 3c 79
........,...@.<y
0012fa60 ff ff ff ff 6c fa 12 00 - bf 7e 1c 79 80 fa 12 00
....l....~.y....
0012fa70 1e 84 28 79 00 00 00 00 - 18 65 3e 79 18 65 3e 79
..(y.....e>y.e>y
0012fa80 a8 fa 12 00 44 c3 28 79 - 00 08 00 00 09 91 57 7c
....D.(y......W|
0012fa90 00 00 00 00 05 40 00 80 - 00 00 00 00 00 00 00 00
.....@..........
0012faa0 00 e0 fd 7f 00 00 00 00 - b8 fa 12 00 64 c4 28 79
............d.(y
0012fab0 b4 fa 12 00 00 00 00 00 - f4 fa 12 00 16 8f 28 79
..............(y
0012fac0 1a 17 00 00 88 9d 13 00 - 00 04 00 00 01 00 00 00
................
0012fad0 1c e1 27 79 20 04 35 7c - ff ff ff ff 02 00 00 00 ..''y
.5|........
0012fae0 88 9d 13 00 f8 93 13 00 - 81 5d 1c 79 00 00 1b 79
.........].y...y
0012faf0 28 fd 12 00 38 ff 12 00 - d2 57 24 79 00 00 00 00
(...8....W
y....
0012fb00 1b 17 00 00 1a 17 00 00 - 10 00 00 00 01 00 00 00
................
0012fb10 28 fb 12 00 28 fd 12 00 - 05 40 00 80 01 00 00 00
(...(....@......
0012fb20 00 00 00 00 b7 00 07 80 - 3c 00 55 00 6e 00 6b 00
........<.U.n.k.
0012fb30 6e 00 6f 00 77 00 6e 00 - 3e 00 00 00 00 00 00 00
n.o.w.n.>.......
0012fb40 00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
................
0012fb50 10 00 00 00 e2 05 01 00 - b4 fb 12 00 02 00 00 00
................
0012fb60 77 c2 f8 77 70 f1 fc 77 - 10 00 00 00 e2 05 01 00
w..wp..w........
0012fb70 cc fb 12 00 02 00 00 00 - 77 c2 f8 77 70 f1 fc 77
........w..wp..w
0012fb80 a0 1f f8 77 4f b2 f8 77 - 10 00 00 00 e2 05 01 00
...wO..w........
这篇关于如何解决“应用程序异常”问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!