I solved it!
It was mine mistake!
I use a SDL struct (Global declaration) for the fonts. So i load the fonts at the entry point -main()- but, i didn't had loaded the font's to the struct, before posting the semaphores for theading execution.
This had the result, of calling the SDL_RenterTextSolid( *font, ....) with a NULL pointer........ Segmentation fault. :-)
THANX!!!!!
So i't was mine mistake.
P.S. Threads are known as "how to shoot yourself in both feet at once."
Alan Cox
Last edited by mpeg2server; 09-12-2010 at 05:06 PM.
|