- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello!
Is it possible to debug a dll or generate a core dump file in windows? I call the Fortran-dll from IDL (interactive data language). I need it because my written dll crashes anywhere and anytime.
I hope, that someone can help me.
Thanks, Hannes
Is it possible to debug a dll or generate a core dump file in windows? I call the Fortran-dll from IDL (interactive data language). I need it because my written dll crashes anywhere and anytime.
I hope, that someone can help me.
Thanks, Hannes
Link Copied
6 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes. Right click on your DLL project and select Properties, Debugging. In the path to execute, put the path to the EXE that calls your DLL. Set a breakpoint in your DLL routine(s) and then press F5 to start debugging. Your program will load, and when it calls the DLL the breakpoint will be hit.
Make sure that the DLL being invoked is the Debug build result.
Make sure that the DLL being invoked is the Debug build result.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - Steve Lionel (Intel)
Yes. Right click on your DLL project and select Properties, Debugging. In the path to execute, put the path to the EXE that calls your DLL. Set a breakpoint in your DLL routine(s) and then press F5 to start debugging. Your program will load, and when it calls the DLL the breakpoint will be hit.
Make sure that the DLL being invoked is the Debug build result.
Make sure that the DLL being invoked is the Debug build result.
Thanks for your help, but I get following error message, when I press F5 to start debugging:
"Visual Studio cannot debug because a debug target has not been specified."
Is it correct, when I set in the Debugging Properties of my DLL project in the Field "Working Directory" my path where I copied my dll into the folder where my exe-file is located? And I only have to copy the debug dll in the folder where the exe-file is located?
Have I to do other settings?
Thanks, Hannes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - hgr_iwf
Thanks for your help, but I get following error message, when I press F5 to start debugging:
"Visual Studio cannot debug because a debug target has not been specified."
Is it correct, when I set in the Debugging Properties of my DLL project in the Field "Working Directory" my path where I copied my dll into the folder where my exe-file is located? And I only have to copy the debug dll in the folder where the exe-file is located?
Have I to do other settings?
Thanks, Hannes
Hannes,
I haven't tried this, but I think you would be better using the debug version of the DLL insitu in the folder where it was created through Visual Studio. Add this folder to your PATH so that the .exe file can find it.
I think this will work better than trying to move the DLL, or elase VS won't know where it (and other files it needs) are.
Regards,
David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry, I misremembered the field to set. It is "Command" under Debugging. Put the full path to the executable there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - Steve Lionel (Intel)
Sorry, I misremembered the field to set. It is "Command" under Debugging. Put the full path to the executable there.
Is it only possible to debug it with an exe-file? The problem is that I cannot generate an exe-file. I only can execute my source code with the programming environment of IDL.
kind regards,
Hannes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Put in the path to the EXE that starts the IDL environment.

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