• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Unhandled Exception Upon Program Start

tgibson

Resource contributor
Messages
11,845
Country
us-california
Hi,

Downloaded and installed the latest development version of MCX. The previous version I had downloaded (on 2/16/12) worked fine. I see it may be a shader issue - is there a way to avoid this problem if my video card doesn't support this?

Details:

Upon program start got an Unhandled exception error:

Object reference not se to an instance of an object.

If I choose Continue there is a big red X on the 3D display screen.

The details of the error:

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at CSGL12.GL.glCreateShader(Int32 itype)
at ASToFra.ObjectRenderer.ShaderProgram.InitializeVertexShader()
at ASToFra.ObjectRenderer.ShaderProgram..ctor(GL gl)
at ASToFra.ObjectRenderer.Renderer3DHandlerType.InitializeShaders()
at ASToFra.ObjectRenderer.Renderer3DHandlerType.OpenGLStarted(CSGL12Control grControl)
at CSGL12.CSGL12Control.InvokeOpenGLStarted()
at CSGL12.CSGL12Control.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.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: 2.0.0.0
Win32 Version: 2.0.50727.3634 (GDR.050727-3600)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Launcher_ModelConverterX
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///D:/Program%20Files/Model%20Converter%20X/ModelConverterX.exe
----------------------------------------
ModelConverterX
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///D:/Program%20Files/Model%20Converter%20X/ModelConverterX.DLL
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3637 (GDR.050727-3600)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3634 (GDR.050727-3600)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3639 (GDR.050727-3600)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Interfaces
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///D:/Program%20Files/Model%20Converter%20X/Interfaces.DLL
----------------------------------------
ObjectModel3D
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///D:/Program%20Files/Model%20Converter%20X/ObjectModel3D.DLL
----------------------------------------
ObjectWriter
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///D:/Program%20Files/Model%20Converter%20X/ObjectWriter.DLL
----------------------------------------
ObjectReader
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///D:/Program%20Files/Model%20Converter%20X/ObjectReader.DLL
----------------------------------------
EventLog
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///D:/Program%20Files/Model%20Converter%20X/EventLog.DLL
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
ObjectRenderer
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///D:/Program%20Files/Model%20Converter%20X/ObjectRenderer.DLL
----------------------------------------
CSGL12DLL
Assembly Version: 12.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///D:/Program%20Files/Model%20Converter%20X/CSGL12DLL.DLL
----------------------------------------
ParticleEffects
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///D:/Program%20Files/Model%20Converter%20X/ParticleEffects.DLL
----------------------------------------
Utils
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///D:/Program%20Files/Model%20Converter%20X/Utils.DLL
----------------------------------------
TextureObject
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///D:/Program%20Files/Model%20Converter%20X/TextureObject.DLL

Thanks,
 
Hi,

You still have this issue?

If you previous development release was from february it was still a version without shaders I think.

Send from my phone using Tapatalk, so excuse the short sentences and possible typos
 
Hi,

It's an older computer with a very weak video card. I will be updating soon, so the problem will eventually go away. It works fine on my main FS computer.
 
Back
Top