Ok, is there another way to that, in the API documentation it is said that FtrPtrNew could allocate more than 64 ko, but i dont what does the "featureNum" mean ? --- Vu Pham <[EMAIL PROTECTED]> wrote: > > ----- Original Message ----- > From: "Mgh" <[EMAIL PROTECTED]> > To: "Palm Developer Forum" > <[EMAIL PROTECTED]> > Sent: Thursday, April 08, 2004 9:47 AM > Subject: Re: Memory problem! > > > > now i am using an UInt32 but the problem is not > > resolved, what i am doing is > > > > UInt32 newBmpSize = 38400; //37.5 ko > > unsigned short* newbmpData = new unsigned > > short[newBmpSize]; > > > > You allocate 37.5K *word* This will lead to > allocate a block of larger > than 64K byte, that 's not possible under PalmOS. > > Vu > > > > > > > > --- Ben Combee <[EMAIL PROTECTED]> wrote: > > > At 04:28 PM 4/7/2004, you wrote: > > > >I try to allocate 37.5 ko in dynamic memory for > an > > > >image with the new oprator on Palm Zire71, the > > > first > > > >time it works fine but when i try to make a > copy > > > for > > > >my image the allocation doesn't work, but i can > > > alloc > > > >a more big chunk like 146 ko, i don't > undersatnd > > > why, > > > >is there some constraints? > > > > > > Are you using an Int16 to compute your > allocation > > > size? Is it possible > > > that you're producing a negative number which > gets > > > promoted to an UInt32 > > > making it much, much too large? > > > > > > > > > -- Ben Combee, senior DTS engineer, PalmSource, > Inc. > > > Read "Combee on Palm OS" at > > > http://palmos.combee.net/ > > > > > > > > > > > > -- > > > For information on using the Palm Developer > Forums, > > > or to unsubscribe, please see > > http://www.palmos.com/dev/support/forums/ > > > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! Small Business $15K Web Design Giveaway > > http://promotions.yahoo.com/design_giveaway/ > > > > -- > > For information on using the Palm Developer > Forums, or to unsubscribe, > please see http://www.palmos.com/dev/support/forums/ > > > > > > > > -- > For information on using the Palm Developer Forums, > or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
__________________________________ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
