thanks all ....but i think that the problem in our program is that there is a thread that don't close !! how can we fix this
we made a thread that contains
while(true)
how can we change it to while the program is opened ?
thx in advance
just put
while (0 < Thread().GetCount())
{
RLOG("[" << GetSysTime() << "." << "] "
<< __func__ << " Sleep(1) due of " << Thread().GetCount()
<< " Running threads"
);
Sleep(1);
}
in the destructor (for me it was the destructor of the class where the threads were created)
This will prevent to close the gui before the threads are closed.