No idea. Attach the Visual Studio debugger to the frozen C++ process and examine the call stacks. Remember to enable the Microsoft Symbol servers to obtain meaningful function names in the stack.
Get support from the programmer of the C++ application. It would be impossible for us to assist since we have no idea about how the application was coded.
Ok, so you have the source code. Great. Attach the Visual Studio debugger to the failed C++ process. This will let you see the stack trace, and with the source code you can even get the exact line where it happens. Let's start there. If you don't understand what the debugger is telling you, then at least start by posting the code here.
Remember to use code tags when you post code in this forum. See http://bit.ly/L4Jhl7 for details.