Unhandled Exception entering File Details page for missing file
4 posters
Author
Message
doveman Junior Member
Posts : 22 Join date : 2010-01-26
Subject: Unhandled Exception entering File Details page for missing file Wed Jan 27, 2010 3:42 pm
I renamed a file, such that MC no longer has the correct filename stored for it. If I have that movie selected in the Main Browser list and go to File Details, I get the Unhandled Exception error shown below. I can click on Continue and carry on using MC.
How can I delete a movie from the list, so that I can re-scan and find the re-named file? --- See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. at Media_Companion.Form1.filedetails() at Media_Companion.Form1.TabControl2_SelectedIndexChanged(Object sender, EventArgs e) at System.Windows.Forms.TabControl.OnSelectedIndexChanged(EventArgs e) at System.Windows.Forms.TabControl.WmSelChange() at System.Windows.Forms.TabControl.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** JIT Debugging ************** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled.
When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box.
billyad2000 Admin
Posts : 1326 Join date : 2008-09-20
Subject: Re: Unhandled Exception entering File Details page for missing file Wed Jan 27, 2010 11:15 pm
Yes - I need to handle this exception,
The function actually uses mediainfo to return the filedetails, this is not possible if the file cannot be located.
doveman Junior Member
Posts : 22 Join date : 2010-01-26
Subject: Re: Unhandled Exception entering File Details page for missing file Wed Jan 27, 2010 11:51 pm
Glad to hear you're on top of it.
Is there any way to remove a movie from the list at the moment?
Subject: Re: Unhandled Exception entering File Details page for missing file Thu Jan 28, 2010 12:05 am
doveman wrote:
Glad to hear you're on top of it.
Is there any way to remove a movie from the list at the moment?
I have done this in the past as well. I move and copyt files all over my network. The only sure way I get things back in line is to do a movie or tv rebuild. It's just easier for me.
doveman Junior Member
Posts : 22 Join date : 2010-01-26
Subject: Re: Unhandled Exception entering File Details page for missing file Thu Jan 28, 2010 12:59 am
OK, I think I'm getting the hang of it, slowly!
So doing a rebuild will remove missing movies and add re-located data files?
StormyKnight VIP
Posts : 556 Join date : 2008-10-08 Location : Australia
Subject: Re: Unhandled Exception entering File Details page for missing file Thu Jan 28, 2010 1:09 am
Rebuild movies, clears the records of the movies that MC holds & reenters them from the movie nfo's in the movie folders listed in the preferences.
So if you have an offending movie, deleting its nfo & then rebuilding the movies will remove it from MC. Searching for new movies will locate it again & create a new nfo.
Cheers
doveman Junior Member
Posts : 22 Join date : 2010-01-26
Subject: Re: Unhandled Exception entering File Details page for missing file Thu Jan 28, 2010 1:25 am
Cheers for the explanation. I think I've got the hang of it now.