Archived

This topic is now archived and is closed to further replies.

Lode

Memory cleanup

Recommended Posts

Hey, I have a 256*256*256 array in a program of mine, taking a total of 64 MB of memory. That is not really the problem, but the problem is that if I close the program, sometimes it actually doesn't close at all (sometimes it does, sometimes not). I can still see it running in the task manager. It didn't do that when the array was only 64*64*64. What can I do against that or can I at least somehow destroy the array before the program is closed so it isn't annoying anymore at least if it's still open? BTW it uses SDL. [edited by - Lode on July 28, 2002 12:43:40 PM]

Share this post


Link to post
Share on other sites
possible the freeing of the memory is taking some time. make sure you free all the ram and write logs to see how far along it gets. if things are on the swap, windows may be trying to clear up the swap.

Share this post


Link to post
Share on other sites
Is your program entering 'deadloops'? Check your program for any limitations on using 256x256x256. Hints: are you using unsigned char to loop 0 to 256? hmm... most likely not your problem.


... are you playing multi-threads?

[edited by - DerekSaw on July 29, 2002 11:48:24 PM]

Share this post


Link to post
Share on other sites