Threading woes

Hi,
I’ve been writing a little SDL application that uses both graphics
and sound. It was going great until all of a sudden, the call to
SDL_OpenAudio starts to report that it “Couldn’t create audio thread.” Up
until this point, I had been making quite a few pointer errors and opening
more than a few SDL parachutes and having to kill -9 the SDL application.
In order to get the program to work again, I eventually had to <GASP!>
reboot my Linux box.

So what do you suppose the problem was? Did the OS run out of

entries in a thread table somewhere? If the problem happens again, is
there any way to recover without rebooting?

Thanks...
-The Mighty Mike Master
http://tmmm.simplenet.com