Hi all, i'm testing my project NimQML (https://github.com/filcuc/DOtherSide) on windows. Right now it works fine on Linux however on windows i get a weird crash on exit even if i don't call any function of my library except importing it.
import NimQml
proc mainProc() =
discard()
when isMainModule:
mainProc()
The message that i receive is
This application has requested the runtime to terminate in an unusual way.
I tried to debug on windows with gdb and adding debug info. However the crash happen after the mainProc finished so outside the when statement.
Any suggestion?
i'm using:
So the news is that dynlib seems to work with the C++ compiler but not with the C.
I checked how i create my .dll with CMAKE and tested it with both SHARED and MODULE flag (http://www.cmake.org/cmake/help/cmake2.6docs.html#command%3aadd_library) but got the same results.
Any idea?