[EMAIL PROTECTED] wrote:
> Try using MemChunkNew to allocate some memory in the storage heap.

The "Reference" says: System use only function
MemoryMgr.h says: VoidPtr MemChunkNew(UInt heapID, ULong
size, UInt attr)
But where from do I get the heapID?
The "Compagnion" says: "The first heap (heap 0) on card 0 is
the dynamic heap" (And where from do I get the attr??)
So why not just go ahead and hard code cardNo=0 for
MemCardInfo()???
More puzzled than before ...
Thanks anyway for your fast answer, andreas

>It appears that earlier versions of MemPtrCardNo did not accept
>pointers in the dynamic heap.

>>   UInt32 freeBytes ;
>>   MemPtr p = NULL ;
>>   UInt16 cardNo = 0 ;
> 
>>    p = MemPtrNew(1) ;
>>    cardNo = MemPtrCardNo(p) ;
>> // MemoryMgrNew line 2021: Invalid Chunk Ptr
>>    MemPtrFree(p) ;
>>    MemCardInfo(cardNo, 0, 0, 0, 0, 0, 0, &freeBytes) ;


-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to