You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having a project where I (intentionally) am adding multiple non-existing paths
to the list view, I get a (caught) exception in
public static ImageMetadata ImageListViewCacheMetadata.FromFile(string path,
bool useWIC)
Since exceptions have a rather bad performance, I suggest to add one single
check:
...
FileInfo info = new FileInfo(path);
if( !info.Exists ) { return imageInfo; } // <-- Add this line.
...
This would improve my program performance significantly.
Original issue reported on code.google.com by [email protected] on 12 Nov 2010 at 12:57
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 12 Nov 2010 at 12:57The text was updated successfully, but these errors were encountered: