[futurebasic] Re: [FB] RELEASERESOURCE

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

From: AlStaff@...
Date: Mon, 25 Oct 1999 00:44:40 EDT
>Al, Just happened to think that maybe you might want to do this:
>
>IF handl& THEN CALL RELEASERESOURCE(handl&)
>LONG IF ResError = resNotFound
>  CALL DISPOSEHANDLE(handl&) 'I now see why the spelling was different
>END IF
>
>What do you think?


Yes. I read your first response and then thought of exactly the same thing. 
I'll do that.

I knew I could have detached the resource every time I got it from the res 
file, but didn't like that approach. I also didn't want to have to always 
keep track of whether it was a res handle or not unless I had to. That's why 
I opted to try using both. Your small change to my code should let me sleep 
well at night.

Thanks!


Al Staffieri Jr.

AlStaff@...
http://members.aol.com/AlStaff/index.html