Ha! Can you tell I've been programming in Java for the past seven
years? Thanks.
Peter
On Oct 12, 2007, at 5:46 PM, Jeff Loucks wrote:
> Is your memSize defined as a 32 bit number? If so, the '%d' in your
> format will only see the high order half of it, which would be zero.
> Change the '%d' to '%ld'.
>
> On 10/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>> Can someone please tell me what I'm doing wrong here. This is my
>> code snippet:
>>
>> memHandle = MemHandleNew(1);
>> if (memHandle == 0)
>> {
>> debug("Unable to allocate 1 byte.");
>> }
>> memSize = MemHandleSize(memHandle);
>> StrPrintF(message, "Mem Size: %d", memSize);
>> debug(message);
>>
>> The output is "Mem Size: 0" every single time. I have plenty of
>> memory left in RAM, so I'm totally clueless. The stupid thing is
>> that memHandle is not 0; so while MemHandleNew is telling me that
>> it did what I asked, MemHandleSize tells me it didn't allocate
>> anything.
>>
>> Do I have to do something special to enable dynamic memory
>> allocation or something?
>> --
>> For information on using the ACCESS Developer Forums, or to
>> unsubscribe, please see http://www.access-company.com/developers/
>> forums/
>>
>
>
> --
> [Jeff Loucks]
>
> --
> For information on using the ACCESS Developer Forums, or to
> unsubscribe, please see http://www.access-company.com/developers/
> forums/
------------------------------------------------------------------------
--------------------
"To learn the sword, study the guitar. To learn the fist, study
commerce. To only study the sword will make you narrow-minded and
will keep you from growing outward." --Miyamoto Musashi
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/