newLISP and windows DLLs
Posted: Fri Jun 06, 2014 10:01 am
I have tried to get newLISP to load a libnewt.dll, but the interpreter has issues upon exit. It seems to happen when the DLL is unloaded. The entire DLL was compiled by GCC 4.8.1 from the mingw32 build system. Any ideas?
The error is like so:
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
The import code is below. As for the DLL, it can be found here: https://github.com/ryuo/newlisp-newt/ra ... ibnewt.dll
The error is like so:
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
The import code is below. As for the DLL, it can be found here: https://github.com/ryuo/newlisp-newt/ra ... ibnewt.dll
Code: Select all
(import "libnewt.dll" "newtGetScreenSize" "void" "void*" "void*")
(exit 0)