Ron
October 13th, 2002, 12:55 PM
There is a nasty error in the skeleton example plugin. This is noticable when you close girder with the plugin window open.
Comment out the following line to fix the problem:
in ui.cpp
void Show_Config()
{
DWORD dwThreadId;
HANDLE ConfigThreadHandle;
if (hWindow != 0)
{
SetForegroundWindow(hWindow);
}
else
{
ConfigThreadHandle=CreateThread(NULL,0,&ConfigThread,hInstance,0,&dwThreadId);
if (ConfigThreadHandle==0)
MessageBox(0, "Cannot create dialogthread.", "Error", MB_OK);
}
return ;
}
Remove the line that says
HANDLE ConfigThreadHandle;
DUMB DUMB DUMB, this overrides the global variable and thus the subsequent Waitforsingleobject in "ConfigClose" returns immediately and thus crashes girder on exit.
Comment out the following line to fix the problem:
in ui.cpp
void Show_Config()
{
DWORD dwThreadId;
HANDLE ConfigThreadHandle;
if (hWindow != 0)
{
SetForegroundWindow(hWindow);
}
else
{
ConfigThreadHandle=CreateThread(NULL,0,&ConfigThread,hInstance,0,&dwThreadId);
if (ConfigThreadHandle==0)
MessageBox(0, "Cannot create dialogthread.", "Error", MB_OK);
}
return ;
}
Remove the line that says
HANDLE ConfigThreadHandle;
DUMB DUMB DUMB, this overrides the global variable and thus the subsequent Waitforsingleobject in "ConfigClose" returns immediately and thus crashes girder on exit.