program hangs at ntdll:RtlUserThreadStart when exiting if compile w heaptrc lazarus / 12-Debugger ---------------------------------------------------------------------- omurolmez · 2022-10-04 12:33 Hello, Thanks in advance for your interest. My app hangs ntdll:RtlUserThreadStart (Call Stack) run from ide when compile with heaptrc even if second thread was not created. Without heaptrc it exits to ide normally. What am I missing ? ---------------------------------------------------------------------- omurolmez · 2023-05-09 11:44 There was a memory leak in my program. I found it. Heaptrc works well with my code.