i did just as you said logging when i enter and leave each of my functions and sending the error to the client
the last thing i logged was leaving the onExecute Event an then i got this from the call stack.
EurekaLog 7.0.5.1
Exception:
--------------------------------------------------
2.2 Address: 00870BE9
2.5 Type : EFrozenApplication
2.6 Message: The application seems to be frozen.
2.7 ID : 1AFF0000
2.11 Sent : 0
User:
-------------
3.2 Name :
3.3 Email:
Steps to reproduce:
------------
8.1 Text:
Call Stack Information:
---------------------------------------------------------------------------------------------------------------------------------------------------------
|Methods |Details|Stack |Address |Module |Offset |Unit |Class |Procedure/Method |Line |
---------------------------------------------------------------------------------------------------------------------------------------------------------
|*Exception Thread: ID=5256; Parent=0; Priority=0 |
|Class=; Name=MAIN |
|DeadLock=0; Wait Chain=thread: [ 1488 / 5256 ] is blocked |
|Comment= |
|-------------------------------------------------------------------------------------------------------------------------------------------------------|
|7FFFFFFE|04 |00000000|00870BEE|GestiiServer.exe|00470BEE|rtcInfo | |PosEx |8526[16] |
|00000020|04 |0017FBB4|0096DCC4|GestiiServer.exe|0056DCC4|rtcSocketHttpSrvProv|TRtcSocketHttpServerProvider|InternalRead |477[5] |
|00000020|04 |0017FBDC|0096D8A5|GestiiServer.exe|0056D8A5|rtcSocketHttpSrvProv|TRtcSocketHttpServerProvider|TriggerDataReceived |420[213] |
|00000020|04 |0017FCA0|00968FA6|GestiiServer.exe|00568FA6|rtcSocketSrvProv |TRtcSocketServerProvider |wsOnDataReceived |1217[70] |
|00000020|04 |0017FCD4|009583E0|GestiiServer.exe|005583E0|rtcSockBase |TRtcSocketBase |On_DataReceived |399[7] |
|00000020|04 |0017FCE4|0095F9D4|GestiiServer.exe|0055F9D4|rtcWinSocket |TRtcWinSocket |DoRead |1624[8] |
|00000020|04 |0017FCFC|0095F876|GestiiServer.exe|0055F876|rtcWinSocket |TRtcWinSocket |DoXRead |1580[1] |
|00000020|04 |0017FD04|0095FE80|GestiiServer.exe|0055FE80|rtcWinSocket |TRtcWinSocket |DoMessage |1761[9] |
|00000020|04 |0017FD28|00958139|GestiiServer.exe|00558139|rtcSockBase |TRtcSocketBase |Call_Message |278[18] |
|00000020|04 |0017FD40|0096000B|GestiiServer.exe|0056000B|rtcWinSocket |TRtcWinSocket |WMASyncSelect |1780[10] |
|00000020|04 |0017FD48|00960385|GestiiServer.exe|00560385|rtcWinSocket | |RtcSocketWindowProc |1913[45] |
|00000020|04 |0017FDA8|00955EA0|GestiiServer.exe|00555EA0|rtcHWndPool | |RtcMainHWNDWindowProc |126[6] |
|00000020|03 |0017FE18|76498989|USER32.dll |00018989|USER32 | |(possible GetWindowLongW+962) | |
|00000020|03 |0017FE90|76498AB4|USER32.dll |00018AB4|USER32 | |(possible GetWindowLongW+1261)| |
|00000020|03 |0017FEF4|76498B0B|USER32.dll |00018B0B|USER32 | |DispatchMessageW | |
|00000020|03 |0017FF04|0062B9D7|GestiiServer.exe|0022B9D7|Vcl.Forms |TApplication |ProcessMessage | |
|00000020|03 |0017FF20|0062BA1A|GestiiServer.exe|0022BA1A|Vcl.Forms |TApplication |HandleMessage | |
|00000020|03 |0017FF44|0062BD59|GestiiServer.exe|0022BD59|Vcl.Forms |TApplication |Run | |
|00000020|04 |0017FF74|0099C257|GestiiServer.exe|0059C257|GestiiServer | |Initialization |72[6] |
|00000020|03 |0017FF8C|763FF26F|kernel32.dll |0008F26F|kernel32 | |BaseThreadInitThunk | |
---------------------------------------------------------------------------------------------------------------------------------------------------------
Assembler Information:
------------------------------------------------------------------------------------------------
; rtcInfo.PosEx (Line=8522 - Offset=104)
; --------------------------------------
00870BC8 dec edx
;
; Line=8522 - Offset=105
; ----------------------
00870BC9 jnz rtcInfo.PosEx (Line=8517)
;
; Line=8522 - Offset=107
; ----------------------
00870BCB jmp rtcInfo.PosEx (Line=8550)
;
; Line=8524 - Offset=112
; ----------------------
00870BD0 mov dword ptr [ebp-$04], $FFFFFFFF ; ANSI: '...'; UNICODE: '...'
;
; Line=8525 - Offset=119
; ----------------------
00870BD7 mov eax, esi
;
; Line=8525 - Offset=121
; ----------------------
00870BD9 call System._DynArrayLength
;
; Line=8525 - Offset=126
; ----------------------
00870BDE mov edx, eax
;
; Line=8525 - Offset=128
; ----------------------
00870BE0 dec edx
;
; Line=8525 - Offset=129
; ----------------------
00870BE1 test edx, edx
;
; Line=8525 - Offset=131
; ----------------------
00870BE3 jle rtcInfo.PosEx (Line=8550)
;
; Line=8525 - Offset=137
; ----------------------
00870BE9 mov eax, $00000001 ; ANSI: '...'; UNICODE: '...' ; <-- EXCEPTION
;
; Line=8526 - Offset=142
; ----------------------
00870BEE movzx ecx, byte ptr [esi+eax-$01]
;
; Line=8526 - Offset=147
; ----------------------
00870BF3 cmp cl, byte ptr [ebx]
;
; Line=8526 - Offset=149
; ----------------------
00870BF5 jnz rtcInfo.PosEx (Line=8530)
;
; Line=8526 - Offset=151
; ----------------------
00870BF7 movzx ecx, byte ptr [esi+eax]
;
; Line=8526 - Offset=155
; ----------------------
00870BFB cmp cl, byte ptr [ebx+$02]
;
; Line=8526 - Offset=158
; ----------------------
00870BFE jnz rtcInfo.PosEx (Line=8530)
;
; Line=8528 - Offset=160
; ----------------------
00870C00 mov [ebp-$04], eax
;
; Line=8529 - Offset=163
; ----------------------
00870C03 jmp rtcInfo.PosEx (Line=8550)
;
; Line=8530 - Offset=168
; ----------------------
00870C08 inc eax
;
; Line=8531 - Offset=169
; ----------------------
00870C09 dec edx
Registers:
-----------------------------
EAX:
? EDI:
?
EBX:
? ESI:
?
ECX:
? EBP:
?
EDX:
? ESP:
?
EIP:
? FLG:
?
EXP: 00870BE9 STK: 045FF7FC
Stack: Memory Dump:
------------------ ---------------------------------------------------------------------------
045FF838: 00000000 00870BE9: B8 01 00 00 00 0F B6 4C 06 FF 3A 0B 75 11 0F B6 .......L..:.u...
045FF834: 00000000 00870BF9: 0C 06 3A 4B 02 75 08 89 45 FC E9 85 00 00 00 40 ..:K.u..E......@
045FF830: 00000000 00870C09: 4A 75 E2 EB 7F C7 45 FC FF FF FF FF 8B C6 E8 E0 Ju....E.........
045FF82C: 00000000 00870C19: A3 B9 FF 8B D0 2B 55 F4 42 85 D2 7E 67 B8 01 00 .....+U.B..~g...
045FF828: 00000000 00870C29: 00 00 0F B6 4C 06 FF 3A 0B 75 55 0F B6 0C 06 3A ....L..:.uU....:
045FF824: 05EB8000 00870C39: 4B 02 75 4C 0F B6 4C 06 01 3A 4B 04 75 42 89 45 K.uL..L..:K.uB.E
045FF820: 00001488 00870C49: FC 8B 4D F4 49 83 E9 03 7C 30 41 89 4D F0 C7 45 ..M.I...|0A.M..E
045FF81C: 045FFB00 00870C59: F8 03 00 00 00 8B C8 03 4D F8 0F B6 4C 0E FF 8B ........M...L...
045FF818: 0064131F 00870C69: 7D F8 47 3A 4C 7B FE 74 09 C7 45 FC FF FF FF FF }.G:L{.t..E.....
045FF814: 045FFB0C 00870C79: EB 08 FF 45 F8 FF 4D F0 75 DB 83 7D FC 00 7F 04 ...E..M.u..}....
045FF810: 045FFB00 00870C89: 40 4A 75 9E 8B 45 FC 5F 5E 5B 8B E5 5D C3 90 55 @Ju..E._^[..]..U
045FF80C: 00641305 00870C99: 8B EC 53 56 8B DA 8B F0 8B C3 8B D6 E8 5A 80 B9 ..SV.........Z..
045FF808: 045FF814 00870CA9: FF 8B 13 B8 E0 0C 87 00 E8 96 93 B9 FF 8B F0 85 ................
045FF804: 045FFB00 00870CB9: F6 7E 13 8B C3 E8 2D 82 B9 FF 0F B7 15 1A 55 AC .~....-.......U.
045FF800: 006412D1 00870CC9: 00 66 89 54 70 FE 5E 5B 5D C3 00 B0 04 02 00 FF .f.Tp.^[].......
045FF7FC: 045FFB00 00870CD9: FF FF FF 01 00 00 00 2E 00 00 00 55 8B EC 83 C4 ...........U....
according to the assembler information it might be related with unicode or ansi but in all my functions i use normal strings and assign them with .asString