PDA

View Full Version : Non-breaking threads?



masonwheeler
24-02-2008, 05:48 AM
My game engine runs three main threads: one for rendering, one for input, and one for sound. Unfortunately, if I ever hit a breakpoint or raise an exception, it drops me into Delphi's debugger, pausing all threads. This makes the sound skip and flow inconsistently, which is very jarring. Since the audio thread is all handled by SDL and is quite stable, I never actually break from that thread. Is there any way to set it up so that that thread will always continue running normally even when the rest of the application "breaks" to the debugger?

noeska
24-02-2008, 10:19 AM
I would not be bothered by that as an end-user will never experience it.
But if you tackle exceptions somewhere in your application you could give it a thing on how you handle it. E.g. you could try at that point to pause and or stop other treads etc.