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.

SOLVED: Unhandled exception error - Entering flight plan


Andrew Morkunas
 Share

Recommended Posts

Andrew Morkunas
Posted
Posted (edited)

I am getting his error when I am trying to enter information into my flight plan or remarks section of vPilot. Clicking continue clears the message box but I am left unable to enter information into the flight plan or remarks box. I can load a flight plan but I am unable to edit it. Clicking on Quit crashes vPilot.

 

It seems the buggy days of flight simulation are returning. Any ideas?

 

Andrew

 

I37dVKB.png

 

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
  at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
  at System.Windows.Forms.NativeWindow.DefWndProc(Message& m)
  at System.Windows.Forms.Control.DefWndProc(Message& m)
  at System.Windows.Forms.Control.WmKeyChar(Message& m)
  at System.Windows.Forms.Control.WndProc(Message& m)
  at System.Windows.Forms.TextBoxBase.WndProc(Message& m)
  at System.Windows.Forms.TextBox.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 [Mod - Happy Thoughts]emblies **************
mscorlib
   [Mod - Happy Thoughts]embly Version: 2.0.0.0
   Win32 Version: 2.0.50727.5485 (Win7SP1GDR.050727-5400)
   CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
vPilot
   [Mod - Happy Thoughts]embly Version: 1.1.5638.40065
   Win32 Version: 1.1.5638.40065
   CodeBase: file:///C:/Users/Andrew%20Morkunas/AppData/Local/vPilot/vPilot.exe
----------------------------------------
Ninject
   [Mod - Happy Thoughts]embly Version: 3.2.0.0
   Win32 Version: 3.2.2.0
   CodeBase: file:///C:/Users/Andrew%20Morkunas/AppData/Local/vPilot/Ninject.DLL
----------------------------------------
System.Windows.Forms
   [Mod - Happy Thoughts]embly Version: 2.0.0.0
   Win32 Version: 2.0.50727.5491 (Win7SP1GDR.050727-5400)
   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.5485 (Win7SP1GDR.050727-5400)
   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.5491 (Win7SP1GDR.050727-5400)
   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.5420 built by: Win7SP1
   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.5485 (Win7SP1GDR.050727-5400)
   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.5485 (Win7SP1GDR.050727-5400)
   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.5483 (Win7SP1GDR.050727-5400)
   CodeBase: file:///C:/Windows/[Mod - Happy Thoughts]embly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
_csiqnl0
   [Mod - Happy Thoughts]embly Version: 1.1.5638.40065
   Win32 Version: 2.0.50727.5485 (Win7SP1GDR.050727-5400)
   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.5483 (Win7SP1GDR.050727-5400)
   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.5483 (Win7SP1GDR.050727-5400)
   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
----------------------------------------
vnep6zji
   [Mod - Happy Thoughts]embly Version: 1.1.5638.40065
   Win32 Version: 2.0.50727.5485 (Win7SP1GDR.050727-5400)
   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.6.3.0
   Win32 Version: 2.6.3
   CodeBase: file:///C:/Users/Andrew%20Morkunas/AppData/Local/vPilot/SharpDX.DirectInput.DLL
----------------------------------------
SharpDX
   [Mod - Happy Thoughts]embly Version: 2.6.3.0
   Win32 Version: 2.6.3
   CodeBase: file:///C:/Users/Andrew%20Morkunas/AppData/Local/vPilot/SharpDX.DLL
----------------------------------------
System.Web.Services
   [Mod - Happy Thoughts]embly Version: 2.0.0.0
   Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400)
   CodeBase: file:///C:/Windows/[Mod - Happy Thoughts]embly/GAC_MSIL/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll
----------------------------------------
jc15vg1s
   [Mod - Happy Thoughts]embly Version: 1.1.5638.40065
   Win32 Version: 2.0.50727.5485 (Win7SP1GDR.050727-5400)
   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
----------------------------------------
41shmumk
   [Mod - Happy Thoughts]embly Version: 1.1.5638.40065
   Win32 Version: 2.0.50727.5485 (Win7SP1GDR.050727-5400)
   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:

<configuration>
   <system.windows.forms jitDebugging="true" />
</configuration>

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.

Edited by Guest

Andrew Morkunas

spacer.png

Twitch: padre_andrew ATC Simulations

Link to comment
Share on other sites

Chris Harkins 1272575
Posted
Posted

I am trying to narrow down on your cause.... could you do a search of you system for comctl32.dll and find out what version you have?

CAN1644.png

Clear skies and tailwinds

Link to comment
Share on other sites

Andrew Morkunas
Posted
Posted

Looks like 5.82.7601.18837

 

SInY3ri.png

Andrew Morkunas

spacer.png

Twitch: padre_andrew ATC Simulations

Link to comment
Share on other sites

Chris Harkins 1272575
Posted
Posted

hmmmmm...... well that is the same one I have. After I finish this flight (about an hour from now), I will disconnect and see if I get similar error.

CAN1644.png

Clear skies and tailwinds

Link to comment
Share on other sites

Andrew Morkunas
Posted
Posted

Here is another interesting symptom, I rebooted in Windows Safe Mode and who'da thunk it, no errors.

Andrew Morkunas

spacer.png

Twitch: padre_andrew ATC Simulations

Link to comment
Share on other sites

Bradley Grafelman
Posted
Posted

Same problem as reported on the Metacraft forums here: Problem to write flight plan route

 

Do you have UAC enabled? Are you running vPilot as an administrator?

Link to comment
Share on other sites

Andrew Morkunas
Posted
Posted

I do not know what UAC enabled means. I tried running vPilot as admin and still no joy.

 

I looked at the forum post your provided and sure enough I tried a Ctrl V paste of a route and that worked. Why would a Ctrl V paste work and not just a simple keystroke? For what its worth I have .NET Framework 4.6 installed.

Andrew Morkunas

spacer.png

Twitch: padre_andrew ATC Simulations

Link to comment
Share on other sites

Ross Carlson
Posted
Posted

I'm still trying to track this one down ... users of some of my ATC clients are having the same issue. I found some posts on the 'net that suggest this is a 64 vs 32 bit issue.

 

Are you on a 64 bit or 32 bit system?

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

Senior Controller, Boston Virtual ARTCC

Link to comment
Share on other sites

Chris Harkins 1272575
Posted
Posted

Just tested and have no issue typing in route or remarks.

 

Did you take the leap to Windows 10 and then start having issues???

CAN1644.png

Clear skies and tailwinds

Link to comment
Share on other sites

Ross Carlson
Posted
Posted

Chris, are you on 32 bit or 64 bit Windows? And which version of Windows?

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

Senior Controller, Boston Virtual ARTCC

Link to comment
Share on other sites

Andrew Morkunas
Posted
Posted

Thanks Ross for the response. I'm running Win 7 64 . I also posted to your Metacraft forum on this issue. I was able to safe boot into windows and the problem did not occur. I have a similar issue with AvilaSoft EFB, keystrokes into the route box raises the error and cut and paste do function as a workaround.

Andrew Morkunas

spacer.png

Twitch: padre_andrew ATC Simulations

Link to comment
Share on other sites

Bradley Grafelman
Posted
Posted

Seemingly identical JIT exception was posted here. Might be worth trying the suggested workaround at least as a way of confirming some of the reference links might be relevant.

 

@Andrew: You can try the suggested workaround by doing this:

  1. Ensure vPilot is not running.
  2. Open Notepad, Wordpad, or some other plain text editor you prefer.
  3. Copy/paste the contents of the following code block:
    <?xml version="1.0"?>
    <configuration>
    <runtime>
    	<legacyNullReferenceExceptionPolicy enabled="1" />
    </runtime>
    </configuration>


  4. Save this data by copying/pasting the following into the "Save As" dialog (should put it in the correct place with the correct name): %LocalAppData%\vPilot\vPilot.exe.config
  5. Launch vPilot and see if you still have the same issue.

 

If it doesn't work (or appears to cause more issues), simply open %LocalAppData%\vPilot\ and delete the newly-created .config file (making sure you don't accidentally delete a similarly named file, vPilotConfig.xml).

Link to comment
Share on other sites

Chris Harkins 1272575
Posted
Posted
Chris, are you on 32 bit or 64 bit Windows? And which version of Windows?

 

Windows 7 Home Premium, 64 bit

CAN1644.png

Clear skies and tailwinds

Link to comment
Share on other sites

Andrew Morkunas
Posted
Posted

@Bradley, I tried the config file, still no joy.

 

Andrew

Andrew Morkunas

spacer.png

Twitch: padre_andrew ATC Simulations

Link to comment
Share on other sites

Ross Carlson
Posted
Posted

Andrew, are you certain the file was saved as vPilot.exe.config? Sometimes text editors (especially notepad) will add a hidden .txt extension, resulting in the file actually being called vPilot.exe.config.txt.

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

Senior Controller, Boston Virtual ARTCC

Link to comment
Share on other sites

Andrew Morkunas
Posted
Posted

Sorry Ross, vpilot.exe.config properly set with no .txt extension, still getting the error. Any insight as to why the errors are not present in Windows Safe Mode?

 

Andrew

Andrew Morkunas

spacer.png

Twitch: padre_andrew ATC Simulations

Link to comment
Share on other sites

Ross Carlson
Posted
Posted

I have no idea ... all I've found so far is that it seems to only happen on 64 bit systems when the executable program (vPilot in this case) is compiled for 32 bit. vPilot is compiled for 32 bit since the SimConnect library is compiled for 32 bit.

 

Strangely, not everyone on 64 bit Windows is getting this issue, and for most of the people that are getting the issue, vPilot used to work fine for them. Something changed on those systems, maybe something in the .NET framework.

 

I'll be looking into finding a workaround.

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

Senior Controller, Boston Virtual ARTCC

Link to comment
Share on other sites

Ross Carlson
Posted
Posted

I found an MSDN forum post that suggests this may be a bug in the .NET framework or in Windows itself. A suggested workaround is to disable the "visual styles" for buttons, text boxes, etc. I just compiled a version of vPilot which does this. This causes the flight plan window and the settings window to use the old uglier boxy buttons and other widgets, but I'm curious if it solves the issue.

 

Those of you having the problem, please download and install this version:

 

http://vpilot.metacraft.com/[Mod - Happy Thoughts]ets/Files/Installers/vPilot-Setup-1.1.5712.25090.exe

 

Ensure you see the older-style buttons on the flight plan form. That way you know the new version installed properly. And let me know if it fixes the problem.

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

Senior Controller, Boston Virtual ARTCC

Link to comment
Share on other sites

  • Board of Governors
Don Desfosse
Posted
Posted

Just as another data point, I run AVG Business Edition with (knock on wood) none of those issues (yet!).

Don Desfosse
Vice President, Operations

Link to comment
Share on other sites

Andrew Morkunas
Posted
Posted

L I B - M R DUCKS

 

I uninstalled AVG and the error went away. The similar problem I had with AivlaSoft Electronic Flight Bag also went away. Who'da thunk it?

 

Thank you Ross for your commitment and contributions to the Flight Simulation community.

 

 

M R Ducks. O A 8. O S A R, C M Wangs. L I B, M R Ducks

Translation - Them are ducks. No they ain't. Oh yes they are, seem them wings. Well I'll be, them are ducks.

L I B - M R Ducks used as an exclamation during a moment of epiphany.

Andrew Morkunas

spacer.png

Twitch: padre_andrew ATC Simulations

Link to comment
Share on other sites

  • 2 weeks later...
Dean Brady 1312774
Posted
Posted

I'm having the same issue and was about to post a request for help as well. Fortunately I saw this and didn't need to. That being said is uninstalling AVG the answer or is there a workaround where you can add an exception to vPilot?

Link to comment
Share on other sites

Andrew Morkunas
Posted
Posted

The only workaround is to type your route into a text editor and then do a copy and paste. Crtl V does not raise the error. I uninstalled AVG and the two problems I was having went away. For antivirus I opted to go with Windows Defender on Windows 7.

 

Andrew

Andrew Morkunas

spacer.png

Twitch: padre_andrew ATC Simulations

Link to comment
Share on other sites

Bradley Grafelman
Posted
Posted

Slight topic hijacking, but I found this statement quite disconcerting:

For antivirus I opted to go with Windows Defender on Windows 7.

For perspective other than my own opinion, the following is from a "Ken Blake", an MVP on the Microsoft community forums:

 

No, it can't come close to doing it all. Windows Defender is not an anti-virus program, it's an anti-spyware program, and not even the best one of those. You definitely should install anti-virus software.

 

(At the very least this applies to Windows 7; I'd hesitate to rely on the "improvements" even on Windows 8 or 10.)

Link to comment
Share on other sites

Andrew Morkunas
Posted
Posted

You should be disconcerted, this is what Microsoft is saying about Defender. Please take your information to Microsoft and have them update their website.

 

kwtUGUJ.png

Andrew Morkunas

spacer.png

Twitch: padre_andrew ATC Simulations

Link to comment
Share on other sites

 Share