Click here to Skip to main content
15,896,201 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I've made an app which loads files into listviews, and those files have a large thumbnail which is achieved by this code:

http://www.datafilehost.com/get.php?file=3510e755
(so long code so uploaded a text file...)

It works like a charm except... Except when an "*.mp3" file doesn't have a album cover so it has no thumbnail... Then app crashes on the line which contains "throw ex" and says "NotImplementedException"...

I got no way to solve it so I'll be really thankful for help...

Maybe a code which retrieves whether the file has a thumbnail or just a simple icon...

Thanks in advance...
Posted
Comments
[no name] 23-Aug-14 13:05pm    
How is this posting any different than http://www.codeproject.com/Questions/810857/Problem-with-getting-file-tumbnails?arn=7?
http://www.datafilehost.com/get.php?file=3510e755 is a URL for something it is not the code that you wrote and is causing a problem.
Member 11027254 23-Aug-14 14:53pm    
I think it's mistakenly double posted, really sorry for that...

And no, that's not written by me, I'm not that expert but I can fix that if I know how can I understand whether an icon has thumbnail or no...

Oh God it must've been much much much easier :/

NotImplementedException is typically used by a programmer to indicate that a feature or workflow has been stubbed in, but not actually implemented, or occasionally to indicate a condition or state that is unexpected/shouldn't happen.

In your case is sounds like the application does not expect to encounter a file without a thumbnail, and so the exception is thrown.

The only solutions are:
1. Don't feed it files like that.
2. Get the source code and have it skip these files.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 23-Aug-14 23:49pm    
All correct, a 5.
—SA
Member 11027254 24-Aug-14 0:56am    
You're right but this program must show all kind of files with or without thumbnails, and, I can't get the code skip those files, I'm confused...
Sergey Alexandrovich Kryukov 24-Aug-14 1:55am    
Perhaps you need to write it, not "get"... :-)
—SA
Member 11027254 24-Aug-14 3:45am    
So what this website is for??!!
At least help me which methods should I use :/
And from get, I mean getting sth to work :P
Yvan Rodrigues 24-Aug-14 11:07am    
We're programmers. If you post code, we can help.
With such withholders here, my problem is not solved yet,
THANKS ALOT!!!!!!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900