- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have a Fortran Dll compiled in Release mode, which I call from C# and this works fine. However, I need to run the Debug version instead. I have compiled the debug version and linked to C# but it crashes upon execution.
What changes do I need to make in the build properties for the dll to work in C# in debug mode?
I have tried compiling the C# code in debug but this makes no difference.
Thanks. Kashif
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would recommend that you change the project property Fortran..Libraries..Use Run-Time Library to "Multithreaded DLL" (don't pick one of the Debug library options.)
Be sure to enable "Unmanaged code debugging" in the C# project properties.
Be sure to enable "Unmanaged code debugging" in the C# project properties.

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