![]() ![]() The threads are created detached, so I shouldn't have to use pthread_join().This is happening right from the beginning, not after I have run the application for a while.Printf("Error %d: could not create thread\n", errno) Įvery time I run this, the error code displayed is 11, which apparently would indicate that my process has crossed the max threads threshold, based on stuff I've read on the Internet. The call to pthreadcreate returns a -1 (rathe. Make sure that before TestComplete is launched, there are at least 2 Gb of free RAM available. 7.52) that has some improvements in the HTTP Load Testing feature. Try using the latest version of TestComplete (ver. After some minor massaging, the program compiles but doesnt run as expected. The problem seems to be caused by the insufficient RAM size. What is in general wrong Some more details: This simple code works fine development environment and in docker on my host QThread thread new QThread() QObject runner ne. If (0 = pthread_create(&child_thread, &child_attr, processor->process, (void *) msg)) Im new to pthreads, so I copied a simple example out of the pthreads book. Hi there What can be wrong with the build, threads stopped working at all. ![]() MessageProcessor * processor = new MessageProcessor() If the problem only happens when you call exec (), which creates an Even Loop for the thread, it would indicate that its more are problem of too many Event Loops (and maybe the resources that need to be allocated for each Event Loop) than the sheer number of threads. code here to wait on valid message (msg) using the batch mode, this one calls basic 'function', that embeds thread creation and destruction. Pthread_attr_setdetachstate(&child_attr, PTHREAD_CREATE) The pthread portion/options I am using are as follows: pthread_attr_t child_attr I have a server application, which waits on a queue, fetches incoming messages, and spawns a thread to process the received message and send a reply. Sontichai said in QThread::start: Thread creation error: Resource temporarily unavailable (QNetworkAccessManager): QNetworkAccessManager networkManager new QNetworkAccessManager(this) Dont create a new QNetworkAccessManager for every call call. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |