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.

No Fortran Expression Evaluator debugging COM Server.

Peter_P_1
Beginner
1,606 Views

My project is a .NET front end calling a Fortran COM Server (generated with the COM Server wizard) via COM-Interop.

In IVF 12.1, I could debug into the COM Server and watch Fortran variables.  After migrating to IVF 14.0, I can see some variables in the debugger but they have C semantics, e.g. type "long" rather than INTEGER(4).  Allocatables or pointer targets are not viewable.  Reading elsewhere I guess this means the Fortran Expression Evaluator (fee.dll) is not loaded.

I can successfully debug simpler projects where the Fortran code is statically linked.

Is there some way to kick-start the Fortran Expression Evaluator?

0 Kudos
4 Replies
Steven_L_Intel1
Employee
1,606 Views

See if this fixes it. In Visual Studio, select Tools > Options > Debugging > Edit and Continue. Uncheck "Enable native Edit and Continue". This option disables any non-Microsoft debugger support.

0 Kudos
Peter_P_1
Beginner
1,606 Views
Thanks Steve. I had already tried that but it doesn't seem to help in my case. I will try and construct a simple example and submit it to premier support.
0 Kudos
Steven_L_Intel1
Employee
1,606 Views

Try 15.0. Or 14.0 Update 4.

0 Kudos
Peter_P_1
Beginner
1,606 Views

I finally found a solution and will put a simple description here just in case it is useful.

If your calling project is C++ or C++/CLI, go to Project Properties->Configuration Properties->Debugging and set Debugger Type = Native Only.

Note, that setting is in the calling project, i.e. the project that calls your Fortran DLL, not in the Fortran project itself.  For C++/CLI, this setting will limit the ability to debug in C++ code, switch the setting back to Debugger Type = Auto when you need to do this.

If your calling project is C#, go to Project Properties->Debug and check the option Enable Native Code Debugging.

Fortran expression evaluation comes good when the above settings are in place.

0 Kudos
Reply