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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Out of Memory error

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
aclement Posted - May 12 2015 : 07:23:10
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
7   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - May 30 2015 : 22:01:47
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
aclement Posted - May 30 2015 : 03:03:15
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
xequte Posted - May 24 2015 : 20:08:52
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
aclement Posted - May 22 2015 : 04:14:25
Any update on this please
aclement Posted - May 16 2015 : 03:03:15
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
xequte Posted - May 13 2015 : 00:38:23
Hi

Also, what version are you using?

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
w2m Posted - May 12 2015 : 11:59:27
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