cyotek / imagelistview

Automatically exported from code.google.com/p/imagelistview
4 stars 0 forks source link

ArgumentException #115

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
A customer send us an error report that when opening the list view (some hours 
after he successfully imported a few images), thefollowing error occurs:

System.ArgumentException
-----------------
extension cannot be null
Parametername: extension
-----------------
at Manina.Windows.Forms.ImageListViewCacheShellInfo.GetCacheState(String 
extension)
at 
Manina.Windows.Forms.ImageListView.ImageListViewItemCollection.InsertInternal(In
t32 index, ImageListViewItem item)
at 
Manina.Windows.Forms.ImageListView.ImageListViewItemCollection.Add(ImageListView
Item item)
at 
Manina.Windows.Forms.ImageListView.ImageListViewItemCollection.AddRange(ImageLis
tViewItem[] items)
...

I'm currently in the process of instructing the user to send me his application 
data so I can try to create the issue here on my development machine.

Could you already tell me if you know which is the cause of the error and if I 
have a chance to avoid it?

Original issue reported on code.google.com by uwe.k...@gmail.com on 7 Jan 2011 at 6:55

GoogleCodeExporter commented 9 years ago
This is not supposed to happen. If you read the two lines of code starting from 
this:

http://code.google.com/p/imagelistview/source/browse/trunk/ImageListView/ImageLi
stViewItemCollection.cs?r=571#610

The GetCacheState method should not be called if the file extension is somehow 
null. 

However, this check was added with v9.5 of the control. Your customer seems to 
have an older version, upgrading to 9.5 should solve this problem.

Original comment by oozcitak on 7 Jan 2011 at 9:13

GoogleCodeExporter commented 9 years ago
Sorry, the check was added with v9.4. Your customer should be using 9.3 or 
earlier. If you can't upgrade to 9.4 and beyond for compatibility, tell me and 
I'll release the old version with the bug fixed.

Original comment by oozcitak on 7 Jan 2011 at 9:38

GoogleCodeExporter commented 9 years ago
Thank you, I'm just about to download the sources. Last time, I had to modify 
it for .NET 2.0 anyway, so I'll think 9.5 will work.

I'll post my results here.

Original comment by uwe.k...@gmail.com on 7 Jan 2011 at 9:42

GoogleCodeExporter commented 9 years ago
Status update: Our tests are working correctly, though I still do not have the 
original data from our customer.

So if you like, you can close the bug and I will re-open it in case it appears 
again.

Many thanks
Uwe

Original comment by uwe.k...@gmail.com on 8 Jan 2011 at 9:42

GoogleCodeExporter commented 9 years ago
Thanks for the follow-up Uwe.

Original comment by oozcitak on 8 Jan 2011 at 9:56

GoogleCodeExporter commented 9 years ago

Original comment by oozcitak on 8 Jan 2011 at 9:58