[futurebasic] RELEASERESOURCE

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

From: AlStaff@...
Date: Sun, 24 Oct 1999 23:42:25 EDT
(using FB II)
What happens if I CALL RELEASERESOURCE (handl&) on a handle that isn't a 
resource handle (created in the program).

My problem is I don't always know whether the handle is from the resource 
file or if it was created in the program. I was just calling RELEASERESOURCE 
and I thought that it also called DISPOSHANDLE, but it seems RELEASERESOURCE 
is doing nothing if the handle isn't a res handle, causing a memory leak in 
the program.

I switched to
  IF handl& THEN CALL RELEASERESOURCE (handl&)
  DEF DISPOSEH (handl&)
That seems to be working, but I was wondering if anyone thinks 
RELEASERESOURCE might still cause any problems if the handle isn't a resource 
handle.

Your thoughts are appreciated.


Al Staffieri Jr.

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