Link to home
Start Free TrialLog in
Avatar of kf4oij
kf4oij

asked on

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
Avatar of cup
cup

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.
Avatar of kf4oij

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of cup
cup

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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 (https://www.experts-exchange.com/help.jsp#hi73).

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

-bcl (bcladd)
EE Cleanup Volunteer