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
 ImageEnMView goes out of RAM when loading JPGs

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
yogiyang Posted - Dec 22 2014 : 09:01:29
ImageEnMView goes our of RAM when trying to load around 15000 jpg files.

Again this happens progressively.

Let me try and explain:
When we load thumbnails using FillFromDirectory. It loads or starts loading thumbnails. But as we scroll down one row at a time the memory consumption starts increasing and by the time we reach around 80% it becomes greater then 3 GB and then it shows Out of Memory error.

How can we solve this problem?

Are there any settings that we have to do for force ImageEn to manage memory as necessary?

TIA

Yogi Yang




Yogi Yang
8   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Mar 14 2015 : 14:22:11
Hi Yogi

We've made a number of memory improvements to TImageEnMView in v6, so please try that release and let me know if there are any issues.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
yogiyang Posted - Mar 14 2015 : 07:57:34
Hello Nigel,

No in 5.2.0.

I will change over to 6.0.0 next week.




Yogi Yang
xequte Posted - Mar 14 2015 : 03:51:34
Hi Yogi

In v6.0.0?

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
yogiyang Posted - Mar 13 2015 : 08:10:27
I observed that if we scroll through the thumbnails using the scroll bar of the control we did not get any out of memory error but if we scroll using Scroll Wheel of mouse we face out of memory error.




Yogi Yang
yogiyang Posted - Mar 13 2015 : 06:52:41
This error still persists in ImageEn version 5.2.0 also!

Any solutions please? Has this been addressed in version 6?

TIA

Yogi Yang


Yogi Yang
yogiyang Posted - Dec 24 2014 : 23:22:12
Bill,
quote:
Do you think someone is actually going to try to view 15,000 thumbnails? I do not believe so. They might try to view 1,500 but certainly not 15,000.

Yes this is the case when Photographers are using your software for producing Album Pages!

Our software is a complex beast that will allow a user to create Album Pages automatically after analyzing user selected images. This software has many, many features this is just one of the feature.

We have provided 25,000 background images, 110,000 clip-art images, 7,000 masks, etc.

TIA

Yogi Yang


Yogi Yang
xequte Posted - Dec 22 2014 : 22:05:36
Hi

Also, we have discovered a memory issue with TImageEnMView when there are a large number of thumbnails. Email for a fix.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
w2m Posted - Dec 22 2014 : 09:53:09
Yogi,

Is the StoreType property ietThumbnails or ieTNormal?

In my following response I am not trying to be a wise guy, rather a realistic one... but I do have some suggestions that follows...

Do you think someone is actually going to try to view 15,000 thumbnails? I do not believe so. They might try to view 1,500 but certainly not 15,000.

In any event, try compiling as 64 bit to increase the amount of memory available to windows. If you can not compile as 64 bit then you might be asking for something that is not possible. You indicated that memory problems occur when the memory consumption reaches 3GB which is about the memory limit for 32-bit.

How much ram is available after you load 15,000 images?
Just out of curiosity how log does it take to load 15,000 images?

Nigel may have some other ideas, but some that come to mind are:
PrepareSpaceFor (if all images have the same dimensions).
ImageCacheUseDisk - When enabled (default), a disk file is used to cache the images and view. Otherwise only system memory is used.
ImageCacheSize - Specifies the number of images to be stored in memory, rather than in a memory mapped file.

"Are there any settings that we have to do for force ImageEn to manage memory as necessary?" Other than some properties I do not see anything about memory in the IE.inc file.

Hopefully some of these things may work...

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