Hi!

I make the multimedia application with the image viewer.
The image viewer use the Imaging API.

But, it fail in CreateBitmapFromImage() when I decode the large
image(ex. 1700x2700).
The total memory(128MB) remain with 30MB.

I think that it is the problem of process memory limit(32MB).
But I can not find the solution.(ex. global alloc)

Let me know the solution.

Re: Decode Problem in Large Image using Imaging API by TJ

TJ
Wed Aug 17 14:57:34 CDT 2005

With an image @ 1700x2700 stored in 32bit bitmap it would be _only_
17.5M. You would think it wouldn't have a problem since that's a little
over half... Have you tried with smaller pictures to make sure it's not
a memory issue? Are you getting any error or just a crash?

Kevin wrote:
> Hi!
>
> I make the multimedia application with the image viewer.
> The image viewer use the Imaging API.
>
> But, it fail in CreateBitmapFromImage() when I decode the large
> image(ex. 1700x2700).
> The total memory(128MB) remain with 30MB.
>
> I think that it is the problem of process memory limit(32MB).
> But I can not find the solution.(ex. global alloc)
>
> Let me know the solution.
>

Re: Decode Problem in Large Image using Imaging API by hel

hel
Wed Aug 17 15:34:49 CDT 2005

K- [16 Aug 2005 23:02:38 -0700]:
>I think that it is the problem of process memory limit(32MB).

Your -available- private address space is usually
in the 10 to 14 MB range. The rest is already in
use by the time main() gets called. It was worse
in 2002, and a little better in 2000. 2003, and
on, should be better than either of those. As for
the particular problem, I don't know about that.

--
40th Floor - Software @ http://40th.com/
iPlay : the ultimate audio player for mobiles
parametric eq, xfeed, reverb; all on a mobile

Re: Decode Problem in Large Image using Imaging API by Kevin

Kevin
Wed Aug 17 21:26:36 CDT 2005

In case of small size image, it success.