Board index » cppbuilder » Problem with MultiThread programs
Problem with MultiThread programs
2005-03-29 06:21:59 PM
Sorry, I have a problem with the creation of the threads.
I've developed a simple Server, which matches one client with a
thread, but when it occurs, these threads tend to use memory area that
they should not use: for example they put random values in one
variable which is used by an internal
thread of my application (but this variable is global). In addition,
they get slow a lot the internal thread.
I use the CreateThread for start a new thread. How can I do to solve
my problem without change too much my program?
I believe that I have to set the stack size of the thread in the 2nd
parameter of the CreateThread, but when I tried it, I did not obtain
Thanks a lot.