OLED 128x128 Out of Memory

I just got my OLED 128x128 displays and I am not able to get it to work on the CerbuinoBee. My project has 2 lines of code and no other modules are connected or designed. Both lines of code cause the error to print out to the Output window but neither causes a break or stop.

        oledDisplay.SimpleGraphics.BackgroundColor = Gadgeteer.Color.White;
        oledDisplay.SimpleGraphics.DisplayTextInRectangle("Now running!", 2, 2, 120, 20, Gadgeteer.Color.Black, Resources.GetFont(Resources.FontResources.NinaB));

A first chance exception of type ‘System.OutOfMemoryException’ occurred in Microsoft.SPOT.Graphics.dll
OledDisplay ERROR : Painting error
Failed allocation for 5463 blocks, 65556 bytes

Is there an unlisted compatibility constraint? If so, what is the compatibility? If not, any ideas how I can make this work?

I did search the forum but I can’t seem to get it to narrow the results so I am left with thousands of results.


GHI Electronics – Where Hardware Meets Software should help

Debugger takes up memory, so keep that in mind you’ll have cases where it runs without debugger but not with.

Also check out: http://www.tinyclr.com/codeshare/entry/520