Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: TGUI System Access Violation  (Read 2817 times)

0 Members and 1 Guest are viewing this topic.

TreeTree

  • Newbie
  • *
  • Posts: 3
    • View Profile
TGUI System Access Violation
« on: April 05, 2014, 02:06:32 am »
So I just tried the TGUI for .NET and the example on this page http://tgui.net/example-code/csharp-login-screen/index.html. It does work exactly like I expect it would but there is a problem.

When I close the window using the Window.Close function and the program ends completely, I get a

Code: [Select]
A first chance exception of type 'System.AccessViolationException' occurred in sfmlnet-graphics-2.dll
An unhandled exception of type 'System.AccessViolationException' occurred in sfmlnet-graphics-2.dll

sfmlnet-graphics-2.dll!SFML.Graphics.Context.Context()
sfmlnet-graphics-2.dll!SFML.Graphics.Context.Global.get()
sfmlnet-graphics-2.dll!SFML.Graphics.Texture.Destroy(bool disposing)
sfmlnet-window-2.dll!SFML.ObjectBase.Dispose(bool disposing)
sfmlnet-window-2.dll!SFML.ObjectBase.Finalize()
The way I understand it is this error occurs when I create a resource and forget to call Dispose () on it like with a RenderTexture object. This still happens after I dispose the Window and the GUI object.

So I'm wondering if this may be something specific to me and how I've set up the project, because it would be strange if this was a common bug and the developer didn't catch it.

Any thoughts?