I created small lib for file conversion using OCCT. I prepared two builds int Release and Debug configuration. Lib works ok in release configuration, but crashes at the end of process in debug mode. I tried official OCCT 7.5.0 binaries as well as my own builds (MSVC14 and MSVC15) with the same results. Error message is shown in snapshot attached. What may be a reason of this crash? The same code compiled on Linux works OK in both configurations.
I'm using this lib in other application and it is hard to work without debug builds.
Using OCCT libraries application "Debug Assertion Failed" on Windows