When attempting to reset my thread manager by looping through the threadlist object that may have pointers to thread objects, my program hangs. When I set a breakpoint on Threadlist, it comes back as not nil. When I check Locklist it hangs the debugger. At runtime it hangs the program.
if ThreadList.LockList.Count > 0 then begin
Is there a way to check at runtime to avoid this? It is not an error since my try/except handler is never invoked. It seems like the function is waiting indefinitely for the Locklist function to return.