If I was to guess, I'd guess that this is a case of either
1) mixing debug and release builds of the library (and/or dependencies) and the application; which usually leads to crashes or random weird results (like what you are experiencing).
2) mixing a build of the library (and/or dependencies) with one compiler version with a build of the application with a different compiler version; which often leads to crashes or random weird results (like what you are experiencing).