Memory ID of Memory Address
Posted: Sat Nov 15, 2003 4:44 pm
Is their a function to get the memoryID of the address --
Lets say I wan't to store the memory address of the memory ID .. no problem ... But later in my program I would like to use that address to find out the Memory ID it belongs to. Anyone have a solutions or is it already available and I'm just missing it ?
I could recurse a list of memory ID's and check if I get a match, but that seems time consuming or I could build a structure to represent both the MemoryAddress and the ID it belongs to ... ohh thats not such a bad idea, then I could pass the address of the structure to my procedures and create a dummy pointer to the structure .... that might work.
Any other ideas ?
Lets say I wan't to store the memory address of the memory ID .. no problem ... But later in my program I would like to use that address to find out the Memory ID it belongs to. Anyone have a solutions or is it already available and I'm just missing it ?
I could recurse a list of memory ID's and check if I get a match, but that seems time consuming or I could build a structure to represent both the MemoryAddress and the ID it belongs to ... ohh thats not such a bad idea, then I could pass the address of the structure to my procedures and create a dummy pointer to the structure .... that might work.
Code: Select all
Structure PBMemory
MemID.l
MemAddress.l
EndStructure