2019-05-15 07:09 AM
Hi,
I'm getting this error message and have no clue how to resolve the problem?
(I'm getting it while trying to instantiate from the code a custom container).
Thanks in advance for your help!
Solved! Go to Solution.
2019-05-16 04:03 AM
Hi @GMeur,
The assert tells you that the Canvas Renderer has no buffer in which to work. If you check out the simulator/main.cpp files in our application templates you'll see that you can do something like the following which configures the size of a buffer, once, for the entire duration of the application - You could override this in a concrete view if you wanted.
#include <touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp>
#define CANVAS_BUFFER_SIZE (3600)
static uint8_t canvasBuffer[CANVAS_BUFFER_SIZE];
CanvasWidgetRenderer::setupBuffer(canvasBuffer, CANVAS_BUFFER_SIZE);
Best regards,
Martin
2019-05-16 04:03 AM
Hi @GMeur,
The assert tells you that the Canvas Renderer has no buffer in which to work. If you check out the simulator/main.cpp files in our application templates you'll see that you can do something like the following which configures the size of a buffer, once, for the entire duration of the application - You could override this in a concrete view if you wanted.
#include <touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp>
#define CANVAS_BUFFER_SIZE (3600)
static uint8_t canvasBuffer[CANVAS_BUFFER_SIZE];
CanvasWidgetRenderer::setupBuffer(canvasBuffer, CANVAS_BUFFER_SIZE);
Best regards,
Martin
2019-06-06 01:49 PM
This was very helpful.