It would be much easier to assist you if you show your code. Having said that, you should look at the Aborting property.
try
ImageEnMView1.MIO.LoadFromStreamTIFF(iMemoryStream);
finally
if ImageEnMView1.MIO.Aborting = True then
{ The image failed to load }
exit;
end;
end;
I guess the real question is why is the out of memory error occurring? Without knowing how many frames are in the tif file and the size of the bitmaps and if you are using 32-bit or 64-bit it is difficult to answer this question. Perhaps you can provide more details.
Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development