• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 187
  • Last Modified:

Cathing (and viewing) the uncaught exception.

Hey,

    I am working on a DLL to integrate with a server written by a partner company.  And I am running into some trouble.  Anyways,  somewhere in my code, an exception is being thrown (but only when it is run in a multi-threaded environment) I have set up a try{}catch(...){} block to catch the exception, but I am getting nowhere and REALY want to see what the exception that is being thrown is.  Is there a way to get the exception?

    Thanks,

         Joey
0
kf4oij
Asked:
kf4oij
  • 2
1 Solution
 
cupCommented:
At a guess, you're using a Windows system.  What compiler are you using?  On Visual C++, you could invoke the debugger in the catch with 'DebugBreak();' or '__asm { int 3};

If you are using Solaris, you can stop on the throw instructions.  There is something very similar on the HPUX debugger.
0
 
kf4oijAuthor Commented:
Hey,

     Yeah, Windows with Visual C++ 6.  That is part of the problem.  The Exception is only thrown when used in the client app (which I don't have source for)  or is there some way, I can run the client app,  with the DLL in the debugger?

          Joey
0
 
cupCommented:
When your system throws an exception, doesn't it ask you whether you wish to debug or not?  I thought that if you installed VC, it would normally ask you, unless it is some setting that I've switched on by mistake and was totally unaware of.  It normally pops up a dialog box and if you say you wish to debug, it launches the debugger.
0
 
bcladdCommented:
No comment has been added lately, so it's time to clean up this TA. I will
leave a recommendation in the Cleanup topic area that this question is:

Answered: Points to cup: Grade A

Please leave any comments here within the next seven days.

Experts: Silence means you don't care. Grading recommendations are made in light
of the posted grading guidlines (http://www.experts-exchange.com/help.jsp#hi73).

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

-bcl (bcladd)
EE Cleanup Volunteer
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now