What is the unpublished API ?
_____ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dmitry Grinberg Sent: Wednesday, June 20, 2007 11:11 PM To: Palm Developer Forum Subject: Re: Is there a max heap allocation size? biggest chunk you can allocate using supported API is 65536 bytes. If you use unpublished api you can allocate up to 16777208 bytes. On 6/20/07, Ravi.Patel <[EMAIL PROTECTED]> wrote: I'm using a stl vector. Trying to add data to the vector (push_back). The vector I believe is trying to alloc 65k (65536) bytes, and I'm getting a bad_alloc exeption when the vector tries to allocate that memory. I checked my free heap space (using MemHeapFreeBytes) and its reporting that I have 8mbs free (running on treo 700). FYI, I really don't need to store 65k in memory, I'm just running some tests to see what the device is capable of (in this case I'm trying to downloading a 100k xml document and storing the text in memory). Given that I have enough free heap space, am I running into a limit on the biggest heap-chunk size? Or is the bad-alloc simply the result of another issue I have in my program? Thanks, Ravi -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/ -- Best Regards, Dmitry Grinberg Software Engineer, http://PalmPowerups.com (847) 226 9295 AIM: DmitryGrinberg MSN: [EMAIL PROTECTED] ICQ: 165589894 Y! IM: dmitrygr2003 -- 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/
