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];



--- 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/

Reply via email to