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

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: helmut, XnTriq, xnview

Post Reply
igeka
Posts: 2
Joined: Fri Sep 07, 2007 2:57 pm

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

Post 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
igeka
Posts: 2
Joined: Fri Sep 07, 2007 2:57 pm

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

Post 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
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Post 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
Pierre.
Post Reply