To expand on my comment:
If your program crashes even with a release build of your program, you'll have to download the source and build it yourself (python is required to configure the build).
In case the release build does not crash, you can disable the /RTCs Stack Frames
runtime check in your C++/Code Generation
project settings for your debug build, which appears to be causing the crash. Simply change the setting from Both
to /RTCu Uninitialized Variables
or disable it altogether by setting it to Default
.
Since this is a workaround and not a solution, you should consider building botan yourself and build both release and debug versions (then you can link to the debug version in your debug build and leave the debug runtime checks as they are.
Refer to the documentation on how to build it (you'll need python to run the configuration):
Once you built the release version (default), copy the following files to another directory (for example C:\Botan\release\
) or they will be overwritten when you build the debug version:
- botan.dll
- botan.exp
- botan.lib
- botan.dll.manifest
Now run configure again, this time add the --enable-debug
option:
> python configure.py --cc=msvc --enable-debug
and build it again. This time, copy the files (listed above) to C:\Botan\debug\
.
Configure your project to link to the library in the debug directory for debug builds and the one in the release directory for release builds. Finally make sure that your program loads the appropriate DLL when you run it.