Skip to content
This repository has been archived by the owner on Nov 26, 2022. It is now read-only.

Unhandled exception caused by openning more than one 3d model for viewing #67

Open
TheElementalOfDestruction opened this issue Sep 12, 2018 · 0 comments

Comments

@TheElementalOfDestruction

If you open two different 3d models (BMD0) for viewing, and then close the second one opened, the following unhandled exception will be raised:

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

************** Exception Text **************
OpenTK.Graphics.GraphicsContextException: Failed to swap buffers for context 196608 current. Error: 6
   at OpenTK.Platform.Windows.WinGLContext.SwapBuffers()
   at _3DModels.ModelControl.Render()
   at System.Windows.Forms.Control.OnPaint(PaintEventArgs e)
   at OpenTK.GLControl.OnPaint(PaintEventArgs e)
   at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
   at System.Windows.Forms.Control.WmPaint(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.UserControl.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.7.3163.0 built by: NET472REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
Tinke
    Assembly Version: 0.9.2.0
    Win32 Version: 0.9.2
    CodeBase: file:///C:/Users/Creation/Downloads/tinke-master/tinke-master/build/Tinke.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3056.0 built by: NET472REL1
    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.7.3151.0 built by: NET472REL1LAST_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.7.3056.0 built by: NET472REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Xml.Linq
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3056.0 built by: NET472REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3160.0 built by: NET472REL1LAST_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.7.3056.0 built by: NET472REL1
    CodeBase: 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.7.3056.0 built by: NET472REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
Ekona
    Assembly Version: 7.1.0.0
    Win32 Version: 7.1.0.0
    CodeBase: file:///C:/Users/Creation/Downloads/tinke-master/tinke-master/build/Ekona.DLL
----------------------------------------
1stPlayable
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Creation/Downloads/tinke-master/tinke-master/build/Plugins/1stPlayable.dll
----------------------------------------
3DModels
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Creation/Downloads/tinke-master/tinke-master/build/Plugins/3DModels.dll
----------------------------------------
OpenTK
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.278.44921
    CodeBase: file:///C:/Users/Creation/Downloads/tinke-master/tinke-master/build/OpenTK.DLL
----------------------------------------
999HRPERDOOR
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.0.0
    CodeBase: file:///C:/Users/Creation/Downloads/tinke-master/tinke-master/build/Plugins/999HRPERDOOR.dll
----------------------------------------
AI IGO DS
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.0.0
    CodeBase: file:///C:/Users/Creation/Downloads/tinke-master/tinke-master/build/Plugins/AI%20IGO%20DS.dll
----------------------------------------
BLOODBAHAMUT
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Creation/Downloads/tinke-master/tinke-master/build/Plugins/BLOODBAHAMUT.dll
----------------------------------------
Common
    Assembly Version: 0.3.0.0
    Win32 Version: 0.3.0.0
    CodeBase: file:///C:/Users/Creation/Downloads/tinke-master/tinke-master/build/Plugins/Common.dll
----------------------------------------
DBK ULTIMATE
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Creation/Downloads/tinke-master/tinke-master/build/Plugins/DBK%20ULTIMATE.dll
----------------------------------------
DEATHNOTEDS
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Creation/Downloads/tinke-master/tinke-master/build/Plugins/DEATHNOTEDS.dll
----------------------------------------
EDGEWORTH
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Creation/Downloads/tinke-master/tinke-master/build/Plugins/EDGEWORTH.dll
----------------------------------------
Fonts
    Assembly Version: 2.1.1.0
    Win32 Version: 2.1.1.0
    CodeBase: file:///C:/Users/Creation/Downloads/tinke-master/tinke-master/build/Plugins/Fonts.dll
----------------------------------------
GYAKUKEN
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Creation/Downloads/tinke-master/tinke-master/build/Plugins/GYAKUKEN.dll
----------------------------------------
HETALIA
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Creation/Downloads/tinke-master/tinke-master/build/Plugins/HETALIA.dll
----------------------------------------
Images
    Assembly Version: 3.0.0.0
    Win32 Version: 3.0.0.0
    CodeBase: file:///C:/Users/Creation/Downloads/tinke-master/tinke-master/build/Plugins/Images.dll
----------------------------------------
INAZUMA11
    Assembly Version: 1.1.0.0
    Win32 Version: 1.1.0.0
    CodeBase: file:///C:/Users/Creation/Downloads/tinke-master/tinke-master/build/Plugins/INAZUMA11.dll
----------------------------------------
KIRBY DRO
    Assembly Version: 1.3.0.0
    Win32 Version: 1.3.0.0
    CodeBase: file:///C:/Users/Creation/Downloads/tinke-master/tinke-master/build/Plugins/KIRBY%20DRO.dll
----------------------------------------
LASTWINDOW
    Assembly Version: 1.1.0.0
    Win32 Version: 1.1.0.0
    CodeBase: file:///C:/Users/Creation/Downloads/tinke-master/tinke-master/build/Plugins/LASTWINDOW.dll
----------------------------------------
LAYTON
    Assembly Version: 0.6.1.0
    Win32 Version: 0.6.1.0
    CodeBase: file:///C:/Users/Creation/Downloads/tinke-master/tinke-master/build/Plugins/LAYTON.dll
----------------------------------------
MAPLESTORYDS
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Creation/Downloads/tinke-master/tinke-master/build/Plugins/MAPLESTORYDS.dll
----------------------------------------
NINOKUNI
    Assembly Version: 5.0.0.0
    Win32 Version: 5.0.0.0
    CodeBase: file:///C:/Users/Creation/Downloads/tinke-master/tinke-master/build/Plugins/NINOKUNI.dll
----------------------------------------
Pack
    Assembly Version: 5.2.0.0
    Win32 Version: 5.2.0.0
    CodeBase: file:///C:/Users/Creation/Downloads/tinke-master/tinke-master/build/Plugins/Pack.dll
----------------------------------------
PSL
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.0.0
    CodeBase: file:///C:/Users/Creation/Downloads/tinke-master/tinke-master/build/Plugins/PSL.dll
----------------------------------------
SDAT
    Assembly Version: 3.2.0.0
    Win32 Version: 3.2.0.0
    CodeBase: file:///C:/Users/Creation/Downloads/tinke-master/tinke-master/build/Plugins/SDAT.dll
----------------------------------------
SF FEATHER
    Assembly Version: 1.1.0.0
    Win32 Version: 1.1.0.0
    CodeBase: file:///C:/Users/Creation/Downloads/tinke-master/tinke-master/build/Plugins/SF%20FEATHER.dll
----------------------------------------
SONICRUSHADV
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Creation/Downloads/tinke-master/tinke-master/build/Plugins/SONICRUSHADV.dll
----------------------------------------
Sounds
    Assembly Version: 3.0.0.0
    Win32 Version: 3.0.0.0
    CodeBase: file:///C:/Users/Creation/Downloads/tinke-master/tinke-master/build/Plugins/Sounds.dll
----------------------------------------
TC UTK
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Creation/Downloads/tinke-master/tinke-master/build/Plugins/TC%20UTK.dll
----------------------------------------
Teniprimgaku
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Creation/Downloads/tinke-master/tinke-master/build/Plugins/Teniprimgaku.dll
----------------------------------------
TETRIS DS
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.0.0
    CodeBase: file:///C:/Users/Creation/Downloads/tinke-master/tinke-master/build/Plugins/TETRIS%20DS.dll
----------------------------------------
TOKIMEKIGS3S
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Creation/Downloads/tinke-master/tinke-master/build/Plugins/TOKIMEKIGS3S.dll
----------------------------------------
TXT
    Assembly Version: 3.1.0.0
    Win32 Version: 3.1.0.0
    CodeBase: file:///C:/Users/Creation/Downloads/tinke-master/tinke-master/build/Plugins/TXT.dll
----------------------------------------
WITCHTALE
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Creation/Downloads/tinke-master/tinke-master/build/Plugins/WITCHTALE.dll
----------------------------------------
DSDecmp
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Creation/Downloads/tinke-master/tinke-master/build/DSDecmp.DLL
----------------------------------------
Be.Windows.Forms.HexBox
    Assembly Version: 1.4.7.38324
    Win32 Version: 1.4.7.38324
    CodeBase: file:///C:/Users/Creation/Downloads/tinke-master/tinke-master/build/Be.Windows.Forms.HexBox.DLL
----------------------------------------
OpenTK.GLControl
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.278.44921
    CodeBase: file:///C:/Users/Creation/Downloads/tinke-master/tinke-master/build/OpenTK.GLControl.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.

You can simply click "continue", close the other 3d model window, and everything will continue to work the same, but I just thought you should know. This only happens when you close the second one before the first one.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants