[futurebasic] Re: [FB] Urgent Call DisposeGWorld() Problem

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 1999 : Group Archive : Group : All Groups

From: Peuapeu@...
Date: Fri, 28 May 1999 05:03:29 EDT
Rick,

Thanks for the response.

<<  I'm assuming you mean "pointer" and not "handle" here. >>

Yes, I should have written pointer.  I am treating it as a pointer and not a 
handle.
 
 << Try to verify that the GWorld you're disposing is not the current 
port--I'm not
 sure what behavior to expect if you dispose of the current port. >>

I will double check.  Perhaps there is something about "path2"? 
 
>>  Although the GWorld itself is not a handle, DisposeGWorld disposes of 
several
 related handles, including the GWorld's pixel map, its color table, etc.  The
 message you're getting sounds like one of those handles is a handle to a
 resource. <snip> If you think you are passing any resource handles to
 NewGWorld, then first call "DetachResource" on them, just to be safe. >>

OK.  I'll check this.  I do use DetachResource in several places in the code.

James