ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 ReplaceFileTIFF - Out of memory or Range check err
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

graph_man

326 Posts

Posted - May 17 2017 :  08:52:37  Show Profile  Reply
Color multipage tiff file
500+ pages

If compression = LZW - result is "Out of memory"
If compression = uncompressed - result is "Range check error"

How to fix it.

ps
Tested under Win7 and Win10
Builder 2010
Latest ImageEn

graph_man

326 Posts

Posted - May 17 2017 :  09:06:04  Show Profile  Reply
File size - 1.2 and 4.2 GB
Go to Top of Page

w2m

USA
1990 Posts

Posted - May 17 2017 :  09:13:28  Show Profile  Reply
I suspect this is a memory problem. 500 pages is quite a lot. What components are you using to load and display the images?

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

graph_man

326 Posts

Posted - May 17 2017 :  12:41:38  Show Profile  Reply
ImageEnView - working with one page only
Go to Top of Page

w2m

USA
1990 Posts

Posted - May 17 2017 :  12:48:34  Show Profile  Reply
ImageEnView can only load a tiff file with one page so are you specifying the index of the multipage tiff file to open?
// Load the second image in the MyImage.tif file
ImageEnView1.IO.Params.TIFF_ImageIndex := 1;
ImageEnView1.IO.LoadFromFileTIFF('D:\MyImage.tif');

Your discussion so far is not providing sufficient information. Try making a demo to show what you are doing and provide a sample image you are testing so we can be more helpful.

I did some testing here by adding images to a multiframe tiff file to try to see what happens when too many images and too much memory is required. I added the images to ImageEnMView and also added them to ImageEnView on a pagecontrol which inflates memory requirements. After adding 135 images when compiled with Win32.. no problem. After adding 235 images I got out of memory errors. I recompiled as Win64 and added 235 images with no problem.

My point of all this is ImageEn does not provide unlimited ability to open or save huge images. By compiling for Win64 the number of images that could be opened or saved increased. I have no idea

Nigel, Can you provide some guidance as to how to estimate the number of frames of a specified dimension (ie. 1024x768) that can be added to ImageEnMView for a given target platform- Win32 andWin64 for a pc with a given amount of memory available (ie. 8 gb- 16 gb.)?

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

graph_man

326 Posts

Posted - May 17 2017 :  16:21:19  Show Profile  Reply
I use the same command

ImageEnView1.IO.Params.TIFF_ImageIndex := index;
ImageEnView1.IO.LoadFromFileTIFF('D:\MyImage.tif');

after editing this page I use

ImageEnView1.IO.ReplaceFileTIFF(...)


ps
> I recompiled as Win64

What program and version do you use?
Go to Top of Page

graph_man

326 Posts

Posted - May 17 2017 :  16:56:00  Show Profile  Reply
ReplaceFileTIFF = DeleteTIFFIm + InsertToFileTIFF

Error appears after "DeleteTIFFIm" !!!
Go to Top of Page

graph_man

326 Posts

Posted - May 19 2017 :  13:37:01  Show Profile  Reply
I have sent my test files to Nigel.
Go to Top of Page

xequte

38180 Posts

Posted - May 21 2017 :  03:07:15  Show Profile  Reply
Hi

These are *massive* files. We are just investigating whether it is practical to sort them.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

graph_man

326 Posts

Posted - May 21 2017 :  13:49:48  Show Profile  Reply
Such files get more and more common.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: