rem: wait_for_thread(fDrawThreadID,&result);
add: if(fDrawThreadID!=-1) wait_for_thread(fDrawThreadID,&result);
context: DDWindow::~DDWindow(void){	int32 result;		fConnectionDisabled=true;	Hide();//	Sync();	wait_for_thread(fDrawThreadID,&result);	free(fClipList);}