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

Debugging a DLL project

Jon_D
New Contributor II
370 Views

Hello,

I am trying to step into and debug a DLL project but I can't seem to be able to do it (I am using CVF version 6.6C). I checked the sample DLL projects provided byCVFand the step into/debug operation works fine with these samples. Cansomebody tell mehow I might be able to achieve this with my project?

Here is what I did:

1. I created a DLL (call it MyDLL) project and exported 3 functions.

2. In the same workspaceI created a windows console project (call it Test) that included a main program to test the DLL.

3. I made MyDLL a dependency of Test.

4. I changed the Linker settings so that MyDLL.dll is created in the Test folder so that Test.exe can find the dll.

5. I experimented with including and excluding the MyDLL.lib file in Test. The outcome is the same; i.e. I can't step into MyDLL for debugging.

I can compile both projects without any problem. Test.exe can find MyDLL.dll. When I use "Step Into" button for the call to the first function from MyDLL, it doesn't work. The effect is as if I pressed the "Step Over" button. But from the text output created by the functionit appears that the function works correctly. Then thecall to the second function crashesTest.exe. If I can step intoMyDLL code, I can figure out what the problem might be.

Thanks for any help in advance,

Jon

0 Kudos
0 Replies
Reply