PDA

View Full Version : Unhandled exception when attempting to open a BGL file


koenc86
11 Dec 2010, 05:00
Hi there,

First of all, thanks for the good work on AIFP2, I think it is a great tool!

After the .07 update, I haven't been able to open BGL files anymore. I keep getting an unhandled exception about the filter/string of filenames. (I'm not really sure since it shows me the message in Dutch.). Below I pasted the debug info. Most of it was in Dutch, so I tried to translate the first few lines.
I hope this gives you enough info to track down the problem.

Fyi: I'm running Windows 7 x64.

Thanks in advance for taking a look at this issue!

---

System.ArgumentException: The submitted filterteken(?)sequence/string is invalid. De filtertekenreeks(?) has to contain a description of the filter, followed by a verticale beam (|) and the filter pattern. For example: Textfiles (*.txt)|*.txt|Alle files (*.*)|*.*
bij System.Windows.Forms.FileDialog.set_Filter(String value)
bij AIFP2.Utilities.GetFileToOpen(String& sInitialDirectory, Boolean bUpdate, String sTemplate, String sType, String& sTitle)
bij AIFP2.FPEditor.mnuFile_Open_Traffic_Click(Object sender, EventArgs e)
bij System.Windows.Forms.ToolStripItem.RaiseEvent(Obje ct key, EventArgs e)
bij System.Windows.Forms.ToolStripMenuItem.OnClick(Eve ntArgs e)
bij System.Windows.Forms.ToolStripItem.HandleClick(Eve ntArgs e)
bij System.Windows.Forms.ToolStripItem.HandleMouseUp(M ouseEventArgs e)
bij System.Windows.Forms.ToolStrip.OnMouseUp(MouseEven tArgs mea)
bij System.Windows.Forms.ToolStripDropDown.OnMouseUp(M ouseEventArgs mea)
bij System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
bij System.Windows.Forms.Control.WndProc(Message& m)
bij System.Windows.Forms.ToolStrip.WndProc(Message& m)
bij System.Windows.Forms.ToolStripDropDown.WndProc(Mes sage& m)
bij System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
bij System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Geladen assembly's **************
mscorlib
Assembly-versie: 2.0.0.0
Win32-versie: 2.0.50727.4952 (win7RTMGDR.050727-4900)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
AIFP2
Assembly-versie: 2.0.0.0
Win32-versie: 2.0.0.0
CodeBase: file:///E:/Software/FSX/AI%20Flight%20Planner/AIFP2.exe
----------------------------------------
Microsoft.VisualBasic
Assembly-versie: 8.0.0.0
Win32-versie: 8.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly-versie: 2.0.0.0
Win32-versie: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assembly-versie: 2.0.0.0
Win32-versie: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly-versie: 2.0.0.0
Win32-versie: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
Assembly-versie: 2.0.0.0
Win32-versie: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Core
Assembly-versie: 3.5.0.0
Win32-versie: 3.5.30729.4926 built by: NetFXw7
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
Accessibility
Assembly-versie: 2.0.0.0
Win32-versie: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Configuration
Assembly-versie: 2.0.0.0
Win32-versie: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly-versie: 2.0.0.0
Win32-versie: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
mscorlib.resources
Assembly-versie: 2.0.0.0
Win32-versie: 2.0.50727.4952 (win7RTMGDR.050727-4900)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
System.Windows.Forms.resources
Assembly-versie: 2.0.0.0
Win32-versie: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_nl_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------

gadgets
11 Dec 2010, 09:25
I'm away from my development system for a few days. I'll take care of this ASAP.

If you are trying to open the ,bgl from the Main Panel, try from the FP editor - or vice versa.

Don

koenc86
15 Dec 2010, 03:57
I'm away from my development system for a few days. I'll take care of this ASAP.

If you are trying to open the ,bgl from the Main Panel, try from the FP editor - or vice versa.

Don

Opening a BGL file from the Main panel works. Thanks for this temporary workaround!!

gadgets
15 Dec 2010, 11:08
koenc86, I'm now back at my development system. I am unable to duplicate the error. I can see from the error message the path through the code, and it is normal.

To be sure you have the latest release (I don't know how you could have anything else), please download 2.1.07 from here (http://members.shaw.ca/aifp/images/no_cache/aifp_latest.zip) and install normally.

If it still doesn't work, please send me your aifp.ini file; maybe that will help me isolate the problem.

Don