[Windows Mobile Development and Hacking General] Anton_Gruenlich:
Hi,

I have some strange behaviour on T-Mobile MDA2/MDA3 and other HTC-Phone editions, while e.g. iPAQs or Axims are working properly. During the startup of our .NET CF application, sometimes the CLR seems to crash without any notification to the user. One of my problems is, that I can't reproduce the error regularly and the point where it crashes varies at each time.

I tried to put an Try-Catch-Block around the whole application, but there is no exception catched when the application crashes. Even shortening the startup sequence produces less frequent crashes, but they still exist and I can't reduce the problem to one method or dll.

Below are two logs generated by the bugtrap-application wich comes with the Developer Power Toys. Does anyone have an idea, what might cause this problem? I'm really at a loss with that behaviour.

Regards,

Anton

Log 1:

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

PROCESS CREATE MyApp.exe PID 0x370EA3C2 BASE 0x26000000 PPROC 0x90223950 PTHREAD 0x973EEBA8

MISC	@0:0:22.958

MODULE LOAD mscoree.dll PID 0x370EA3C2 BASE 0x02340000

MODULE LOAD coredll.dll.0407.mui PID 0x370EA3C2 BASE 0x7FFE0000

MODULE LOAD coredll.dll PID 0x370EA3C2 BASE 0x01F60000

MODULE LOAD ws2.dll PID 0x370EA3C2 BASE 0x03060000

MODULE LOAD winsock.dll PID 0x370EA3C2 BASE 0x03070000

MODULE LOAD shlwapi.dll PID 0x370EA3C2 BASE 0x02DD0000

MODULE LOAD wininet.dll PID 0x370EA3C2 BASE 0x02D40000

MODULE LOAD mscoree1_0.dll PID 0x370EA3C2 BASE 0x01640000

MODULE LOAD ole32.dll PID 0x370EA3C2 BASE 0x02390000

MODULE LOAD oleaut32.dll PID 0x370EA3C2 BASE 0x02360000

MODULE LOAD ossvcs.dll PID 0x370EA3C2 BASE 0x022E0000

MODULE LOAD cellcore.dll PID 0x370EA3C2 BASE 0x02980000

MODULE LOAD iphlpapi.dll PID 0x370EA3C2 BASE 0x03080000

MODULE LOAD shutil.dll PID 0x370EA3C2 BASE 0x027B0000

MODULE LOAD tshres.dll PID 0x370EA3C2 BASE 0x7FFA0000

MODULE LOAD tshres.96.dll PID 0x370EA3C2 BASE 0x7FF30000

MODULE LOAD aygshell.dll PID 0x370EA3C2 BASE 0x027E0000

MODULE LOAD shellres.dll PID 0x370EA3C2 BASE 0x7FF40000

MODULE LOAD commctrl.dll PID 0x370EA3C2 BASE 0x02840000

MODULE LOAD netcfagl1_0.dll PID 0x370EA3C2 BASE 0x02310000

MODULE LOAD rsaenh.dll PID 0x370EA3C2 BASE 0x00FE0000

MODULE UNLOAD PID 0x370EA3C2 BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0x370EA3C2 BASE 0x00FE0000

MODULE UNLOAD PID 0x370EA3C2 BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0x370EA3C2 BASE 0x00FE0000

MODULE UNLOAD PID 0x370EA3C2 BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0x370EA3C2 BASE 0x00FE0000

MODULE UNLOAD PID 0x370EA3C2 BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0x370EA3C2 BASE 0x00FE0000

MISC	@0:0:24.18

MODULE UNLOAD PID 0x370EA3C2 BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0x370EA3C2 BASE 0x00FE0000

MODULE UNLOAD PID 0x370EA3C2 BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0x370EA3C2 BASE 0x00FE0000

MODULE UNLOAD PID 0x370EA3C2 BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0x370EA3C2 BASE 0x00FE0000

MODULE UNLOAD PID 0x370EA3C2 BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0x370EA3C2 BASE 0x00FE0000

MODULE UNLOAD PID 0x370EA3C2 BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0x370EA3C2 BASE 0x00FE0000

MODULE UNLOAD PID 0x370EA3C2 BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0x370EA3C2 BASE 0x00FE0000

MODULE UNLOAD PID 0x370EA3C2 BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0x370EA3C2 BASE 0x00FE0000

MISC	@0:0:25.61

MODULE UNLOAD PID 0x370EA3C2 BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0x370EA3C2 BASE 0x00FE0000

MODULE UNLOAD PID 0x370EA3C2 BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0x370EA3C2 BASE 0x00FE0000

MODULE UNLOAD PID 0x370EA3C2 BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0x370EA3C2 BASE 0x00FE0000

MODULE UNLOAD PID 0x370EA3C2 BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0x370EA3C2 BASE 0x00FE0000

MODULE UNLOAD PID 0x370EA3C2 BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0x370EA3C2 BASE 0x00FE0000

MODULE UNLOAD PID 0x370EA3C2 BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0x370EA3C2 BASE 0x00FE0000

MODULE UNLOAD PID 0x370EA3C2 BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0x370EA3C2 BASE 0x00FE0000

MODULE UNLOAD PID 0x370EA3C2 BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0x370EA3C2 BASE 0x00FE0000

MODULE UNLOAD PID 0x370EA3C2 BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0x370EA3C2 BASE 0x00FE0000

MISC	@0:0:26.86

MODULE UNLOAD PID 0x370EA3C2 BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0x370EA3C2 BASE 0x00FE0000

MODULE UNLOAD PID 0x370EA3C2 BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0x370EA3C2 BASE 0x00FE0000

MODULE UNLOAD PID 0x370EA3C2 BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0x370EA3C2 BASE 0x00FE0000

MODULE UNLOAD PID 0x370EA3C2 BASE 0x00FE0000

MSG	@0:0:26.366	Data Abort: Thread=973eeba8 Proc=90223950 'MyApp.exe'

MSG	@0:0:26.367	AKY=00040001 PC=002f0318 RA=002f030c BVA=e59f324c FSR=00000005

INCIDENT TYPE EXCEPTION ADDRESS 0x002F0318 CHANCE first CODE 0xC0000005 FLAGS 0x00000000 THREAD 0x36B3208A OWNER_PID 0x370EA3C2 CURRENT_PID 0x370EA3C2 NAME MyApp.exe

REGISTERS BEGIN

Psr	0x6000001F

R0	0x00000001

R1	0xFFFFC898

R2	0x6000001F

R3	0xFFFFC800

R4	0xF71FBFCE

R5	0x00000001

R6	0x00000000

R7	0x969AAE58

R8	0x00000003

R9	0xFFFFC80C

R10	0xFFFFC894

R11	0x00000000

R12	0x80052AE0

Sp	0x2626F518

Lr	0x80052AE0

Pc	0x80052AE0

REGISTERS END

CALLSTACK BEGIN

CALLSTACK END

INCIDENT END

Log 2:

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

PROCESS CREATE MyApp.exe PID 0xF6D8672A BASE 0x24000000 PPROC 0x90223878 PTHREAD 0x9676C000

MODULE LOAD mscoree.dll PID 0xF6D8672A BASE 0x02340000

MODULE LOAD coredll.dll.0407.mui PID 0xF6D8672A BASE 0x7FFE0000

MODULE LOAD coredll.dll PID 0xF6D8672A BASE 0x01F60000

MODULE LOAD ws2.dll PID 0xF6D8672A BASE 0x03060000

MODULE LOAD winsock.dll PID 0xF6D8672A BASE 0x03070000

MODULE LOAD shlwapi.dll PID 0xF6D8672A BASE 0x02DD0000

MODULE LOAD wininet.dll PID 0xF6D8672A BASE 0x02D40000

MODULE LOAD mscoree1_0.dll PID 0xF6D8672A BASE 0x01640000

MODULE LOAD ole32.dll PID 0xF6D8672A BASE 0x02390000

MODULE LOAD oleaut32.dll PID 0xF6D8672A BASE 0x02360000

MODULE LOAD ossvcs.dll PID 0xF6D8672A BASE 0x022E0000

MODULE LOAD cellcore.dll PID 0xF6D8672A BASE 0x02980000

MODULE LOAD iphlpapi.dll PID 0xF6D8672A BASE 0x03080000

MODULE LOAD shutil.dll PID 0xF6D8672A BASE 0x027B0000

MODULE LOAD tshres.dll PID 0xF6D8672A BASE 0x7FFA0000

MODULE LOAD tshres.96.dll PID 0xF6D8672A BASE 0x7FF30000

MODULE LOAD aygshell.dll PID 0xF6D8672A BASE 0x027E0000

MODULE LOAD shellres.dll PID 0xF6D8672A BASE 0x7FF40000

MODULE LOAD commctrl.dll PID 0xF6D8672A BASE 0x02840000

MODULE LOAD netcfagl1_0.dll PID 0xF6D8672A BASE 0x02310000

MODULE LOAD rsaenh.dll PID 0xF6D8672A BASE 0x00FE0000

MODULE UNLOAD PID 0xF6D8672A BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0xF6D8672A BASE 0x00FE0000

MODULE UNLOAD PID 0xF6D8672A BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0xF6D8672A BASE 0x00FE0000

MODULE UNLOAD PID 0xF6D8672A BASE 0x00FE0000

MISC	@0:1:24.801

MODULE LOAD rsaenh.dll PID 0xF6D8672A BASE 0x00FE0000

MODULE UNLOAD PID 0xF6D8672A BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0xF6D8672A BASE 0x00FE0000

MODULE UNLOAD PID 0xF6D8672A BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0xF6D8672A BASE 0x00FE0000

MODULE UNLOAD PID 0xF6D8672A BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0xF6D8672A BASE 0x00FE0000

MODULE UNLOAD PID 0xF6D8672A BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0xF6D8672A BASE 0x00FE0000

MODULE UNLOAD PID 0xF6D8672A BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0xF6D8672A BASE 0x00FE0000

MODULE UNLOAD PID 0xF6D8672A BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0xF6D8672A BASE 0x00FE0000

MODULE UNLOAD PID 0xF6D8672A BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0xF6D8672A BASE 0x00FE0000

MISC	@0:1:25.857

MODULE UNLOAD PID 0xF6D8672A BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0xF6D8672A BASE 0x00FE0000

MODULE UNLOAD PID 0xF6D8672A BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0xF6D8672A BASE 0x00FE0000

MODULE UNLOAD PID 0xF6D8672A BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0xF6D8672A BASE 0x00FE0000

MODULE UNLOAD PID 0xF6D8672A BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0xF6D8672A BASE 0x00FE0000

MODULE UNLOAD PID 0xF6D8672A BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0xF6D8672A BASE 0x00FE0000

MODULE UNLOAD PID 0xF6D8672A BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0xF6D8672A BASE 0x00FE0000

MODULE UNLOAD PID 0xF6D8672A BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0xF6D8672A BASE 0x00FE0000

MODULE UNLOAD PID 0xF6D8672A BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0xF6D8672A BASE 0x00FE0000

MISC	@0:1:26.860

MODULE UNLOAD PID 0xF6D8672A BASE 0x00FE0000

MODULE LOAD winsock.dll PID 0x1794F866 BASE 0x03070000

MODULE LOAD rsaenh.dll PID 0xF6D8672A BASE 0x00FE0000

MODULE UNLOAD PID 0xF6D8672A BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0xF6D8672A BASE 0x00FE0000

MODULE UNLOAD PID 0xF6D8672A BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0xF6D8672A BASE 0x00FE0000

MODULE UNLOAD PID 0xF6D8672A BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0xF6D8672A BASE 0x00FE0000

MODULE UNLOAD PID 0xF6D8672A BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0xF6D8672A BASE 0x00FE0000

MODULE UNLOAD PID 0xF6D8672A BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0xF6D8672A BASE 0x00FE0000

MODULE UNLOAD PID 0xF6D8672A BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0xF6D8672A BASE 0x00FE0000

MODULE UNLOAD PID 0xF6D8672A BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0xF6D8672A BASE 0x00FE0000

MODULE UNLOAD PID 0xF6D8672A BASE 0x00FE0000

MODULE LOAD rsaenh.dll PID 0xF6D8672A BASE 0x00FE0000

MODULE UNLOAD PID 0xF6D8672A BASE 0x00FE0000

MODULE LOAD imaging.dll PID 0xF6D8672A BASE 0x02CF0000

MISC	@0:1:30.160

MODULE LOAD compime.dll PID 0xF6D8672A BASE 0x02740000

MODULE LOAD imgdecmp.dll PID 0xF6D8672A BASE 0x02770000

MODULE LOAD message.dll PID 0xF6D8672A BASE 0x00D60000

MODULE LOAD htmlview.dll PID 0xF6D8672A BASE 0x02760000

MISC	@0:1:31.260

MODULE LOAD webview.dll PID 0xF6D8672A BASE 0x02B30000

MODULE LOAD browsres.dll PID 0xF6D8672A BASE 0x7FD70000

MODULE LOAD browsres.96.dll PID 0xF6D8672A BASE 0x7FD60000

MODULE LOAD ssllsp.dll PID 0xF6D8672A BASE 0x03020000

MODULE LOAD wspm.dll PID 0xF6D8672A BASE 0x03040000

MISC	@0:1:33.189	Got create thread event for proc ID 0xF6D8672A, pthread 0x97190000, start address 0x01659AA4.

MODULE LOAD toolhelp.dll PID 0xF6D8672A BASE 0x021B0000

MISC	@0:1:34.244

MSG	@0:1:35.599	Data Abort: Thread=9676c000 Proc=90223878 'MyApp.exe'

MSG	@0:1:35.600	AKY=00020001 PC=0032afbc RA=0032afbc BVA=24000018 FSR=00000007

INCIDENT TYPE EXCEPTION ADDRESS 0x0032AFBC CHANCE first CODE 0xC0000005 FLAGS 0x00000000 THREAD 0xF6EF6422 OWNER_PID 0xF6D8672A CURRENT_PID 0xF6D8672A NAME MyApp.exe

REGISTERS BEGIN

Psr	0x6000001F

R0	0x00000001

R1	0xFFFFC898

R2	0x6000001F

R3	0xFFFFC800

R4	0x17160B9E

R5	0x00000001

R6	0x00000000

R7	0x96FA4E44

R8	0x00000003

R9	0xFFFFC80C

R10	0xFFFFC894

R11	0x00000000

R12	0x80052AE0

Sp	0x2426F458

Lr	0x80052AE0

Pc	0x80052AE0

REGISTERS END

CALLSTACK BEGIN

CALLSTACK END

INCIDENT END