App crash error msg interpretation?

  • Thread starter Thread starter Matijaz
  • Start date Start date
M

Matijaz

Hello,
My WinCE application has crashed and I can't debug it, because it is being
tested far away in another country and they cannot provide an internet
connection for me. But I got from people from test team error message which
appear after crash on WinCe unit. It looks like that:

Exception, error tp1000.exe
manualResetEvent::.ctor+0x21
Task::.ctor+0x27
Control::Invoke+0x37
AD-Bus Connection:: ReceiveData+0x31

How can I find in this message an useful information which will lead me to
the line of code which caused the problem. I suppose that "ctor" means
constructor, but what means this hexadecimal offset value after plus sign.
Every help would be appreciated - also links with documentation about .net
cf error information.

Matijaz
 
Yes ctor means constructor. Do you recognise the class names e.g. AD-Bus
Connection? Open your exe in ILDASM. Find the ctor of manualReserEvent and
look at the IL. In there you can find line number 0x21 and see what it does.
Do the same for the rest and you will get a clue as to which lines of code
cause the Exception.

Post back with any questions and how far you got and we can help further...

Cheers
Daniel
 
I think that the problem is connected witch invoking reset event while not
all threads have finished their jobs. I found the line no 0x31 of method
ReceiveData in class ADBusConnection, it looks like that:

..method private hidebysig instance void ReceiveData() cil managed

IL_0021: ldftn instance void
ADBus.ADBusConnection::ParseData(object, class [mscorlib]System.EventArgs)
IL_0027: newobj instance void
[mscorlib]System.EventHandler::.ctor(object, native int)
IL_002c: call instance object
[System.Windows.Forms]System.Windows.Forms.Control::Invoke(class
[mscorlib]System.Delegate)
IL_0031: pop
IL_0032: leave.s IL_0035

First 3 lines of error msg looks like .NET Framework Class Library objects:
manualResetEvent::.ctor+0x21
Task::.ctor+0x27
Control::Invoke+0x37
AD-Bus Connection:: ReceiveData+0x31

Is that something like PrintStackTrace in Java happening here? Is it
possible to browse these objects in ILDASM?

Rgds
Matijaz
 
Back
Top