Debuging a Fortran library from a C++\CLI Dll

Debuging a Fortran library from a C++\CLI Dll

Craig L.的头像

I am using visual studio 2010 and have a Fortran Library that I am linking to a C++\CLI dll.  The code is basically the same as the mixed language C_calls_Fortran sample, however the C program was changed to a  C++\CLI dll.  Everything works ok, the Fortran subroutine executes and returns correctly.  However I can't debug into the Fortran subroutine when called.  I have no problems debugging if I link the library to a C program as in the C_calls_Fortran sample

Has anyone had success debug from C++\CLI into Fortran? Or is this a limitation of using CLI

Compiler Version is Intel(R) Visual Fortran Compiler XE 13.0.1.119

Thanks

Craig

5 帖子 / 0 new
最新文章
如需更全面地了解编译器优化,请参阅优化注意事项.
IanH的头像

You say "C++/CLI dll". What's the exe that runs that DLL?

Craig L.的头像

I am using using a .net exe (vb.net winforms) . Everything seems in order I can debug into the c++ code (from vb.net), but as soon as I step into one of the fortran functions it gets stepped over?

Very strange

Steve Lionel (Intel)的头像

In your VB.NET project, select Properties > Debug. Scroll down the page and check the box "Enable unmanaged code debugging". Click Ok.

Steve
Craig L.的头像

Excellent thanks very much Lionel. That works perfectly, not sure how I missed that option.

登陆并发表评论。