(See this issue for reference)
On Linux the following line of my project works just fine:
https://github.com/TheSHEEEP/godotdetour/blob/master/src/detournavigation.cpp#L394
But on Windows, that _new() (and a couple others as well I assume) produce an invalid Null instance - and using that instance then goes on to cause crashes of course.
That is in a release build. In a debug build, it seems to crash during the _new() itself. Both the class's constructor and _init() function are called and executed without a crash, though.
I really cannot pinpoint where exactly the crash inside the _new() happens in a debug build.
You are of course very welcome to compile and run the demo of the module yourself to see the problem in action.
It is probably something wrong with my code, but given it all works fine on Linux, I'm a bit clueless as to what is going on.