Thread: How do I catch an exception thrown from a linked DLL?

  1. #1
    Registered User
    Join Date
    Nov 2006
    Posts
    184

    How do I catch an exception thrown from a linked DLL?

    I'm using a DLL's methods/code from my own DLL (they were compiled with the same compiler). The other DLL throws an exception but I'm unable to catch it. How do I do this?

  2. #2
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    You mean an exception such as ACCESS_VIOLATION from the operating system or something like an stl std::bad_alloc?

  3. #3
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Where the exception was thrown?
    By Mortissus in forum C++ Programming
    Replies: 2
    Last Post: 07-10-2007, 12:53 PM
  2. how do I catch exception in c?
    By beon in forum C Programming
    Replies: 10
    Last Post: 11-21-2006, 07:45 AM
  3. Error C2664 - Trying to call an external Dll
    By jamez05 in forum C++ Programming
    Replies: 3
    Last Post: 08-08-2006, 06:07 AM
  4. dll communicating between each other
    By cloudy in forum C++ Programming
    Replies: 5
    Last Post: 06-17-2005, 02:20 AM
  5. exception handling and linked lists
    By s0ul2squeeze in forum C++ Programming
    Replies: 0
    Last Post: 04-08-2002, 02:39 AM