Skip to content

program stopping working without error when creating hash #4386

Closed Answered by reneme
PabloKench asked this question in Q&A
Discussion options

You must be logged in to vote

When you call Botan::HashFunction::create_or_throw the program stops working, this was not supposed to happen, I suspect it is the compiled lib

Almost certainly it is not a bug in the library's implementation itself, as this is code that has been tested and used successfully by many others.

We've seen similar failure modes before. Namely "the application just crashes on the first invocation of the library on Windows". Often this indicates that the user had an issue in their build system. For instance:

  • linking a debug version to a release binary,
  • using incompatible runtimes (/MD, /MT, ...) when building the library
    (Botan uses /MD by default, but you could try configuring with --msvc-ru…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by PabloKench
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants