fihnakis
7 months ago bugs
Not closing any opened program
Came back to msfs after a long break and loaded up addon linker and after shutting msfs down I noticed it's throwing an exception and not closing any programs it starts. I have it starting Air Manager, Spad.next, Neofly, kneeboard server, randfailurs, pilot2atc, littlenavmap, sky4sim, and a couple more.
Here's the text from the error. Not sure if it matters but I use the startsimandquit command line arguement. This is all on a clean windows / msfs install.
Unhandled exception.
Exception from HRESULT: 0xC000020D
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.Runtime.InteropServices.COMException (0xC000020D): Exception from HRESULT: 0xC000020D
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at Microsoft.FlightSimulator.SimConnect.SimConnect.ReceiveDispatch(SignalProcDelegate pfcnSignal)
at Microsoft.FlightSimulator.SimConnect.SimConnect.ReceiveMessage()
at FSEconomy.Main.DefWndProc(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.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)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9181.0 built by: NET481REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
FSEconomy
Assembly Version: 1.3.0.15
Win32 Version: 1.3.0.15
CodeBase: file:///C:/Users/Fihnakis/AppData/Local/Apps/2.0/PLEM1P3X.LO1/3XR6W66N.77H/fsec..tion_219be5b309124a3f_0001.0003_f920816d268db011/FSEconomy.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9181.0 built by: NET481REL1LAST_C
CodeBase: 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.9206.0 built by: NET481REL1LAST_B
CodeBase: 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.9032.0 built by: NET481REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9032.0 built by: NET481REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9200.0 built by: NET481REL1LAST_C
CodeBase: 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.9032.0 built by: NET481REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9032.0 built by: NET481REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
Microsoft.FlightSimulator.SimConnect
Assembly Version: 10.0.61242.0
Win32 Version: 10.0.61355.0 (fsx-sp1.20070510-2038)
CodeBase: file:///C:/Windows/assembly/GAC_32/Microsoft.FlightSimulator.SimConnect/10.0.61242.0__31bf3856ad364e35/Microsoft.FlightSimulator.SimConnect.dll
----------------------------------------
msvcm80
Assembly Version: 8.0.50727.9680
Win32 Version: 8.00.50727.9680
CodeBase: file:///C:/Windows/WinSxS/x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.9680_none_d090cb7c44278b28/msvcm80.dll
----------------------------------------
System.Web
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9206.0 built by: NET481REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.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:
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.
I need to check to be 100% sure but, yes, i'm fairly sure that the /startsimandquit parameter is not compatible with the 'shut down the external programs when MSFS exits'. To close the programs, AL needs to monitor if the sim is still running, when it notices that the sim is not running anymore, it will execute some commands to try to close the programs it has launched. If you use the startssimandquit argument, AL will be closed so it can't monitor anything and it can't close the programs it has launched. If AL is not running those things just can't be done.
As for the simconnect error, it seems that it's triggered by the FSEConomy.exe and not by AL (AL is probably not even running anymore because you use the 'quit' option). Check maybe if there are some updates for your FSEconomy client because it seems that when the sim closes and fseconomy is still running and connected it triggers that simconnect error.
7 months ago
bad2000
7 months ago
fihnakis
7 months ago
fihnakis
Can you try to check the 'force kill process' for some of the programs your are trying to close ? Does it make any difference ?
Unfortunately there is not log available in the current public version for that feature, i would need to create a special debug version writing in a text file showing what is done when trying to shut down the programs so we might have a better idea of what is happening (or not happening).
And for info, there is another argument 'startsim' that does like 'startsimandquit' without shutting down AL after the sim is launched.
7 months ago
bad2000
7 months ago
fihnakis