Creating large bitmaps: "Incorrect parameter" crash on Win98
Posted on 2003-03-13
A code like this
tmpBitmap := TBitmap.Create;
tmpBitmap.Width := AnotherImage.Width;
tmpBitmap.Height := AnotherImage.Height;
crashes when the Height is assigned. If I swap lines with Height and Width, then it crashes when assigning Width. Obviously, when TBitmap tries to resize itself to this new size, there is not enough resources.
Any suggestions leading to changing the image itself (like decreasing image quality) are not acceptable.
It looks like limitation of the system, but if somebody knows how to work around it, I'll gladly award 250 points for that.