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
 better work by few RAM ?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

klausdoege

Germany
389 Posts

Posted - Mar 13 2012 :  08:42:09  Show Profile  Reply
Hello,
as work imageenvect optimally,
if a computer possesses few RAM (512MB).
What can i do ?

Klaus
www.klausdoege.de

fab

1310 Posts

Posted - Mar 13 2012 :  08:50:32  Show Profile  Reply
Hello,
setting TImageEnView.LegacyBitmap:=false, allows ImageEn to use TIEBitmap instead of TBitmap. For this reason when OS fails to allocate an image buffer, ImageEn allocates the same space on disk.
You could try also to set the global variable IEDefMinFileSize, specifying the maximum memory (RAM) that ImageEn will use, per for each image:
IEDefMinFileSize := 10*1024*1024; // max 10MB
Go to Top of Page

klausdoege

Germany
389 Posts

Posted - Mar 13 2012 :  15:18:33  Show Profile  Reply
Thanks, I want to try it.
ImageEnVect.IEBitmap.Location:= iefile;
would be maybe also helpful?

Klaus
www.klausdoege.de
Go to Top of Page

fab

1310 Posts

Posted - Mar 14 2012 :  00:37:43  Show Profile  Reply
Location=ieFile is automatically converted to Location=ieMemory if the required buffer is less than MinFileSize property. Similarly Location=ieMemory is automatically converted to location=ieFile if the required buffer is greater than MinFileSize.
However if Location=ieMemory and OS cannot allocate the buffer then Location is switched to ieFile.
Go to Top of Page

klausdoege

Germany
389 Posts

Posted - Mar 14 2012 :  10:15:02  Show Profile  Reply
Thanks,
this piece of information, was very helpful for me.

Klaus
www.klausdoege.de
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: