Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29285 Discussions

Debugging a VB-IVF mixed language solution

jond
Novice
639 Views
I have a VB.NET (the GUI) and IVF DLL (numerical engine) mixed language solution under VS2005. I would like to be able to debug both the VB and Fortran code, and be able to step into and out of the Fortran DLL. However, when I try to step into a Fortran function from the VB code, the debugger just steps over the Fortran function. The function is operated, the returned value is correct, but I just can't step into the Fortran DLL. In the VB code, the DLL is declared with its absolute path to avoid any "DLL hell" sort of problems, and the debug version of the DLL is copied into this path.

Any ideas on how to succesfully debug such a mixed language solution?

I am using VS2005, VB.NET and IVF 10.1.011.

Thanks,
Jon
0 Kudos
3 Replies
jimdempseyatthecove
Honored Contributor III
639 Views

Jon,

Assuming the Fortran DLL was compiled with Debug information it sounds like the symbols for the Fortran DLL were not loaded. As a work around (possibly a once only per debug session thing), place a break point in the VB program at the 1st call to the Fortran DLL and then open a Disassembly window. From the Disassembly window perform a step into (F11) through the call instruction. You may have to step into twice: Once to get to the jmp table, then once again to get to the function entry point. Once there, hopefully the debugger will find the symbol information.

Jim Dempsey

0 Kudos
Steven_L_Intel1
Employee
639 Views
In the VB project, select the project Properties, Debug and check the box "Enable unmanaged code debugging".
0 Kudos
jond
Novice
639 Views
Thanks. Checking the "Enable unmanaged code debugging" box worked.

Jon
0 Kudos
Reply