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
 ImageEnMView goes out of RAM when loading JPGs
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yogiyang

India
727 Posts

Posted - Dec 22 2014 :  09:01:29  Show Profile  Reply
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

w2m

USA
1990 Posts

Posted - Dec 22 2014 :  09:53:09  Show Profile  Reply
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
Go to Top of Page

xequte

38497 Posts

Posted - Dec 22 2014 :  22:05:36  Show Profile  Reply
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
Go to Top of Page

yogiyang

India
727 Posts

Posted - Dec 24 2014 :  23:22:12  Show Profile  Reply
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
Go to Top of Page

yogiyang

India
727 Posts

Posted - Mar 13 2015 :  06:52:41  Show Profile  Reply
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
Go to Top of Page

yogiyang

India
727 Posts

Posted - Mar 13 2015 :  08:10:27  Show Profile  Reply
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
Go to Top of Page

xequte

38497 Posts

Posted - Mar 14 2015 :  03:51:34  Show Profile  Reply
Hi Yogi

In v6.0.0?

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

yogiyang

India
727 Posts

Posted - Mar 14 2015 :  07:57:34  Show Profile  Reply
Hello Nigel,

No in 5.2.0.

I will change over to 6.0.0 next week.




Yogi Yang
Go to Top of Page

xequte

38497 Posts

Posted - Mar 14 2015 :  14:22:11  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: