title: Creating thumbnail previews in VB.NET
body: <p>I'm trying to create thumbnail previews within my program. These would work for any file type, not only images. So videos too. Right now I'm using IExtractImage to do this. It works perfect, but it seems to randomly crash my program when I call .Extract(). There's no error message, my program just crashes. When I run it in the debugger it doesn't break when it crashes. I have it in a try/catch block and that doesn't seem to help. It's not reproducible and doesn't crash on the same file every time. How can I get it working or just prevent it from crashing my whole program?</p>
  
  <p>I'm using the code from this project:</p>
  
  <p><a href="http://www.vbaccelerator.com/home/net/code/libraries/shell_projects/Thumbnail_Extraction/article.asp" rel="nofollow">http://www.vbaccelerator.com/home/net/code/libraries/shell_projects/Thumbnail_Extraction/article.asp</a></p>