[futurebasic] Re: Clipboard/Memory??

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 1997 : Group Archive : Group : All Groups

From: Al Staff <AlStaff@...>
Date: Tue, 9 Dec 1997 00:37:50 EST
<< Each time I copy to the clipboard I loose a bit more memory. I suppose that
is because I am not disposing of the Picture Handle properly. >>


Since you're using PICTURE FIELD, you need to add this after the PICTURE OFF
statement:
  FOR x = 1 TO 80
   LONG IF board(x) <> 3
     EDIT FIELD CLOSE x
   END IF
  NEXT x

If closing them will mess up PICTURE FIELDS that you are already using, then
make these fields 81 to 160:
PICTURE ON (118,38)-(630,450)                     'record a PICT
  FOR x = 81 TO 160
   LONG IF board(x - 80) <> 3
     PICTURE FIELD x,objs$(board(x - 80)) 
   END IF
  NEXT x
  PICTURE OFF, hndl&
  FOR x = 81 TO 160
   LONG IF board(x - 80) <> 3
     EDIT FIELD CLOSE x
   END IF
  NEXT x

A better method would probably be to just use PICTURE instead of PICTURE FIELD
for the clipboard.


Al Staffieri Jr.

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