Hi, according to the article :
Originally Posted by vart
What i want the service to process is actually a multhithread class that will keep listening to the port and receiving the data ... what should i do then ? u make the valid point, if constantly creating the new threads at some points it will out of resource. Is that mean i can't put multhithread inside the while statement ? If so then any solution to this ?
bRunning = true;
// Put what you want the service to process here
Mortissus , yeh i remove "bRunning = false;" so that it can run only once so it wont out of resource, but the same error still occured. As for my TestClass, for testing purpose i delete all the function member and only left Main function, it looks like following:
For your information, PThread is one of the class in OpenH323. There's no need for me to call the 'Main' function, instead all i need to do is create an object of that class, then call 'resume' instead of 'Main' as shown following:
class TestClass : public PThread
// for testing purpose i leave it empty
Im in crying need now. Hope someone can help me out. Your effort is appreciated !!