Closed chenxuuu closed 1 year ago
This error message seems related to SDL, so something seems to be going wrong in the SDL backend. Could ìt be that the SDL dll in your project is only compiled for x86?
where is SDL dll? I didn't see it
That is interesting, from some source you are getting a SDL dll.
Could you try manually updating to OpenTK 3.3.3? You just download that version from nuget and it should work
OpenTK 3.3.3 dosen't work too
I search all files in my computer, I found some sdl.dll
but no one in my path environment variable
Doesn't need to be in path for dll search to find it, what folders did you find sdl dlls in? Anything related to your project?
I found an SDL2.dll
in msys2\mingw64\bin
which is in my PATH environment variable
I remove it and restart vs, same error..
yes, it is caused by sdl2.dll
in my msys
folder
how to avoid this? and, why is the loading priority of this dll higher? if we can't avoid, how to detect this problem on user's pc?
fixed by set path to an empty string:
Environment.SetEnvironmentVariable("path", "");
OpenTK.GLWpfControl 3.3.0
OpenTK 3.3.1 .net framework 4.6.2、4.5.2
x86 target works well, but x64 target crash at
OpenTkControl.Start(settings);
test with readme codes, whole project: TestGLWpfControl.zip