But I've call MemHeapFreeBytes() to get the largest chunk, it's also larger than 1M.
Can I allocate in this chunk? 2008-04-22 Vivian Chen 发件人: Chris APERS 发送时间: 2008-04-22 15:18:48 收件人: Palm Developer Forum 抄送: 主题: RE: How to allocate more than 64KB? If you have only 1.9M there are some chances that you cannot allocate 1M because you may not have a contiguous memory segment which fit in 1M. Date: Tue, 22 Apr 2008 12:46:56 +0800 From: [EMAIL PROTECTED] To: [email protected] Subject: Re: How to allocate more than 64KB? yes, about 1.9M. But I try to allocate 1M , it still failed. 2008-04-22 Vivian Chen 发件人: Luc Le Blanc 发送时间: 2008-04-22 12:42:08 收件人: Palm Developer Forum 抄送: 主题: re: How to allocate more than 64KB? Vivian Chen wrote: > I want to allocate more than 64KB, how can I do? > I try to call MemGluePtrNew(), but it return 0x00000000(failed). > My program is: > unsigned long size = 1024ul*1024ul*2; > void* p = MemGluePtrNew(size); //return failed > Why? That's 2Mb. Did you check the free heap space before? Luc Le Blanc -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/ -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/ Avec Windows Live Messenger restez en contact avec tous vos amis ! Téléchargez Messenger, c'est gratuit ! -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/ -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
