473,322 Members | 1,401 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

How to trouble shoot a "Application Exception"?

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........
Jul 21 '05 #1
10 4767
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........

Jul 21 '05 #2
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.
--------------------

Jul 21 '05 #3
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.
--------------------

Jul 21 '05 #4
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.

Jul 21 '05 #5
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.CenterImag e

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



Jul 21 '05 #6
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.

Jul 21 '05 #7
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).

"Tian Min Huang" <ti******@online.microsoft.com> wrote in message
news:4s**************@cpmsftngxa07.phx.gbl...
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.

Jul 21 '05 #8
I have been thinking over your Dependency Walker. I should probably try
this first.

Thanks again for your help!

g.
"gregory_may" <None> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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).

"Tian Min Huang" <ti******@online.microsoft.com> wrote in message
news:4s**************@cpmsftngxa07.phx.gbl...
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.


Jul 21 '05 #9
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.

Jul 21 '05 #10
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.

"Tian Min Huang" <ti******@online.microsoft.com> wrote in message
news:hS**************@cpmsftngxa08.phx.gbl...
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.

Jul 21 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Gustavo L. Fabro | last post by:
Greetings! I'm testing VS 2005 Beta 2, and I've compiled a program that runs just fine on my computer (where VS is installed). I've tried to run this same program on another computer (after...
4
by: Keith Chadwick | last post by:
I am having some trouble referencing an Application("myVar") variable from within a module.vb file on my ASP.NET site. According to the documentation I should be able to reference...
1
by: vijay | last post by:
Hi I am working on a web application. I have huge form where in I have filled some part of the form and after two hours again I started filling the rest of the form but I got the following error ...
1
by: Samuel R. Neff | last post by:
Occasionally we get this error message when running an app on a test machine: .exe - Common Language Runtime Debugging Services Application has generated an exception that could not be...
0
by: mammucion | last post by:
Trying to automate processing 80,000 data sets through 15 web pages. Application URL creates a new IE instance in which runs first a login form and then runs the rest of the pages in the new...
11
by: gregory_may | last post by:
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...
9
by: MrSpock | last post by:
1. Create a new Windows Application project. 2. Open the project properties and check "Make single instance application". 3. Build. 4. Go to the release folder and run the application. 5. Try to...
2
by: Ian Boyd | last post by:
We're encountering a situation where we're encountering a deadlock, and someone's been made the deadlock victim. But after that, DB2 refuses to run any SQL, and instead we get the error message: ...
2
by: amievil | last post by:
wow... I think I'm in a trouble now. My boss is a web programmer. She said, the client asked her to develop a " dot net C" application. So, she bought Microsoft visualstudio .NET 2003 and...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.