Thread View: comp.os.ms-windows.programmer.tools.owl
1 messages
1 total messages
Started by Prianggada I Tanaya
Tue, 19 Aug 1997 00:00
Error [Thread]: destroyed before Exit()
Author: Prianggada I Tanaya
Date: Tue, 19 Aug 1997 00:00
Date: Tue, 19 Aug 1997 00:00
55 lines
1909 bytes
1909 bytes
-- Dear OWLers
I am working with BC4.52 on NT4.0.
I derived a class from TThread, and when the application exit,
I get an error message like this.
Error [Thread]: destroyed before Exit()
Here is the class where the error appear.
class TSCThread : public TThread {
unsigned long Run ();
TSC* m_pSC;
public:
TSCThread (const TSC& sc) ;
~TSCThread ();
};
TSCThread::TSCThread (const TSC& sc) : TThread()
{
m_pSC = (TSC*)≻
Start();
SetPriority(THREAD_PRIORITY_BELOW_NORMAL);
}
TSCThread::~TSCThread ()
{
TerminateAndWait(500); // << debug here ! >>
}
class TSC {
friend TSCThread;
.....
};
I debug << debug here ! >> and immediately it sends
the error message.
I don't have any clue, how could I solve this.
Are there any of you who could share some experience.
Thanks for reading ... and thanks in advance.
Regard
** Indra **
+++
Prianggada I. Tanaya Div. of PMA, Dept. of Mech. Eng. KU Leuven
Research Fellow Celestijnenlaan 300B, 3001-Leuven, Belgium
Phone : +32.16.32.25.31/+32.16.32.24.75 FAX : +32.16.32.29.87
mailto:Prianggada.IndraTanaya@mech.kuleuven.ac.be
http://www.mech.kuleuven.ac.be/pma
AAA000
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads