Page 2 of 2

PostPosted: Oct 22, 2004 @ 4:19pm
by kornalius
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.

PostPosted: Oct 26, 2004 @ 5:00pm
by kornalius
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.

PostPosted: Oct 28, 2004 @ 11:41am
by webba

PostPosted: Oct 28, 2004 @ 1:18pm
by kornalius