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
 FillFromDirectory error reading filename

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
Eric Posted - Dec 05 2013 : 09:12:16
Hi,
ImageEnMView1.FillFromDirectory(DirectoryListBox1.Directory, -1, false, '', False, '', False,False);
for i := 0 to ImageEnMView1.ImageCount - 1 do
begin
sFileName := ImageEnMView1.ImageFileName[i];
end;

there is the problem
if LoadonDemand = true sFileName work fine but if i load many files
when i drag the scroll bar it will crash
if LoadonDeman = false sfilename return nil

version is 5.05
4   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Dec 09 2013 : 13:47:04
Hi Eric

In most situations you should use LoadOnDemand for best performance.

I'm surprised to hear it is crashing, as I personally tested this a lot for v5 when implementing TImageEnFolderMView (which uses FillFromDirectory internally).

Can you give us more detail?



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
w2m Posted - Dec 09 2013 : 07:37:04
Do you have 4.3.1 and 5.05 on your pc at the same time?
Perhaps the compiler is including code from both versions or is trying to use the old versions code when compiling with the new version. If you have both versions installed do you have paths set to both in the ide?

I do not see this problem here.

OnAllDisplayed always returns the filenames here.

William Miller
Eric Posted - Dec 09 2013 : 00:08:05
Hi,
After OnAllDisplayed the filename still empty.
I found Imageenversion 4.3.1 works fine and quickly more then 5.05.
and in 5.05 method FillfromDirectory always hanged when I drag scroolbar up & down
w2m Posted - Dec 05 2013 : 09:31:31
I suggest you get the filenames in the OnAllDisplayed event, because the filenames may not be available until all the images are loaded.

When you call FillFromDirectory, then immediately try to get the filenames, all of the files may not have been loaded yet, so the ImageFilename is empty.


William Miller