Page 1 of 1

Turbo C++ problem with big raster memory allocation, clone

Posted: Mon Sep 10, 2007 7:58 am
by igeka
I wrote the application to view monochromatic and color raster with using the XnView GFLSDK library. When I compiled my project under Borland C++ 4.0 in Win2000 everything was ok. I could read as big raster as I found. After compiling the project under Turbo C++ in WinXP the function gflLoadBitmap returns the error: "error to allock memory". It is only for big color raster for example 14000x7000x24 pixels. In the same session I tried to read 9000x7000x24 raster and it was working. The same situation is when I try to clone big raster. The function is not working and the bitmap is not allocating the memory after operation like that:

GFL_BITMAP **dest;
GFL_BITMAP **sour;
*dest = gflCloneBitmap( *sour );

Is any limits under that compilator? If it is true, what limits I should expect and how to read and clone big bitmaps for example 20000x20000x24?

Thanks

IGEKA

Re: Turbo C++ problem with big raster memory allocation, clo

Posted: Tue Jan 15, 2008 9:59 am
by igeka
igeka wrote:I wrote the application to view monochromatic and color raster with using the XnView GFLSDK library. Under Borland C++ Builder complier the function gflLoadBitmap returns the error: "error to allock memory". It is only for big color raster for example 14000x7000x24 pixels. In the same session I tried to read 9000x7000x24 raster and it was working. The same situation is when I try to clone big raster. The function is not working and the bitmap is not allocating the memory after operation like that:

GFL_BITMAP **dest;
GFL_BITMAP **sour;
*dest = gflCloneBitmap( *sour );

Is any limits under that compilator? If it is true, what limits I should expect and how to read and clone big bitmaps for example 20000x20000x24?

Thanks

IGEKA

Re: Turbo C++ problem with big raster memory allocation, clo

Posted: Mon Jan 21, 2008 2:05 pm
by xnview
igeka wrote: Is any limits under that compilator? If it is true, what limits I should expect and how to read and clone big bitmaps for example 20000x20000x24?
The only limit that i know is the memory and <2Gb