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
 Out of Memory error
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

aclement

India
9 Posts

Posted - May 12 2015 :  07:23:10  Show Profile  Reply
Hi,
When opening a Tiff file our application is throwing an Out of Memory error. I have applied Mad Except to our executable and the call stack was pointing to the below ImageEn component lines.

Can you please advise is there any special check to be made to fix this issue. This issue is not happening all the time, it happens after the application uptime of 5 hours. Please advise

00609699 +015 MT32.exe hyieutils 22853 +1 TIEFileBuffer.Map
005f7f05 +049 MT32.exe hyieutils 9629 +10 TIEVirtualImageList.MapImage
005f8282 +1da MT32.exe hyieutils 9783 +77 TIEVirtualImageList.AllocImage
005f7ff2 +036 MT32.exe hyieutils 9667 +3 TIEVirtualImageList.AddBlankImage
005f830f +067 MT32.exe hyieutils 9818 +3 TIEVirtualImageList.AddIEBitmap
005594fa +382 MT32.exe iemview 3731 +62 TImageEnMView.SetIEBitmapEx
00586c05 +279 MT32.exe iemio 1187 +62 TImageEnMIO.LoadFromStreamTIFF
00586957 +047 MT32.exe iemio 1097 +5 TImageEnMIO.LoadFromFileTIFF
0058727b +0ff MT32.exe iemio 1586 +18 TImageEnMIO.LoadFromFile

w2m

USA
1990 Posts

Posted - May 12 2015 :  11:59:27  Show Profile  Reply
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
Go to Top of Page

xequte

38514 Posts

Posted - May 13 2015 :  00:38:23  Show Profile  Reply
Hi

Also, what version are you using?

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

aclement

India
9 Posts

Posted - May 16 2015 :  03:03:15  Show Profile  Reply
Hi,
Our application is using TImageEnMview component to first load the TIFF file which may contain 10 or more pages which are of black and white,then use TImageEn view to show one page at a time, when user clicks on next page we show the page accordingly. This is where the Out of memory occurs to the users when they scan gthrough next pages using next button. I have attached the code on we are reading the scan document and showing and the code for showing next page.
Please advise

attach/aclement/2015516331_Code.txt
2.83 KB
Go to Top of Page

aclement

India
9 Posts

Posted - May 22 2015 :  04:14:25  Show Profile  Reply
Any update on this please
Go to Top of Page

xequte

38514 Posts

Posted - May 24 2015 :  20:08:52  Show Profile  Reply
Hi

This does not seem to be an ImageEn issue.

I did not see anything obviously wrong with your code, though why do you call:

Image1.Bitmap.FreeImage;

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

aclement

India
9 Posts

Posted - May 30 2015 :  03:03:15  Show Profile  Reply
Hi,

Just to make sure the previous image is cleared and not hold up memory and that's the reason it was added.

Is there a conference number that I can call you to discuss with you and show the issue in Team Viewer? Please advise
Go to Top of Page

xequte

38514 Posts

Posted - May 30 2015 :  22:01:47  Show Profile  Reply
Hi

I'm afraid we do not offer phone support. Also, try to confirm that this is actually an ImageEn error, e.g. replace the database calls to load from the same image from a file into a stream. Narrow down the problem to find where the memory is actually being leaked/corrupted.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: