Search:

Type: Posts; User: BLauritson

Search: Search took 0.00 seconds.

  1. I must admit I didn't realise that - for some...

    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...
  2. OK, I'll have to do that then when I have some...

    OK, I'll have to do that then when I have some more time. Thanks for all your help :)

    BLauritson
  3. SPELLS *AvailableSpells =...

    SPELLS *AvailableSpells = Memory(SPELLS).Allocate(0); // Simply set up the pointers
    SPELLS *BestSpells = Memory(SPELLS).Allocate(0);

    for(i = 0; i < NumSpellsKnown; i++)
    {
    ...
  4. Hi anon, Thanks for the quick reply. I must...

    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...
  5. Problem with custom dynamic memory allocation routines

    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...
Results 1 to 5 of 5