I must admit I didn't realise that - for some reason I was under the impression that if a program leaked memory, that memory then remained unavailable to the operating system (even after the program...
Type: Posts; User: BLauritson
I must admit I didn't realise that - for some reason I was under the impression that if a program leaked memory, that memory then remained unavailable to the operating system (even after the program...
OK, I'll have to do that then when I have some more time. Thanks for all your help :)
BLauritson
SPELLS *AvailableSpells = Memory(SPELLS).Allocate(0); // Simply set up the pointers
SPELLS *BestSpells = Memory(SPELLS).Allocate(0);
for(i = 0; i < NumSpellsKnown; i++)
{
...
Hi anon,
Thanks for the quick reply. I must admit I wasn't aware of the issues surrounding things like memcpy and realloc on the unknown type T. I also have a re-written version of the same code...
Hi there,
I've written a very basic dynamic memory allocation class which ensures that any dynamically allocated memory is automatically deallocated when the program ends, essentially providing a...