I pasted some sample code into my UI and the chart appears on the LCD but I see this after a short time in the debug output. The chart is 400 x 280 pixels. Seems to be a memory allocation issue. Any ideas about what’s going on?
Failed allocation for 6606 blocks, 105696 bytes
#### Exception System.ArgumentException - 0xfd000000 (1) #### #### Message: #### System.Drawing.Internal.Bitmap::.ctor [IP: 0000] #### #### System.Drawing.Graphics::CreateSurface [IP: 0011] #### #### System.Drawing.Graphics::.ctor [IP: 0006] #### #### System.Drawing.Graphics::.ctor [IP: 0009] #### #### System.Drawing.Bitmap::.ctor [IP: 000a] #### #### GHIElectronics.TinyCLR.UI.Controls.Chart::GetRectangleChart [IP: 000b] #### #### GHIElectronics.TinyCLR.UI.Controls.Chart::GetChart [IP: 0019] #### #### GHIElectronics.TinyCLR.UI.UIElement::RenderRecursive [IP: 0025] #### #### GHIElectronics.TinyCLR.UI.UIElement::RenderRecursive [IP: 0047] #### #### GHIElectronics.TinyCLR.UI.UIElement::RenderRecursive [IP: 0047] #### #### GHIElectronics.TinyCLR.UI.UIElement::RenderRecursive [IP: 0047] #### #### GHIElectronics.TinyCLR.UI.WindowManager::RenderRecursive [IP: 0005] #### #### GHIElectronics.TinyCLR.UI.Threading.Dispatcher::PushFrameImpl [IP: 0054] #### #### GHIElectronics.TinyCLR.UI.Threading.Dispatcher::PushFrame [IP: 0018] #### #### GHIElectronics.TinyCLR.UI.Threading.Dispatcher::Run [IP: 0006] #### #### GHIElectronics.TinyCLR.UI.Application::Run [IP: 0066] #### #### WeatherDisplay.Program::Main [IP: 038c] ####
[Default DispatcherException Handler] Exception caught: System.ArgumentException