I am using a canvas that is 759w x 15000h to draw some data, but when try to save that bitmap to a file, some times all is ok, but other i get the memory error -12. Always I´m discarding the id bitmap objet. What is happening, I not find any solution to this, any suggestion please will be welcome to help me in this application. (any leak of memory, my application in a while slow)
some of code:
error=GetCtrlBitmap (idPanelGrafHijo, GRAFICAS_CANVAS, 0, &idImage);
if(error==0)
{
SaveBitmapToJPEGFile (idImage, NombreArchivoGraficoLocal, 0, 80);
DiscardBitmap (idImage);
}
else
{
MessagePopup ("", "Error de memoria, no se guardo el archivo");
}