crash analysis

D

Droopy

Hi,

My application is running on 65 PC.
After a few hours, this applications crash on 2-3 PC.
I get no exception in my log files.
I set the Application.ThreadException and
AppDomain.CurrentDomain.UnhandledException exception event handlers.
The last one is triggered with 'System.NullReferenceException: Object
reference not set to an instance of an object.' but there is no stack
trace available.
I got no dump file, no popup window.
I only get the following entry in the event log :

Event Type: Error
Event Source: .NET Runtime 2.0 Error Reporting
Event Category: None
Event ID: 1000
Date: 13/05/2006
Time: 21:53:39
User: N/A
Computer: IPDIRECTOR51380
Description:
Faulting application ipdrouting.exe, version 2.0.24.19933, stamp
44645daa, faulting module unknown, version 0.0.0.0, stamp 00000000,
debug? 0, fault address 0x00902190.

For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 41 00 70 00 70 00 6c 00 A.p.p.l.
0008: 69 00 63 00 61 00 74 00 i.c.a.t.
0010: 69 00 6f 00 6e 00 20 00 i.o.n. .
0018: 46 00 61 00 69 00 6c 00 F.a.i.l.
0020: 75 00 72 00 65 00 20 00 u.r.e. .
0028: 20 00 69 00 70 00 64 00 .i.p.d.
0030: 72 00 6f 00 75 00 74 00 r.o.u.t.
0038: 69 00 6e 00 67 00 2e 00 i.n.g...
0040: 65 00 78 00 65 00 20 00 e.x.e. .
0048: 32 00 2e 00 30 00 2e 00 2...0...
0050: 32 00 34 00 2e 00 31 00 2.4...1.
0058: 39 00 39 00 33 00 33 00 9.9.3.3.
0060: 20 00 34 00 34 00 36 00 .4.4.6.
0068: 34 00 35 00 64 00 61 00 4.5.d.a.
0070: 61 00 20 00 69 00 6e 00 a. .i.n.
0078: 20 00 75 00 6e 00 6b 00 .u.n.k.
0080: 6e 00 6f 00 77 00 6e 00 n.o.w.n.
0088: 20 00 30 00 2e 00 30 00 .0...0.
0090: 2e 00 30 00 2e 00 30 00 ..0...0.
0098: 20 00 30 00 30 00 30 00 .0.0.0.
00a0: 30 00 30 00 30 00 30 00 0.0.0.0.
00a8: 30 00 20 00 66 00 44 00 0. .f.D.
00b0: 65 00 62 00 75 00 67 00 e.b.u.g.
00b8: 20 00 30 00 20 00 61 00 .0. .a.
00c0: 74 00 20 00 6f 00 66 00 t. .o.f.
00c8: 66 00 73 00 65 00 74 00 f.s.e.t.
00d0: 20 00 30 00 30 00 39 00 .0.0.9.
00d8: 30 00 32 00 31 00 39 00 0.2.1.9.
00e0: 30 00 0d 00 0a 00 0.....

I have no clue where (or how) to search for the source of this problem !

Thanks in advance for any help.
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

So AppDomain.CurrentDomain.UnhandledException is catching an exception,
it's just that you don't know where it originated , right?

Are you compiling your app in debug mode and copying the pdb file to the
machines?

Are you dumping the content of UnhandledExceptionEventArgs ?
inside you should find more info regarding what happened.
 
D

Droopy

Hi,

So AppDomain.CurrentDomain.UnhandledException is catching an exception,
it's just that you don't know where it originated , right?

Yes you are right.
Are you compiling your app in debug mode and copying the pdb file to the
machines?

still yes.
Are you dumping the content of UnhandledExceptionEventArgs ?
inside you should find more info regarding what happened.

Here is the code :

private static void CurrentDomain_UnhandledException (object sender,
UnhandledExceptionEventArgs e)
{
try
{
string message = e.ExceptionObject.ToString();
if(message.ToUpper().IndexOf("THREADABORTEXCEPTION") == -1)
{
System.IO.StreamWriter sw = new System.IO.StreamWriter
("IpdRouting_Unhandled.LOG", true);
sw.WriteLine (System.DateTime.Now.ToShortDateString () + " @
" +
System.DateTime.Now.ToLongTimeString () + ">\t" +
message);
System.Text.StringBuilder sb = new System.Text.StringBuilder
(2048);
Exception currentExc = null;
for (currentExc = (Exception) e.ExceptionObject;
currentExc != null; currentExc =
currentExc.InnerException)
{
sb.AppendFormat ("{0}\r\n{1}\r\n{2}\r\n",
currentExc.GetType ().FullName,
currentExc.Message,
currentExc.StackTrace);
}
sw.WriteLine (sb.ToString ());
sw.Flush ();
sw.Close ();
}
}
catch
{
//Application.Exit();
}
}

I appreciate your help.
Besides, it is very urgent for me.
Thanks a lot.
 
D

Droopy

Who can help please ?


Yes you are right.


still yes.


Here is the code :

private static void CurrentDomain_UnhandledException (object sender,
UnhandledExceptionEventArgs e)
{
try
{
string message = e.ExceptionObject.ToString();
if(message.ToUpper().IndexOf("THREADABORTEXCEPTION") == -1)
{
System.IO.StreamWriter sw = new System.IO.StreamWriter
("IpdRouting_Unhandled.LOG", true);
sw.WriteLine (System.DateTime.Now.ToShortDateString () + " @
" +
System.DateTime.Now.ToLongTimeString () + ">\t" +
message);
System.Text.StringBuilder sb = new System.Text.StringBuilder
(2048);
Exception currentExc = null;
for (currentExc = (Exception) e.ExceptionObject;
currentExc != null; currentExc =
currentExc.InnerException)
{
sb.AppendFormat ("{0}\r\n{1}\r\n{2}\r\n",
currentExc.GetType ().FullName,
currentExc.Message,
currentExc.StackTrace);
}
sw.WriteLine (sb.ToString ());
sw.Flush ();
sw.Close ();
}
}
catch
{
//Application.Exit();
}
}

I appreciate your help.
Besides, it is very urgent for me.
Thanks a lot.
 
D

Droopy

I can't understand that, having all source code and debug files, I have
no way to get the source of this problem !
 

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