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

Help with SetSurface


Postby kornalius » Oct 22, 2004 @ 4:19pm

Yeah, might be a memory leak or something like this. Are you freeing the surfaces each time?

Send me the code, I will take a look.
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 » Oct 26, 2004 @ 5:00pm

Hi,

I just took a look at your program, real nice! I like it a lot.

The deleteobject was not freeing the surfaces and rasterizers properly. So yes there was a major memory leak (4 megs every run). :cry:

I just realized deleteobject wouldn't work like I thought. So I had to create a bunch of freexxxxxxx routines.

FreeSurface(Handle, [...]);
FreeRasterizer(Handle, [...]);

Just replace the deleteobject functions you have with these two functions, make sure you don't mix up rasterizers and surfaces though.
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 webba » Oct 28, 2004 @ 11:41am

webba
pm Member
 
Posts: 70
Joined: Jul 12, 2004 @ 9:55am


Postby kornalius » Oct 28, 2004 @ 1:18pm

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


Previous

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