Hi...I'm sorry to do so many posts, but sometimes, programming makes me...Never mind.
When I intend to create an instance of the class ThreadServer, I got an error of execution. After debugging, it comes that the constructor code is executed with no error, but the line after the object creation is not executed and I get an error of execution: Windows says that the program encountered an error and has to close...
Here are some parts of my code if this can help understand:

I am so upset with that (it worked very well yesterday!!), that I'm gonna take a small break and come back in some hours...I have to sleep a little.
If someone has an idea, don't hesitate to tell about it.

Last edited by GianT on Tue Jun 28, 2005 1:23 am, edited 2 times in total.

Err...What is a backtrace?
Anyway, I managed to partially solve the problem, but still doesn't understand what caused it. Actually, the thread "th" was defined in NewProgrameFrame.h, so that all the NewProgramFrame.cpp functions could access it. What I did is to declare it in the function creating and calling the thread...
After that, I modified the constructor, and I had the same problem with a variable defined in the header and used in the cpp file. I put it in global in the cpp file and it works... Strange thing...