[futurebasic] Re: SpriteWorld

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : March 1998 : Group Archive : Group : All Groups

From: Chris <staz@...>
Date: Mon, 30 Mar 98 10:47:28 -0500
>KILL PICTURE SWPtr&.backPictHdl&
>
>I read reference manual, and it says,
> - You can only use KILL PICTURE statement in following handles.
>   + PICT handle which was made PICTURE ON/OFF statement
>   + PICT handle which was loaded with using OPENPICTURE statement
>
>I search through the project, but the back ground picture is just load 
>with using GETPICTURE statement and then detached the resource manager, 
>and it seem _normal_ handle. I wonder why we have to do that? I think it 
>enough to dispose the picture handle, like this,
>
>DEF DISPOSEH(SWPtr&.backPictHdl&)

If you are sure that the picture is loaded with GETPICTURE and never 
detached or copied, then it should never be disposed of. That would cause 
an instant crash. 

The routine that you are speaking of can only occur if the picture handle 
was added as a handle (not a resource) thru FN 
SWSetBackgroundPict(SWPtr&,pictHdl&). If your pictHdl& is a resource, you 
need to detach it before call SWSetBackgroundPict.


Pizza, Pizza,

-STAZ   ~)~

--------------------------------------------------------------
STAZ Software * 4387 Leisure Time Dr * Diamondhead, MS 39525
--------------------------------------------------------------
Orders: 800-348-2623      EMail http: //www.stazsoftware.com
  Tech: 601-255-7085             FAX: 601-255-7086     
--------------------------------------------------------------