IonicWind Software

Creative Basic => 2D/3D => Topic started by: crystal_blox on January 22, 2009, 02:24:19 AM

Title: auto-delete routines for 3D items
Post by: crystal_blox on January 22, 2009, 02:24:19 AM
Hi guys-
   I've had some deep system hangs caused by forgetting to add every 3D frame I create to the list of D3Ddelete's at the end of the program.
   So here are two subroutines, (with an example program):
one to be called as you create each item,  which records the item in an array,
the other to be called once just before 'closewindow', which deletes every item recorded in the array.
    This puts the burden of remembering right at the point of creation, where it's easy.
Using this, I make far fewer mistakes.

Jim