a253560600 / tdmaker

Automatically exported from code.google.com/p/tdmaker
0 stars 0 forks source link

Unhandled exception with external templates #45

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Select "External Template" in the publish tab
2.
3.

What is the expected output? What do you see instead?
Expected output: Template
Received output: Error message. When proceeding, the output field shows the 
last template created (either Internal or MediaInfo).

What version of the product are you using? On what operating system?
TDMaker 3.1.0 on Windows 7 64bit

Please provide any additional information below.
Internal Template and MediaInfo work.
When selecting "External Template" as default, the Publish field will always 
stay blank, even when switching to other templates. No extra error messages, 
though.

Error Message copy:
Informationen über das Aufrufen von JIT-Debuggen
anstelle dieses Dialogfelds finden Sie am Ende dieser Meldung.

************** Ausnahmetext **************
System.NullReferenceException: Der Objektverweis wurde nicht auf eine 
Objektinstanz festgelegt.
   bei TDMakerLib.TemplateReader2.GetScreenshotInfo(String pattern, MediaFile mf) in d:\Dev\TDMaker\trunk\TDMakerLib\Templates\TemplateReader2.cs:Zeile 121.
   bei TDMakerLib.TemplateReader2.CreateFileInfo(MediaInfo2 mi) in d:\Dev\TDMaker\trunk\TDMakerLib\Templates\TemplateReader2.cs:Zeile 222.
   bei TDMakerLib.TemplateReader2.CreateInfo() in d:\Dev\TDMaker\trunk\TDMakerLib\Templates\TemplateReader2.cs:Zeile 102.
   bei TDMakerLib.TorrentInfo.CreatePublish(PublishOptionsPacket options, TemplateReader2 tr) in d:\Dev\TDMaker\trunk\TDMakerLib\Torrents\TorrentInfo.cs:Zeile 302.
   bei TDMakerLib.Adapter.CreatePublish(TorrentInfo ti, PublishOptionsPacket pop) in d:\Dev\TDMaker\trunk\TDMakerLib\Global\Adapter.cs:Zeile 375.
   bei TDMaker.MainWindow.CreatePublishUser() in d:\Dev\TDMaker\trunk\TDMakerGUI\GUI\MainWindow.cs:Zeile 1107.
   bei TDMaker.MainWindow.cboPublishType_SelectedIndexChanged(Object sender, EventArgs e) in d:\Dev\TDMaker\trunk\TDMakerGUI\GUI\MainWindow.cs:Zeile 1795.
   bei System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
   bei System.Windows.Forms.ComboBox.WndProc(Message& m)
   bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Geladene Assemblys **************
mscorlib
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.4984 (win7RTMGDR.050727-4900).
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll.
----------------------------------------
TDMaker
    Assembly-Version: 3.1.0.415.
    Win32-Version: 3.1.0.
    CodeBase: file:///C:/Program%20Files/TDMaker/TDMaker.exe.
----------------------------------------
TDMakerLib
    Assembly-Version: 2.0.0.415.
    Win32-Version: 2.1.0.0.
    CodeBase: file:///C:/Program%20Files/TDMaker/TDMakerLib.DLL.
----------------------------------------
System.Windows.Forms
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.4986 (win7RTMGDR.050727-4900).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll.
----------------------------------------
System
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.4985 (win7RTMGDR.050727-4900).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll.
----------------------------------------
System.Drawing
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.4985 (win7RTMGDR.050727-4900).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll.
----------------------------------------
UploadersLib
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.0.0.0.
    CodeBase: file:///C:/Program%20Files/TDMaker/UploadersLib.DLL.
----------------------------------------
System.Xml
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.4927 (NetFXspW7.050727-4900).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll.
----------------------------------------
System.Configuration
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.4927 (NetFXspW7.050727-4900).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll.
----------------------------------------
TDMakerLib.XmlSerializers
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.0.0.
    CodeBase: file:///C:/Program%20Files/TDMaker/TDMakerLib.XmlSerializers.DLL.
----------------------------------------
pxlm6hys
    Assembly-Version: 2.0.0.415.
    Win32-Version: 2.0.50727.4985 (win7RTMGDR.050727-4900).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll.
----------------------------------------
HelpersLib
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.0.0.0.
    CodeBase: file:///C:/Program%20Files/TDMaker/HelpersLib.DLL.
----------------------------------------
Newtonsoft.Json
    Assembly-Version: 4.5.0.0.
    Win32-Version: 4.5.11.15520.
    CodeBase: file:///C:/Program%20Files/TDMaker/Newtonsoft.Json.DLL.
----------------------------------------
System.Design
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.4986 (win7RTMGDR.050727-4900).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Design/2.0.0.0__b03f5f7f11d50a3a/System.Design.dll.
----------------------------------------
5ptbas1j
    Assembly-Version: 2.0.0.415.
    Win32-Version: 2.0.50727.4985 (win7RTMGDR.050727-4900).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll.
----------------------------------------
lrbskx3c
    Assembly-Version: 2.0.0.415.
    Win32-Version: 2.0.50727.4985 (win7RTMGDR.050727-4900).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll.
----------------------------------------
System.Core
    Assembly-Version: 3.5.0.0.
    Win32-Version: 3.5.30729.4926 built by: NetFXw7.
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll.
----------------------------------------
System.ComponentModel.DataAnnotations
    Assembly-Version: 3.5.0.0.
    Win32-Version: 3.5.30729.4926.
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.ComponentModel.DataAnnotations/3.5.0.0__31bf3856ad364e35/System.ComponentModel.DataAnnotations.dll.
----------------------------------------
System.Runtime.Serialization
    Assembly-Version: 3.0.0.0.
    Win32-Version: 3.0.4506.5007 (Win7RTMGDR.030729-5000).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Serialization/3.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll.
----------------------------------------
System.Xml.Linq
    Assembly-Version: 3.5.0.0.
    Win32-Version: 3.5.30729.4926 built by: NetFXw7.
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml.Linq/3.5.0.0__b77a5c561934e089/System.Xml.Linq.dll.
----------------------------------------
System.Data
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.4927 (NetFXspW7.050727-4900).
    CodeBase: file:///C:/Windows/assembly/GAC_64/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll.
----------------------------------------
Starksoft.Net.Ftp
    Assembly-Version: 1.0.158.0.
    Win32-Version: 1.0.158.0.
    CodeBase: file:///C:/Program%20Files/TDMaker/Starksoft.Net.Ftp.DLL.
----------------------------------------
System.Windows.Forms.resources
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.4927 (NetFXspW7.050727-4900).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_de_b77a5c561934e089/System.Windows.Forms.resources.dll.
----------------------------------------
System.resources
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.4927 (NetFXspW7.050727-4900).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.resources/2.0.0.0_de_b77a5c561934e089/System.resources.dll.
----------------------------------------
mscorlib.resources
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.4984 (win7RTMGDR.050727-4900).
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll.
----------------------------------------
Accessibility
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.4927 (NetFXspW7.050727-4900).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll.
----------------------------------------

************** JIT-Debuggen **************
Um das JIT-Debuggen (Just-In-Time) zu aktivieren, muss in der
Konfigurationsdatei der Anwendung oder des Computers
(machine.config) der jitDebugging-Wert im Abschnitt system.windows.forms 
festgelegt werden.
Die Anwendung muss mit aktiviertem Debuggen kompiliert werden.

Zum Beispiel:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

Wenn das JIT-Debuggen aktiviert ist, werden alle nicht behandelten
Ausnahmen an den JIT-Debugger gesendet, der auf dem
Computer registriert ist, und nicht in diesem Dialogfeld behandelt.

Original issue reported on code.google.com by corocor...@gmail.com on 25 Apr 2013 at 8:04

GoogleCodeExporter commented 9 years ago
I have the same error.  

Here is my posted error message copy:

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 TDMakerLib.TemplateReader2.GetScreenshotInfo(String pattern, MediaFile mf) in d:\Dev\TDMaker\trunk\TDMakerLib\Templates\TemplateReader2.cs:line 121
   at TDMakerLib.TemplateReader2.CreateFileInfo(MediaInfo2 mi) in d:\Dev\TDMaker\trunk\TDMakerLib\Templates\TemplateReader2.cs:line 222
   at TDMakerLib.TemplateReader2.CreateInfo() in d:\Dev\TDMaker\trunk\TDMakerLib\Templates\TemplateReader2.cs:line 102
   at TDMakerLib.TorrentInfo.CreatePublish(PublishOptionsPacket options, TemplateReader2 tr) in d:\Dev\TDMaker\trunk\TDMakerLib\Torrents\TorrentInfo.cs:line 302
   at TDMakerLib.Adapter.CreatePublish(TorrentInfo ti, PublishOptionsPacket pop) in d:\Dev\TDMaker\trunk\TDMakerLib\Global\Adapter.cs:line 375
   at TDMaker.MainWindow.CreatePublishUser() in d:\Dev\TDMaker\trunk\TDMakerGUI\GUI\MainWindow.cs:line 1107
   at TDMaker.MainWindow.cboPublishType_SelectedIndexChanged(Object sender, EventArgs e) in d:\Dev\TDMaker\trunk\TDMakerGUI\GUI\MainWindow.cs:line 1795
   at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
   at System.Windows.Forms.ComboBox.WndProc(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)

************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5477 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
TDMaker
    Assembly Version: 3.1.0.415
    Win32 Version: 3.1.0
    CodeBase: file:///C:/Program%20Files/TDMaker/TDMaker.exe
----------------------------------------
TDMakerLib
    Assembly Version: 2.0.0.415
    Win32 Version: 2.1.0.0
    CodeBase: file:///C:/Program%20Files/TDMaker/TDMakerLib.DLL
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5468 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
UploadersLib
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/TDMaker/UploadersLib.DLL
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5476 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5476 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
TDMakerLib.XmlSerializers
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.0.0
    CodeBase: file:///C:/Program%20Files/TDMaker/TDMakerLib.XmlSerializers.DLL
----------------------------------------
lizns63y
    Assembly Version: 2.0.0.415
    Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
HelpersLib
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/TDMaker/HelpersLib.DLL
----------------------------------------
Newtonsoft.Json
    Assembly Version: 4.5.0.0
    Win32 Version: 4.5.11.15520
    CodeBase: file:///C:/Program%20Files/TDMaker/Newtonsoft.Json.DLL
----------------------------------------
System.Design
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5468 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Design/2.0.0.0__b03f5f7f11d50a3a/System.Design.dll
----------------------------------------
7y44f4jj
    Assembly Version: 2.0.0.415
    Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
xjqxzuak
    Assembly Version: 2.0.0.415
    Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
    Assembly Version: 3.5.0.0
    Win32 Version: 3.5.30729.5420 built by: Win7SP1
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.ComponentModel.DataAnnotations
    Assembly Version: 3.5.0.0
    Win32 Version: 3.5.30729.5420
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.ComponentModel.DataAnnotations/3.5.0.0__31bf3856ad364e35/System.ComponentModel.DataAnnotations.dll
----------------------------------------
System.Runtime.Serialization
    Assembly Version: 3.0.0.0
    Win32 Version: 3.0.4506.5452 (Win7SP1GDR.030729-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Serialization/3.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll
----------------------------------------
System.Xml.Linq
    Assembly Version: 3.5.0.0
    Win32 Version: 3.5.30729.5420 built by: Win7SP1
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml.Linq/3.5.0.0__b77a5c561934e089/System.Xml.Linq.dll
----------------------------------------
System.Data
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_64/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
Starksoft.Net.Ftp
    Assembly Version: 1.0.158.0
    Win32 Version: 1.0.158.0
    CodeBase: file:///C:/Program%20Files/TDMaker/Starksoft.Net.Ftp.DLL
----------------------------------------

************** 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.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

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.

Original comment by danny.mi...@gmail.com on 28 Apr 2014 at 4:55