hii friends
i have opened a Qt project in kdevelop.
it works fine.
but when i create any thread from anywhere in the project may it the main function or from any other class then it enters the thread and then immediately gives
"segmentation fault".
i think it is because the function in which i am creating the thread terminates and so the thread also has to terminate.
but i dont know the exact reason for this.
i have included the header file ---- pthread.h and unistd.h
my Qt supports multi threading
and i am creating the thread using pthread_create(&dispthread1,NULL,thread2update,NUL L)....this is the command i use to create thred.
please tell me how to solve this segmentation fault error.
also how to do multithreading in kdevelop.
thanks and regards
shamik
Bookmarks