Thanks for the reply ozymandias,
I also ran into the catching and retrying suggestion but it didn't work in my case.
I've gotten around the problem by creating the thumbnail myself, using a Graphics's object and its DrawImage method.
For future reference of anyone who might come across here, looking for a solution, I've replaced line 40: Image thumb = Thumbnail.GetThumbnailImag
with the following:
Main Topics
Browse All Topics





by: ozymandiasPosted on 2008-06-21 at 04:29:28ID: 21837230
This can occur if you try to get a thumnauil from an image with an indexed pixel fornat.
I think it's probably a bug.
I have heard that you can often get round it my catching the out of memory exception and tryiung the operation again inside the catch block but \I am not convinced. Might be worth a try though.