Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Cleaning up your mess!?

Author
Message
ryansobol
21
Years of Service
User Offline
Joined: 20th May 2003
Location:
Posted: 20th May 2003 17:50
How does dark basic pro handle the deallocating of 3D objects, user-defined types, etc. from memory when a game quits? What are the possible memory leaks that a savvy game programmer should check for when his game is about to terminate?

Ryan
Mike Johnson
TGC Developer
22
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United Kingdom
Posted: 21st May 2003 01:28
DB Pro will clean up after itself when a game quits so there should be no memory leaks.

Mike
ryansobol
21
Years of Service
User Offline
Joined: 20th May 2003
Location:
Posted: 21st May 2003 05:53
cool, just want to make sure DBPro is an intuative interpreter with garbage collection. thanx for your help!

CloseToPerfect
21
Years of Service
User Offline
Joined: 20th Dec 2002
Location: United States
Posted: 21st May 2003 07:38
you must delete all objects, sounds, bitmaps, images, sprites, arrays or you will have memory leaks. try it, load in alot of large images or something and don't delete them run the program over and over and watch windows crash, fun really.
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 21st May 2003 09:18
my favorite is when all the buttons dissapear and slowly they come back in purdy colours then mr lockup pays you a visit and u have to press mr reset.

CloseToPerfect
21
Years of Service
User Offline
Joined: 20th Dec 2002
Location: United States
Posted: 22nd May 2003 01:17
Ahhh, that's the bonus round.

yes, indi, it's a great game to play isn't it?

but it doesn't compare to the all time windows classic,
Reformat and Reinstall,,, probably the most played windows game of all.
haXor
21
Years of Service
User Offline
Joined: 12th May 2003
Location: United States
Posted: 22nd May 2003 03:12
lol

Sup Kids
ryansobol
21
Years of Service
User Offline
Joined: 20th May 2003
Location:
Posted: 22nd May 2003 18:49
Quote: "
you must delete all objects, sounds, bitmaps, images, sprites, arrays or you will have memory leaks.
"


arrays huh... what about user defined types? are those treated as first class objects? meaning you dont have to delete varables of user-defined types like you would for integers, strings, or floats?

indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 22nd May 2003 19:55
I use typed arrays
I find its a lot easier to terminate one array thats connected to it
rather than 50 arrays to manage all the data

Login to post a reply

Server time is: 2024-09-20 09:29:43
Your offset time is: 2024-09-20 09:29:43