Quite simply, you need to debug the C++ code.

Regards,

Paul McKenzie