1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unhandled exception when attempting to open a BGL file

Discussion in 'AI Flight Planner' started by koenc86, 11/12/10.

  1. koenc86

    koenc86

    Joined:
    2/5/09
    Messages:
    17
    Country:
    netherlands
    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(Object key, EventArgs e)
    bij System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
    bij System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
    bij System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
    bij System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
    bij System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs 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(Message& m)
    bij System.Windows.Forms.Control.ControlNativeWindow.WndProc(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
    ----------------------------------------
  2. gadgets

    gadgets Resource contributor

    Joined:
    8/11/05
    Messages:
    4,442
    Country:
    ca-britishcolumbia
    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
  3. koenc86

    koenc86

    Joined:
    2/5/09
    Messages:
    17
    Country:
    netherlands
    Opening a BGL file from the Main panel works. Thanks for this temporary workaround!!
  4. gadgets

    gadgets Resource contributor

    Joined:
    8/11/05
    Messages:
    4,442
    Country:
    ca-britishcolumbia
    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 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

Share This Page