MobiFlight Community Support

Welcome to the forum for MobiFlight! Feel free to reach out to the community in case you have questions, issues or just want to share great ideas or details about your latest home cockpit project.

You like MobiFlight? Donate via PayPal and support the MobiFlight development. Thanks! 

05/03/2024 - This forum is read-only

The community support for MobiFlight has moved exclusively over to our Discord server. Register for free and enjoy more interactive functions like image and video upload, voice chat. More than 7,000 registered users around the world make it a great experience!

See you on our MobiFlight Community Discord server.

A HUGE Thank You to everyone who participated in the forum, especially obviously to Pizman and Stephan who did an outstanding job over so many years providing an incredible service to the MobiFlight community.

The forum is still providing a lot of good content, hence we keep this information accessible.

icon
Avatar
pguzzo
From: Cordoba, Argentina
Posts: 3
Hi everyone! I have a problem that jumps when I open a .mcc file, I am creating a king air cabin, when I open the .mcc it tells me: Uncontrolled exception in the application, if you click on continue the application will omit this error it will try to continue .. .
This error happened to someone? I have everything updated in the Windows 10 operating system. Below I leave what the error poster tells me. Thank you!


See the end of this message for more details on how to invoke debugging.
Just-In-Time (JIT) instead of this dialog box.

************** Exception text **************
System.NullReferenceException: Object reference not set as an instance of an object.
   in MobiFlight.OrphanedSerialsDialog.updateOrphanedList ()
   in MobiFlight.OrphanedSerialsDialog..ctor (List`1 serials, DataTable dataTable, DataTable inputDataTable)
   in MobiFlight.MainForm._checkForOrphanedSerials (Boolean showNotNecessaryMessage)
   in MobiFlight.MainForm._loadConfig (String fileName)
   in MobiFlight.MainForm.loadToolStripMenuItem_Click (Object sender, EventArgs e)
   in System.Windows.Forms.ToolStripItem.RaiseEvent (Object key, EventArgs e)
   in System.Windows.Forms.ToolStripMenuItem.OnClick (EventArgs e)
   in System.Windows.Forms.ToolStripItem.HandleClick (EventArgs e)
   in System.Windows.Forms.ToolStripItem.HandleMouseUp (MouseEventArgs e)
   in System.Windows.Forms.ToolStripItem.FireEventInteractive (EventArgs e, ToolStripItemEventType met)
   in System.Windows.Forms.ToolStripItem.FireEvent (EventArgs e, ToolStripItemEventType met)
   in System.Windows.Forms.ToolStrip.OnMouseUp (MouseEventArgs mea)
   in System.Windows.Forms.ToolStripDropDown.OnMouseUp (MouseEventArgs mea)
   in System.Windows.Forms.Control.WmMouseUp (Message & m, MouseButtons button, Int32 clicks)
   in System.Windows.Forms.Control.WndProc (Message & m)
   in System.Windows.Forms.ScrollableControl.WndProc (Message & m)
   in System.Windows.Forms.ToolStrip.WndProc (Message & m)
   in System.Windows.Forms.ToolStripDropDown.WndProc (Message & m)
   in System.Windows.Forms.Control.ControlNativeWindow.OnMessage (Message & m)
   in System.Windows.Forms.Control.ControlNativeWindow.WndProc (Message & m)
   in System.Windows.Forms.NativeWindow.Callback (IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Assemblies loaded **************
mscorlib
    Assembly version: 4.0.0.0
    Win32 version: 4.8.4150.0 built by: NET48REL1LAST_C
    Base code: file: /// C: /Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
MFConnector
    Assembly version: 7.8.2.0
    Win32 version: 7.8.2
    Base code: file: /// C: /Users/pablo/Documents/Pablo/Proyecto%20Simulador/Proyecto%20simulador%20de%20vuelo/Beechcraft%20King%20Air%20350%20simulator/MobiFlight%20software/MF%207.8.2 /MF%20782%201/MF%20782%202/MF%20782%203/MF%20782%204/MobiFlightConnector-7.8.2/MFConnector.exe
----------------------------------------
System.Windows.Forms
    Assembly version: 4.0.0.0
    Win32 version: 4.8.4150.0 built by: NET48REL1LAST_C
    Base code: file: /// C: /WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly version: 4.0.0.0
    Win32 version: 4.8.4001.0 built by: NET48REL1LAST_C
    Base code: file: /// C: /WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly version: 4.0.0.0
    Win32 version: 4.8.3752.0 built by: NET48REL1
    Base code: file: /// C: /WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Data
    Assembly version: 4.0.0.0
    Win32 version: 4.8.4121.0 built by: NET48REL1LAST_C
    Base code: file: /// C: /WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Core
    Assembly version: 4.0.0.0
    Win32 version: 4.8.4121.0 built by: NET48REL1LAST_C
    Base code: file: /// C: /WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
    Assembly version: 4.0.0.0
    Win32 version: 4.8.3752.0 built by: NET48REL1
    Base code: file: /// C: /WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
    Assembly version: 4.0.0.0
    Win32 version: 4.8.3752.0 built by: NET48REL1
    Base code: file: /// C: /WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Windows.Forms.resources
    Assembly version: 4.0.0.0
    Win32 version: 4.8.3752.0 built by: NET48REL1
    Base code: file: /// C: /WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_en_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
System.Numerics
    Assembly version: 4.0.0.0
    Win32 version: 4.8.3752.0 built by: NET48REL1
    Base code: file: /// C: /WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
FSUIPCClient
    Assembly version: 3.1.11.313
    Win32 version: 3.1.11.313
    Base code: file: /// C: /Users/pablo/Documents/Pablo/Proyecto%20Simulador/Proyecto%20simulador%20de%20vuelo/Beechcraft%20King%20Air%20350%20simulator/MobiFlight%20software/MF%207.8.2 /MF%20782%201/MF%20782%202/MF%20782%203/MF%20782%204/MobiFlightConnector-7.8.2/FSUIPCClient.DLL
----------------------------------------
ArcazeHid
    Assembly version: 1.0.0.0
    Win32 version: 1.0.0.0
    Base code: file: /// C: /Users/pablo/Documents/Pablo/Proyecto%20Simulador/Proyecto%20simulador%20de%20vuelo/Beechcraft%20King%20Air%20350%20simulator/MobiFlight%20software/MF%207.8.2 /MF%20782%201/MF%20782%202/MF%20782%203/MF%20782%204/MobiFlightConnector-7.8.2/ArcazeHid.DLL
----------------------------------------
Microsoft.GeneratedCode
    Assembly version: 1.0.0.0
    Win32 version: 4.8.3752.0 built by: NET48REL1
    Base code: file: /// C: /WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
AutoUpdater.NET
    Assembly version: 1.3.1.0
    Win32 version: 1.3.1.0
    Base code: file: /// C: /Users/pablo/Documents/Pablo/Proyecto%20Simulador/Proyecto%20simulador%20de%20vuelo/Beechcraft%20King%20Air%20350%20simulator/MobiFlight%20software/MF%207.8.2 /MF%20782%201/MF%20782%202/MF%20782%203/MF%20782%204/MobiFlightConnector-7.8.2/AutoUpdater.NET.DLL
----------------------------------------
Accessibility
    Assembly version: 4.0.0.0
    Win32 version: 4.8.3752.0 built by: NET48REL1
    Base code: file: /// C: /WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
mscorlib.resources
    Assembly version: 4.0.0.0
    Win32 version: 4.8.3752.0 built by: NET48REL1
    Base code: file: /// C: /WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_en_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
CommandMessenger
    Assembly version: 1.0.0.0
    Win32 version: 1.0.0.0
    Base code: file: /// C: /Users/pablo/Documents/Pablo/Proyecto%20Simulador/Proyecto%20simulador%20de%20vuelo/Beechcraft%20King%20Air%20350%20simulator/MobiFlight%20software/MF%207.8.2 /MF%20782%201/MF%20782%202/MF%20782%203/MF%20782%204/MobiFlightConnector-7.8.2/CommandMessenger.DLL
----------------------------------------
Microsoft.GeneratedCode
    Assembly version: 1.0.0.0
    Win32 version: 4.8.3752.0 built by: NET48REL1
    Base code: file: /// C: /WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------

************** JIT Debug **************
To enable Just In Time (JIT) debugging, the configuration file for this
application or machine (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 exceptions
will be sent to the JIT debugger registered on the computer
instead of controlling it through the dialog box.
2020-03-17 02:54
Avatar
StephanHo
Moderator
From: EDDG, Germany
Posts: 1867
Supporter
Hi pguzzo,

welcome to MobiFlight!

The message you show is well known ;)
It indicates an error in the .mcc file.
The configurations for your devices are saved in the .mcc file.
Apparently you made a mistake there or the file is damaged.
Usually you create a config for a device, check it and activate it with it.
It is also possible to create configs that you don't need at the moment but don't want to forget. Then you don't tick this.
It is crucial, however, that MobiFlight checks all configs for errors when loading the .mcc file, regardless of whether they are activated or not.

If you rename the mcc file now, start MobiFlight without this file and no error will occur.

If you now load this .mcc file manually, the error should appear again. This is because MobiFlight does not load corrupt .mcc files.

What can you do?
1. Start MobiFlight without .mcc file and re-enter all configs, save the file, exit MobiFlight and restart. If you have not made a mistake, MobiFlight will start with this file and you have saved your configs without errors.

2. Repair the .mcc file
Start MF and save the .mcc file under a new name without entering anything. The .mcc file is then structurally almost empty.
Then you use an editor (preferably Notepad ++).
You will see that the file has a structure. The structure consists of several sections. It starts with
<MobiFlightConnector> and the section ends with </MobiFlightConnector>
In between there are again several sections. The most important are

<outputs>
</outputs>
and
<inputs>
</inputs>

The individual configs are located within the inputs and outputs.
A config begins with <config GUID ....>
and ends with </config>

You can now do the following:
You load the faulty file into the editor and copy the area from
<output>
to
</output>
into the new file and save it.
You now load this new file into MF. If there is no error, your configs for the outputs are error-free and the error must be in the inputs. If the error occurs with the outputs, repeat this now with the inputs (delete outputs from the file for now.
If an error also occurs with the inputs, then you have an error with both the outputs and the inputs.
Now it is getting expensive.
Now you get config for config into the empty new file, save it, load it and see when the respective error occurs. This config is then incorrect. Remove it from this file and re-enter it until it loads correctly.
If you get stuck, just sign up here. We help you.
Grüße,
Stephan (Time: UTC+2)
2020-03-17 09:47
Avatar
pguzzo
From: Cordoba, Argentina
Posts: 3
Hi Stephan!
Thank you for taking time to see my case, in the course of the day I apply your suggestions, any questions I ask again by this means.
Regards!
:thumbup:
2020-03-17 12:27
Avatar
pguzzo
From: Cordoba, Argentina
Posts: 3
Solved Stephan! It was a problem in an "input" line, now it opens normal and works very well. Thanks for the advice!
Regards!
:thumbup:
2020-03-18 00:54
Avatar
StephanHo
Moderator
From: EDDG, Germany
Posts: 1867
Supporter
Always my pleasure, you are welcome,
Grüße,
Stephan (Time: UTC+2)
2020-03-18 12:10
icon