well
I am using a code like this for my program
class aClass : public OpenGLComponent,
public ThreadWithProgressWindow
{
aClass () : ThreadWithProgressWindow(...) {}
~aClass () {}
void doAlgorithm()
{
makeCurrentContextInactive ();
runThread();
}
void run()
{
makeCurrentContextActive();
while ()
{
// ... some computation and rendering
}
makeCurrentContextInActive();
}
};
I have used this class with new operator in my main window. and it exist from the first moment the main window starts. then I have a button in my window that if I press it it will call aClass->doAlgorithm();
The code is really more complicated than above. but everything works fine for the first time. the progress window appears . you know. everything is fine.
but the second time that I click the button, The Visual C++ 2005 triggers a breakpoint with break and continue
if I press continue , the code works fine again with no memory leaks or anything.
I don’t know where to look for the problem. I tried everything. the code just work fine but with a triggered breakpoint everytime.
does anybody know what is going on here or how I may get a debug message from JUCE to know what it is up to ?
