This might be because `NimMain` is not run correctly. I wrote an article on dynamic libraries [here](https://peterme.net/dynamic-libraries-in-nim.html) which outlines how to do that and how that system works.
- DLL crashes - can't figure out why IvanS
- DLL crashes - can't figure out why PMunch
