Jump to content

You're browsing the 2004-2023 VATSIM Forums archive. All content is preserved in a read-only fashion.
For the latest forum posts, please visit https://forum.vatsim.net.

Need to find something? Use the Google search below.

.Net Unhandled Exception vPilot


Martin Connor 1270685
 Share

Recommended Posts

Martin Connor 1270685
Posted
Posted

Whilst testing a ModelMatching rule file I've created for Trafficx, I did some naughty things. I moved my aircraft to different airports so I could find traffic of different types to check that all was well with my rules.

 

Sadly, after several moves, I got a consistant failure, see error message below.

-------------------------------------------------------------------------------------

 

 

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 (0xC000014B): Exception from HRESULT: 0xC000014B

at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)

at Microsoft.FlightSimulator.SimConnect.SimConnect.RequestDataOnSimObjectType(Enum RequestID, Enum DefineID, UInt32 dwRadiusMeters, SIMCONNECT_SIMOBJECT_TYPE type)

at b5.u()

at bh.f(Object A_0, EventArgs A_1)

at System.Windows.Forms.Timer.OnTick(EventArgs e)

at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)

at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

 

 

************** Loaded [Mod - Happy Thoughts]emblies **************

mscorlib

[Mod - Happy Thoughts]embly Version: 2.0.0.0

Win32 Version: 2.0.50727.4247 (VistaSP2GDR.050727-4200)

CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

----------------------------------------

vPilot

[Mod - Happy Thoughts]embly Version: 1.0.5237.41195

Win32 Version: 1.0.0.0

CodeBase: file:///C:/Users/Martin/AppData/Local/vPilot/vPilot.exe

----------------------------------------

Ninject

[Mod - Happy Thoughts]embly Version: 3.0.0.0

Win32 Version: 3.0.1.10

CodeBase: file:///C:/Users/Martin/AppData/Local/vPilot/Ninject.DLL

----------------------------------------

System.Windows.Forms

[Mod - Happy Thoughts]embly Version: 2.0.0.0

Win32 Version: 2.0.50727.4236 (VistaSP2GDR.050727-4200)

CodeBase: file:///C:/Windows/[Mod - Happy Thoughts]embly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

----------------------------------------

System

[Mod - Happy Thoughts]embly Version: 2.0.0.0

Win32 Version: 2.0.50727.4235 (VistaSP2GDR.050727-4200)

CodeBase: file:///C:/Windows/[Mod - Happy Thoughts]embly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

----------------------------------------

System.Drawing

[Mod - Happy Thoughts]embly Version: 2.0.0.0

Win32 Version: 2.0.50727.4235 (VistaSP2GDR.050727-4200)

CodeBase: file:///C:/Windows/[Mod - Happy Thoughts]embly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

----------------------------------------

System.Core

[Mod - Happy Thoughts]embly Version: 3.5.0.0

Win32 Version: 3.5.30729.1 built by: SP

CodeBase: file:///C:/Windows/[Mod - Happy Thoughts]embly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll

----------------------------------------

Anonymously Hosted DynamicMethods [Mod - Happy Thoughts]embly

[Mod - Happy Thoughts]embly Version: 0.0.0.0

Win32 Version: 2.0.50727.4247 (VistaSP2GDR.050727-4200)

CodeBase: file:///C:/Windows/[Mod - Happy Thoughts]embly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll

----------------------------------------

System.Xml

[Mod - Happy Thoughts]embly Version: 2.0.0.0

Win32 Version: 2.0.50727.4246 (VistaSP2GDR.050727-4200)

CodeBase: file:///C:/Windows/[Mod - Happy Thoughts]embly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll

----------------------------------------

System.Configuration

[Mod - Happy Thoughts]embly Version: 2.0.0.0

Win32 Version: 2.0.50727.4246 (VistaSP2GDR.050727-4200)

CodeBase: file:///C:/Windows/[Mod - Happy Thoughts]embly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

----------------------------------------

bjyhd9v_

[Mod - Happy Thoughts]embly Version: 1.0.5237.41195

Win32 Version: 2.0.50727.4235 (VistaSP2GDR.050727-4200)

CodeBase: file:///C:/Windows/[Mod - Happy Thoughts]embly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

----------------------------------------

Accessibility

[Mod - Happy Thoughts]embly Version: 2.0.0.0

Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)

CodeBase: file:///C:/Windows/[Mod - Happy Thoughts]embly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll

----------------------------------------

System.Management

[Mod - Happy Thoughts]embly Version: 2.0.0.0

Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)

CodeBase: file:///C:/Windows/[Mod - Happy Thoughts]embly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll

----------------------------------------

Microsoft.DirectX.AudioVideoPlayback

[Mod - Happy Thoughts]embly Version: 1.0.2902.0

Win32 Version: 5.04.00.2904

CodeBase: file:///C:/Windows/[Mod - Happy Thoughts]embly/GAC/Microsoft.DirectX.AudioVideoPlayback/1.0.2902.0__31bf3856ad364e35/Microsoft.DirectX.AudioVideoPlayback.dll

----------------------------------------

Microsoft.DirectX

[Mod - Happy Thoughts]embly Version: 1.0.2902.0

Win32 Version: 5.04.00.2904

CodeBase: file:///C:/Windows/[Mod - Happy Thoughts]embly/GAC/Microsoft.DirectX/1.0.2902.0__31bf3856ad364e35/Microsoft.DirectX.dll

----------------------------------------

0-fw7bvg

[Mod - Happy Thoughts]embly Version: 1.0.5237.41195

Win32 Version: 2.0.50727.4235 (VistaSP2GDR.050727-4200)

CodeBase: file:///C:/Windows/[Mod - Happy Thoughts]embly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

----------------------------------------

Microsoft.FlightSimulator.SimConnect

[Mod - Happy Thoughts]embly Version: 10.0.61259.0

Win32 Version: 10.0.61637.0 (FSX-Xpack.20070926-1421)

CodeBase: file:///C:/Windows/[Mod - Happy Thoughts]embly/GAC_32/Microsoft.FlightSimulator.SimConnect/10.0.61259.0__31bf3856ad364e35/Microsoft.FlightSimulator.SimConnect.dll

----------------------------------------

SharpDX.DirectInput

[Mod - Happy Thoughts]embly Version: 2.5.0.0

Win32 Version: 2.5.0

CodeBase: file:///C:/Users/Martin/AppData/Local/vPilot/SharpDX.DirectInput.DLL

----------------------------------------

SharpDX

[Mod - Happy Thoughts]embly Version: 2.5.0.0

Win32 Version: 2.5.0

CodeBase: file:///C:/Users/Martin/AppData/Local/vPilot/SharpDX.DLL

----------------------------------------

System.Web.Services

[Mod - Happy Thoughts]embly Version: 2.0.0.0

Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)

CodeBase: file:///C:/Windows/[Mod - Happy Thoughts]embly/GAC_MSIL/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll

----------------------------------------

ucsqpane

[Mod - Happy Thoughts]embly Version: 1.0.5237.41195

Win32 Version: 2.0.50727.4235 (VistaSP2GDR.050727-4200)

CodeBase: file:///C:/Windows/[Mod - Happy Thoughts]embly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

----------------------------------------

msvcm80

[Mod - Happy Thoughts]embly Version: 8.0.50727.6195

Win32 Version: 8.00.50727.6195

CodeBase: file:///C:/Windows/WinSxS/x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.6195_none_d09154e044272b9a/msvcm80.dll

----------------------------------------

biztbwus

[Mod - Happy Thoughts]embly Version: 1.0.5237.41195

Win32 Version: 2.0.50727.4235 (VistaSP2GDR.050727-4200)

CodeBase: file:///C:/Windows/[Mod - Happy Thoughts]embly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.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.

Link to comment
Share on other sites

Ross Carlson
Posted
Posted

What do you mean by "consistent"?

 

What simulator?

 

What other SimConnect add-ons do you run?

Developer: vPilot, VRC, vSTARS, vERAM, VAT-Spy

Senior Controller, Boston Virtual ARTCC

Link to comment
Share on other sites

Ross Carlson
Posted
Posted

Martin, are you still having this problem?

Developer: vPilot, VRC, vSTARS, vERAM, VAT-Spy

Senior Controller, Boston Virtual ARTCC

Link to comment
Share on other sites

Martin Connor 1270685
Posted
Posted

Hi Ross,

 

I've not had this exact problem since you sent down an update. By consistant I meant repeatable.

 

I have found another way to break it, and I feel bad sending you stuff like this. I know what a pain it is to develop something and then have all sorts of errors thown at you.

 

Using Microsoft's XML Notepad Editor I tried to insert a record. This had the effect of adding extranious data to the end of some lines, Despite it saying there were no errors.

This malformatted Rule file generated a crash with the following data.

 

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 bg.a(String A_0, String A_1, List`1 A_2, String A_3)

at bg.a(String A_0, String A_1, List`1 A_2)

at bh.a(String A_0, String A_1)

at bh.k(Object A_0, bx A_1)

at c2.a(String A_0, String A_1)

at c2.a(Object A_0, DataReceivedEventArgs`1 A_1)

at cv.j.a(Object A_0)

----

I've not bothered with the rest of the error, but I have it if it is useful.

 

When handling these errors, I get a dialogue box telling me I am connected to the network, do I wish to Exit. It exists whether I press Yes or NO.

 

I am running FSX Deluxe SP2 on Vista 32 Home Ultimate (Fully Patched) with 4Gb Memory.

Link to comment
Share on other sites

Ross Carlson
Posted
Posted

Martin, no need to feel bad ... I'm not worried about people breaking the software with malformed XML. I would like to make the error more descriptive and not cause vPilot to exit. Can you send me the file that causes the error so that I can see what you did? (Or post it in code blocks here.)

Developer: vPilot, VRC, vSTARS, vERAM, VAT-Spy

Senior Controller, Boston Virtual ARTCC

Link to comment
Share on other sites

Martin Connor 1270685
Posted
Posted

Sorry Ross, but I've been unable to reproduce the effect in XML that caused the problem.

 

Also, I've had a number of crashes on FSX when connected via vPilot, vPilot generates an error dialogue once FSX has died and gone away. I'm glad to tell you that I've managed to reproduce the freeze and CTD using SB, so I think now that in my enthusiasm to build Model Rules, I've overloaded my hanger with PMDG Livery Options. Now uninstalling them all

 

Congratulations on the performance. When I was testing with SB, other peoples aircraft were lurching around, whereas vPilot is really smooth.

 

All the best

Martin

Link to comment
Share on other sites

Martin Connor 1270685
Posted
Posted

vPilot becoming available gave me the umph to try VATSIM again, but I kept crashing FSX. The error messages then generated by vPilot must have been as a result of sudden unexpected failure of the simconnect link.

 

************** Exception Text **************

System.Runtime.InteropServices.COMException (0xC000014B): Exception from HRESULT: 0xC000014B

at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)

at Microsoft.FlightSimulator.SimConnect.SimConnect.RequestDataOnSimObjectType(Enum RequestID, Enum DefineID, UInt32 dwRadiusMeters, SIMCONNECT_SIMOBJECT_TYPE type)

at b6.u()

at bh.f(Object A_0, EventArgs A_1)

at System.Windows.Forms.Timer.OnTick(EventArgs e)

at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)

at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

 

I don't know if this message could be trapped as "Lost connection to FSX"

 

Anyway, after much testing that included testing on Squarkbox, I concluded that uiautomationcore.dll was to blame. Odd since I thought this was mainly for running 32 bit apps on 64 bit OS, and I have Vista 32. Looking at the Event log messages, it would seem that I have gained 5 versions of uiautomationcore.dll, and the one being used was for Windows 7. Copying the correct version 6.0.6001.18000 into the main FSX Directory finally allowed me to make more 20 menu selections without breaking it.

 

I thought I'd add all this in case anyone else encounters the same problem.

 

Best wishes

Martin

Link to comment
Share on other sites

 Share