This site is no longer active and is available for archival purposes only. Registration and login is disabled.

More on "Memory Leaks"


More on "Memory Leaks"

Postby mervjoyce » Aug 26, 2004 @ 12:38pm

Merv Joyce
mervjoyce
pm Member
 
Posts: 113
Joined: Jun 1, 2004 @ 2:05pm
Location: Brisbane, AUSTRALIA


Postby kornalius » Aug 26, 2004 @ 2:34pm

The reason you get this leak is because in the second loop you don't assign the returned value from GetCSV() to any variable. This value is then added to the garbage collection and only freed at the end of the program, therefore still there during the loop.

I will try to find a way to tighten the garbage collector in cases like that.
Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby kornalius » Aug 26, 2004 @ 4:03pm

Ok, the garbage collector is way more precise now. It doesn't wait for the end of the procedure or the end of the program to clean it's collection. Every internal command does it's garbage cleanup now. I get no memory leak anymore this way.

Thanks for taking the time to do these testings, it helps me a whole lot. I have some much to do for PPL.
Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby mervjoyce » Aug 26, 2004 @ 9:57pm

Merv Joyce
mervjoyce
pm Member
 
Posts: 113
Joined: Jun 1, 2004 @ 2:05pm
Location: Brisbane, AUSTRALIA


Postby kornalius » Aug 27, 2004 @ 12:02am

Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby kornalius » Aug 27, 2004 @ 4:53pm

Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Return to Pocket Programming Language (PPL)


Sort


Forum Description

Discuss this new development tool.

Moderator:

kornalius

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum