Jump to content

Weird issue with FileType plugin.


Recommended Posts

I got this code:

        protected override Document OnLoad(Stream subFile)
       {
           try
           {
               MpegParser mpegParser = new MpegParser(subFile);

               return Document.FromImage(new Bitmap(500, 500));
           }
           catch (Exception e)
           {
               MessageBox.Show(e.ToString(), "SubFileType OnLoad exception");
               return null;
           }
       }

I set 3 break points on curly braces for opening the methods's body, try, and catch.

When I comment the MpegParser line, it does what expected (a 500x500 empty picture and breaks).

When I don't comment that line, PDN says "The file could not be found" and it doesn't even break on my breakpoints.

I thought maybe MpegParser would throw an exception, so i catched all exceptions, but nothing get catched.

So I'm a bit confused.

Any idea ?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...