Exception Handling

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Exception Handling

      Hiya,

      I'm having some trouble with the mini-dump code from the book. What I've done is moved the Handler function out of the class, and into a single function. The problem is that when I call SetUnhandledExceptionFilter from a DLL entry-function (DllMain), the handler doesn't seem to be called if an unhandled exception occurs. When I call it from an exe, it works fine. Does anyone know why this may be?

      Many thanks for any help.
      James
    • RE: Exception Handling

      Hrm - it sounds like it should work - are you sure you are giving the SetUnhandledExceptionFilter API the right parameters?
      Mr.Mike
      Author, Programmer, Brewer, Patriot