Silverfrost Forums

Welcome to our forums

Trapping runtime errors, with windows C++ and FTN95 DLLs

19 Mar 2010 4:18 #6189

Got a nasty one!

We're calling a C++ DLL which is providing a windows interface capability. It's called 'Qt' (if anyone happens to be familiar with it!).

The problem is that for some unknown reason, the app has started crashing. The traceback provided by FTN indicates that the crash is in the C++ DLL, but, according to our tame C++ programmer, he doesn't get a trap in his debugger (visual studio, I assume) before FTN has fallen over.

So, is there a way to stop FTN intercepting the crash, so that the VS debugger has a chance to see what's going on?

K

19 Apr 2010 11:33 #6309

I don't know if this is what you're doing already, but to debug C++ code in a dll called from ftn95 (using visual studio), I start the app in non-debug mode (ctrl+f5 or just run the exe from explorer), then once started I use the VS debug->attach to process to select the running executable using the VS native debugger (rather that the ftn95 debugger). Breakpoints or crashes in the c++ code should then happen as expected in VS.

Please login to reply.