migueltk's picture

OpenTK.dll.config Is it necessary?

Hi, ...

I found this great project OpenTKGUI, and I was surprised that you do not need OpenTK.dll.config file in the folder of the executable to run on Linux (Ubuntu 10.10 - 64 bit). Do not you understand?

I tried other projects and need to have the file OpenTK.dll.config otherwise when trying to run the program displays the error

System.DllNotFoundException: opengl32.dll
at (wrapper managed-to-native) OpenTK.Graphics.GL/GetProcAddressX11: glxGetProcAddress (string) ...... etc.

as expected.

Any idea what is going on ...

Regards, ... Miguel

Inline Images

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

If OpenTK.dll.config is missing, you will encounter undefined behavior. It may run, it may not run or it may blow up in some other, spectacular fashion. For every program that works, another one will fail to run.

Long story short: always distribute OpenTK.dll.config along with OpenTK.dll.

migueltk's picture

Thanks for the clarification.