1
DotNet / Crash on startup when using dock station.
« on: July 27, 2021, 12:14:58 am »
I use USB dock station with 2 monitors attached to it.
When I run app disconnected, it starts and run properly.
When I run app connected, it crash.
When I run app disconnected, then connect after app started, run properly.
When I run app disconnected, it starts and run properly.
When I run app connected, it crash.
When I run app disconnected, then connect after app started, run properly.
internal class Program
{
public static void Main(string[] args)
{
var window = new RenderWindow(new VideoMode(200,200), "test");
}
}
{
public static void Main(string[] args)
{
var window = new RenderWindow(new VideoMode(200,200), "test");
}
}
Code: [Select]
Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at SFML.Graphics.RenderWindow.sfRenderWindow_createUnicode(VideoMode Mode, IntPtr Title, Styles Style, ContextSettings& Params)
at SFML.Graphics.RenderWindow..ctor(VideoMode mode, String title, Styles style, ContextSettings settings)
at SFML.Graphics.RenderWindow..ctor(VideoMode mode, String title)
at Guids.Client.Program.Main(String[] args) in **[not important]**/Program.cs:line 10