[Threads-list] memory alloc and dealloc problem
Brought to you by:
hanseno
From: Matteo P. <ma...@do...> - 2002-03-20 16:05:12
|
Hello, I'm using C++ threads in my program running under Linux and I've the = following problem. In the context of thread 2 (a new thread spawned using a C++ library = class) I create a new C++ object and put it in a list. Then, that thread = 2 dies. In a second moment I want to retrieve that previous object from = a the main program thread. The object seems to be retrived, but when I I = wish to destry that object and I invoke a=20 delete MyObject the program stops and I get a segmentation fault error. How can this be fixed ? Thanks Alot Everybody Matteo=20 |