Memory problems with bitmap on 7" LCD

Hi guys

I have a problem.

When i try to create a bitmap for background:

Bitmap LCD = new Bitmap(SystemMetrics.ScreenWidth, SystemMetrics.ScreenHeight);

I get system out of memory exception.

I can run the graphics demo without problem so i expect that i need to tell how mutch memory the program can access?

The project is minimal functionality so i don’t have any other code that takes up space.

Thanks in advance.

/Peter

Yes large bitmaps have thier own heap. Please search the book for custom heap.

Hi Gus

Thanks for the quick reply i will look in to that.

/Peter

I have this same issue. What book are you referring to Gus?

That is a real old post. See this please GHI Electronics – Where Hardware Meets Software

Thanks Gus!