Is this the case if its my code in a Dll and 1 thread? (Or does that count as 2 threads, being my main, and 1 purposely made thread)?
All processes (one process = one instance of EXE) have a primary thread. Threads created the THREAD CREATE statement are threads 2-n of the process.
I aggree it looks like a deadlock state, but I have to walk through carefully in debugger to be sure its not some infinite loop. (but if it were then I would think I would quickly run out of memory and crash out???))
Code:
DO: Z = 4: LOOP UNTIL Z= 5
Can Suspending a thread and resuming multiple times, or Suspending and calling a sleep while its suspended cause similar "Hard-to-track" bugs in my code????
Remember, THREAD SUSPEND and THREAD RESUME do not suspend or resume directly; they increase or decrease a suspend count. When the suspend count is zero, the thread executes; when that suspend count is greater than zero,it don't. Any possibility in your program that you have mismatched SUSPEND and RESUME statements on the same thread handle? Well, there's your "stop."
MCM
Leave a comment: