A memory problem is not necessarily a physical ram problem... Windows Bitmaps have a limit of about 2-3.8 GB with 32-Bit OS, but the latter requires a define to implement.
The 32-bit define is put in the dpr file:
program Project1;
uses
Windows,
Forms,
Unit1 in 'Unit1.pas' {Form1};
{$R *.res}
{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}
{ Provide up to a maximum of 4 GB memory in 32-Bit application }
begin
Application.Initialize;
Application.MainFormOnTaskbar := True;
Application.Title := 'Threaded Image Rendering With ImageEn';
Application.CreateForm(TForm1, Form1);
Application.Run;
end.
If this is causing the problem you can either use smaller bitmaps, implement the define, or probably the best thing is to compile as 64-bit. To compile as 64-bit you need one of the more modern versions of Delphi and you need to put the ielib64.dll in the folder containing the exe.
So my question is, what are the dimensions of the image?
William Miller
Adirondack Software & Graphics
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html