Just wandering if anyone can forsee a huge problem with doing the following, or any future bugs that would crop up..
Create a linked list of memory addresses something like
Code: Select all
NewList MemoryAddresses.l()Code: Select all
AddElement(MemoryAddresses())
MemoryAddresses() = @MemoryAddresses() Code: Select all
AllocateMemory(MemoryAddresses() , XX-WhateverSize-XX, 0) The reasone I would like to do this is to have a self incrementer for the memory commands without having to increment a value myself ... the address of the new element in the list will do it. Obviously when the element is destroyed I will deallocate the memory.


