Out of Memory error even when bitmap is released?
Heya,
I was using this function and got an out of memory error on this line after running it for awhile:
tmpBitmap := bitmapFromClient(x1,y1,x2,y2);
I thought I released it? But did I miss something?
Thanks in advance :)
Simba Code:
Function GetBitmapText(x1,y1,x2,y2):String;
var tmpBitmap:Integer;
var tmpMufasa:TMufasaBitmap;
var tmpString:String;
begin
tmpBitmap := bitmapFromClient(x1,y1,x2,y2);
tmpMufasa := GetMufasaBitmap(tmpBitmap);
tmpMufasa := Resize(tmpMufasa);
ThresholdAdaptiveBitmap(tmpBitmap, 0, 255, false, TM_Mean, 18);
tmpString := Tess_GetText(tmpMufasa);
Freebitmap(tmpBitmap);
Result := tmpString;
end;