If you’re application is crashing at runtime with Run-Time Error R6034 try changing the “Solutions Configuration” from “Debug” to “Release”. Worked for me.