- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You say "C++/CLI dll". What's the exe that runs that DLL?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In your VB.NET project, select Properties > Debug. Scroll down the page and check the box "Enable unmanaged code debugging". Click Ok.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Excellent thanks very much Lionel. That works perfectly, not sure how I missed that option.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page