Memory Leaks

Got questions? Got answers? Go here for both.

Moderator: MaxCoderz Staff

Post Reply
user_797
New Member
Posts: 1
Joined: Mon 17 Dec, 2007 12:00 pm

Memory Leaks

Post by user_797 »

Hi forum,

I wonder how people here prefer to handle memory leaks.

Thanks
User avatar
benryves
Maxcoderz Staff
Posts: 3087
Joined: Thu 16 Dec, 2004 10:06 pm
Location: Croydon, England
Contact:

Post by benryves »

By using a managed runtime environment equipped with a garbage collector. :)

Probably not very helpful, but you have asked a rather vague question...
User avatar
Super Speler
Regular Member
Posts: 113
Joined: Fri 09 Feb, 2007 2:20 am
Location: Alpha Centuri

Post by Super Speler »

Do you mean in Basic? If so I'd recommend reading this: http://tibasicdev.wikidot.com/goto

Is it just me, or is every Basic question I answer just a link to that site...
User avatar
kalan_vod
Calc King
Posts: 2932
Joined: Sat 18 Dec, 2004 6:46 am
Contact:

Post by kalan_vod »

Super Speler wrote:Do you mean in Basic? If so I'd recommend reading this: http://tibasicdev.wikidot.com/goto

Is it just me, or is every Basic question I answer just a link to that site...
For a reason ;)
User avatar
JoostinOnline
Regular Member
Posts: 133
Joined: Wed 11 Jul, 2007 10:42 pm
Location: Behind You

Post by JoostinOnline »

lol, total pwnage by kalan vod! Anyway, he is right, that is a vague question.
"Macs are the Perfect Computers", said the Perfect Idiot.
Image
Testing for:
Vera
User avatar
driesguldolf
Extreme Poster
Posts: 395
Joined: Thu 17 May, 2007 4:49 pm
Location: $4080
Contact:

Post by driesguldolf »

On a ti83plus I prefer saving all my stuff and then do a RAM reset.

Btw, welcome to the forum!
User avatar
tr1p1ea
Maxcoderz Staff
Posts: 4141
Joined: Thu 16 Dec, 2004 10:06 pm
Location: I cant seem to get out of this cryogenic chamber!
Contact:

Post by tr1p1ea »

Hey Complete, welcome to the forums.

Im afraid its hard to gauge what you are referring to specifically. Im assuming you mean handling memory leaks in BASIC by avoiding lbl's/goto's or loops without End's etc. Usually people will just structure their code in such a way as to eliminate the possibility of memory leaks.

Do you have any code you are working on that you are looking for leaks in or something?
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."
Image
Image
User avatar
driesguldolf
Extreme Poster
Posts: 395
Joined: Thu 17 May, 2007 4:49 pm
Location: $4080
Contact:

Post by driesguldolf »

Ah, ok:
To prevent memory leaks: [points at tr1p1ea's post]
To get rid of a memory leak (when it's to late): A RAM reset is the only thing you can do IIRC
King Harold
Calc King
Posts: 1513
Joined: Sat 05 Aug, 2006 7:22 am

Post by King Harold »

According to some sites, Return seems to solve the problem (but without leaving the program, you'll have to come up with some clever trick to use Return..)
User avatar
kalan_vod
Calc King
Posts: 2932
Joined: Sat 18 Dec, 2004 6:46 am
Contact:

Post by kalan_vod »

King Harold wrote:According to some sites, Return seems to solve the problem (but without leaving the program, you'll have to come up with some clever trick to use Return..)
True, and if you used it in a program you can place a end on a variable to whether it is used or not.
User avatar
JoostinOnline
Regular Member
Posts: 133
Joined: Wed 11 Jul, 2007 10:42 pm
Location: Behind You

Post by JoostinOnline »

How about we just wait to see what he is talking about, instead of making assumptions ;)
"Macs are the Perfect Computers", said the Perfect Idiot.
Image
Testing for:
Vera
Post Reply