March 29, 2024, 07:58:29 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


auto-delete routines for 3D items

Started by crystal_blox, January 22, 2009, 02:24:19 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

crystal_blox

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