How to trouble shoot a "Application Exception"?

G

gregory_may

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........
 
W

William Ryan

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/linenumbersinreleasemode.html
gregory_may said:
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........
 
G

Gary Chang

Hi gregory_may,

Thanks for using Microsoft MSDN Managed Newsgroup.

I have reviewed your thread in <NEWSGROUP> titled "<SUBJECT>". Currently I
am finding somebody who could help you on it. We will post back in
newsgroup as soon as possible.

This is just a notification email. Please response to this thread in the
newsgroup if there is anything unclear. Our goal is to provide information
to the entire community and the newsgroups allow everyone else to benefit
from our conversations.

Thank you for your understanding.


Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
 
G

Gary Chang

Hi gregory_may,

Thanks for using Microsoft MSDN Managed Newsgroup.

I have reviewed this thread Currently I am finding somebody who could help
you on it.
We will post back in newsgroup as soon as possible.

Thank you for your understanding.


Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
 
T

Tian Min Huang

Hello,

Thanks for your post. As I understand, a third-party application
JpegViewer.exe crashs on a specific system. Please correct me if there is
any misunderstanding. I agree with William's reply. In addition, I'd like
to share the following information with you:

1. I suggest you to check the underlying DLLs that are required by
JpegViewer.exe (by using Dependency Walker) and compare the version of them
on your machine with them on the system that fails to work. You can
download it at the following link:

Dependency Walker 2.1
http://www.dependencywalker.com/

2. Since JpegViewer is a third-party product, you can also contact its
vendor and see if there is any known issue.

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
G

gregory_may

Tain:

Just to clarify.

JpegViewer is a 100% .Net application that I created. I will include the
code below as you will see... its really nothing special at all:

g.


Option Strict On

Option Explicit On

Public Class Form1

Inherits System.Windows.Forms.Form

#Region " Windows Form Designer generated code "

Public Sub New()

MyBase.New()

'This call is required by the Windows Form Designer.

InitializeComponent()

'Add any initialization after the InitializeComponent() call

End Sub

'Form overrides dispose to clean up the component list.

Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)

If disposing Then

If Not (components Is Nothing) Then

components.Dispose()

End If

End If

MyBase.Dispose(disposing)

End Sub

'Required by the Windows Form Designer

Private components As System.ComponentModel.IContainer

'NOTE: The following procedure is required by the Windows Form Designer

'It can be modified using the Windows Form Designer.

'Do not modify it using the code editor.

Friend WithEvents PictureBox1 As System.Windows.Forms.PictureBox

<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()

Me.PictureBox1 = New System.Windows.Forms.PictureBox

Me.SuspendLayout()

'

'PictureBox1

'

Me.PictureBox1.BackColor = System.Drawing.Color.SteelBlue

Me.PictureBox1.Dock = System.Windows.Forms.DockStyle.Fill

Me.PictureBox1.Location = New System.Drawing.Point(0, 0)

Me.PictureBox1.Name = "PictureBox1"

Me.PictureBox1.Size = New System.Drawing.Size(272, 160)

Me.PictureBox1.SizeMode =
System.Windows.Forms.PictureBoxSizeMode.CenterImage

Me.PictureBox1.TabIndex = 0

Me.PictureBox1.TabStop = False

'

'Form1

'

Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)

Me.ClientSize = New System.Drawing.Size(272, 160)

Me.ControlBox = False

Me.Controls.Add(Me.PictureBox1)

Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None

Me.Name = "Form1"

Me.Text = "Form1"

Me.TopMost = True

Me.WindowState = System.Windows.Forms.FormWindowState.Maximized

Me.ResumeLayout(False)

End Sub

#End Region

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

Dim myFile As String = "picture.jpg"

Dim NumArgs As Integer

NumArgs = Environment.GetCommandLineArgs.Length()

Try

'MsgBox(Environment.GetCommandLineArgs(0))

' MsgBox(Environment.GetCommandLineArgs(1))

If NumArgs < 2 Then

myPrint("Must be called with a filename.")

Else

myFile = Environment.GetCommandLineArgs(1)

End If

'myFile = Environment.CurrentDirectory & "\" & myFile

Try

'Panel1.BackgroundImage.FromFile(myFile)

PictureBox1.Image = PictureBox1.Image.FromFile(myFile)

Me.Update()

Catch ex As Exception

myPrint("Form1_Load - Could not load file: " & myFile)

myPrint(ex.ToString)

End Try

Catch ex As Exception

myPrint("Form1_Load - Error")

myPrint(ex.ToString)

End Try

End Sub

Public Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)

Private Sub myPrint(ByVal Message As String)

Console.WriteLine(Message)

End Sub

Private Sub Panel1_Paint(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.PaintEventArgs)

End Sub

Private Sub PictureBox1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles PictureBox1.Click

End Sub

End Class





Tian Min Huang
Guest





Posted: Mon Jan 12, 2004 4:08 am Post subject: RE: How to trouble
shoot a "Application Exception"?

--------------------------------------------------------------------

Hello,

Thanks for your post. As I understand, a third-party application
JpegViewer.exe crashs on a specific system. Please correct me if
there is
any misunderstanding. I agree with William's reply. In addition,
I'd like
to share the following information with you:

1. I suggest you to check the underlying DLLs that are required
by
JpegViewer.exe (by using Dependency Walker) and compare the
version of them
on your machine with them on the system that fails to work. You
can
download it at the following link:

Dependency Walker 2.1
http://www.dependencywalker.com/

2. Since JpegViewer is a third-party product, you can also
contact its
vendor and see if there is any known issue.

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers
no rights.




gregory_may said:
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........
 
T

Tian Min Huang

Hello,

Thanks for your update. I reviewed your code carefully, I did not find any
obvious problem. Now I'd like to share the following information with you:

Since the problem only occurs on your client's machine, while it works
properly on your system, I suspect that the problem may be caused by the
system configuration. What's the version of operating system and its
service pack, .NET Framework version on the problemmatic system?

As stated in my previous post, please compare the versions of underlying
DLLs in Dependency Walker.

In addition, to narrow down the problem, I recommend you show a MessageBox
to display the content of Call Stack when the exception is caught.

I look forward to your response.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
G

gregory_may

Tian:

Thanks for your help!!!

I will be at the client site friday to verify some of these items.
I believe the client is running Win2k Service Pack 5 and .Net 1.1

Just an odd note: If I execute JpegViewer.exe from the command line or
desktop i get no errors on the client machine!!!! It only happens
pieriodically when I execute it from a Shell Command (From another vb.net
application).

I suspect some wacky resource constraint. I am going to try and execute the
program differently to try and get another layer of resources. I was
thinking of something like:
Shell(cmd /c"JpegViewer.exe") or
Shell(JpegViewer.VBS) (This would in tern call
JpegViewer.exe)

I will also try:

* Reinstall .Net on a few of their boxes.
* See if I can uninstall some of their applications including:
Norton AntriVirus software, Carbon Copy, and Altrus Software
Mangement.
* Try your resource walker.

Because I dont really "See" what looks like a .Net exception, I dont know
where to put the message box. My program doesnt even bring up the form. It
really looks like a "Windows" exception. Its just a small dialog that says
something like:
"The application JpegViewer.exe caused an error in MsCorb.dll.
Windows has shut down the application."
(The words are wrong. I will get the exact message on friday).
 
G

gregory_may

I have been thinking over your Dependency Walker. I should probably try
this first.

Thanks again for your help!

g.
 
T

Tian Min Huang

Hello Gregory,

I look forward to your result.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
G

gregory_may

My install blew up today. I misplaced a DLL (MSGINA) and the machines have
to be re-imaged!!

So, I will have to try again wednesday. Sorry for the delay.

g.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top