Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29386 Discussions

Calling dlls from .NET: JIT debugging?

andrew_frost
Beginner
629 Views

Hi Intel Forum,

I am currently looking at options for using legacy Fortran code, called from .NET languages (eg. C#). I am wanting to know ifJIT debugging (stepping into the dll) can be done in this case with IVF 9.1 ?Ideally I would like to be able todebug dlls as is possible if called from a Fortran program.

If so,what is the most straightforward option for interfacing from:

  1. standard dll call (dll import/export) from .NET language, or,
  2. Fortran.NET wrapper for dll (called from other .NET language) for easier interfacing of variables. (Is a Fortran.NET wrapper possible with IVF?))

I couldnt find this topic in previous posts.Please direct me there if it has already been raised.

Cheers

0 Kudos
1 Reply
Steven_L_Intel1
Employee
629 Views

What you need to do is set the property "Configuration Properties > Debugging > Debuggers > Enable unmanaged code debugging" in the .NET project. Then you can set breakpoints in the DLL and even step into it.

We do not have a .NET Fortran compiler, but the next major release will bring back the COM Server Wizard (last seen in CVF Professional Edition) that enables you to create COM servers in Fortran, and these are accessible in the .NET environment.

0 Kudos
Reply