Jump to content
  • Advertisement
Sign in to follow this  
fromthefuture

Debugger says no symbols loaded for DLL?

This topic is 2837 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm trying to debug a dll that I wrote, but I'm running into this problem. The dll is called from a visual basic 2010 program. So in Visual Studio I set my host executable for the dll as the visual basic exe that I compiled earlier. I set a breakpoing in my DLL C++ code in Visual Studio and hit Debug. But the break point turns white and has an exclamation mark on it saying "break point will not be hit, no symbols loaded for this document". Why is that? I've googled for hours, and have tried almost all suggestions. I'm not in Release mode, my debug symbols are being generated (since I have the source for both VB app and the DLL). I don't know what else to do. The VB app just says "External componenent has thrown an exception" and points to the line where the c++ library function is being called. What am I doing wrong?

Share this post


Link to post
Share on other sites
Advertisement
How are you loading the DLL? Is the .pdb file for the DLL in a place that the debugger can get to it?

Share this post


Link to post
Share on other sites

How are you loading the DLL? Is the .pdb file for the DLL in a place that the debugger can get to it?


How am I loading the dll in my visual basic app?





Private Declare Sub beginMulticoreBatchRenderInteface Lib "C:\Users\FromTheFuture\Documents\Visual Studio 2008\projects\SpecialK\Debug\MultithreadedMayaBatch.dll" (ByVal objPtr As Int64)



Is the .pdb file reachable? - Just checked, the file MultithreadedMayaBatch.pdb is in the same directory my DLL of the same name (that is the Debug directory of my project).

Share this post


Link to post
Share on other sites
I actually solved this particular problem using a work around- I copied the entire method that im calling from dll to a console program and put in dummy variables to imitate the calling program. It turns out one of my wstrings was throwing an exception. That worked, but if anyone knows why the original debuggign wasn't working?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!