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
 Unique ImageEnMView problem
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yogiyang

India
727 Posts

Posted - May 17 2013 :  03:23:43  Show Profile  Reply
I have observed that ImageEnMView at time is not able to load photos from some drives/partitions.

After we format the drive in question it starts working.

Any idea why?

TIA

Yogi Yang


Yogi Yang

xequte

38517 Posts

Posted - May 18 2013 :  18:05:13  Show Profile  Reply
Hi Yogi

I'm afraid we'll need more information than this. What way are you filling TImageEnMView, and what is the nature of the failure? Have you stepped through the code to see where it is failing?

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

yogiyang

India
727 Posts

Posted - May 20 2013 :  07:54:10  Show Profile  Reply

No I have not stepped through code.

This error is occurring on a clients PC.

This problem is now with ImageEn but it is due to Delphi's FileListBox as I am loading imaged in ImageEnMView like this:

flbPhotos.Directory := InputPath;
Application.ProcessMessages;
for i := 0 to flbPhotos.Items.Count - 1 do
        begin
          iemPhotos.MIO.LoadFromFile(flbPhotos.Items[i]);
          iemPhotos.ImageFileName[i] := flbPhotos.Items[i];
        end;  //for i := 0 to flbPhotos.Items.Count - 1 do


Thanks for lending a helping hand. I have pinpointed the problem and am trying to solve it.


Yogi Yang
Go to Top of Page

fab

1310 Posts

Posted - May 20 2013 :  08:01:39  Show Profile  Reply
MIO.LoadFromFile and ImageFileName[] should not be used together. They are alternative ways to load images.
MIO.LoadFromFile loads one o multiple pages immediately.
ImageFileName[] loads images when necessary (i.e. when displayed).
Go to Top of Page

yogiyang

India
727 Posts

Posted - May 20 2013 :  08:07:11  Show Profile  Reply
Thanks for the info.

I will correct my code immediately.

Regards,

Yogi Yang


Yogi Yang
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: