CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2004
    Location
    Slough, UK
    Posts
    184

    [2005] COM (Domino Objects) Crashing Application when Uncaught Exception Encountered

    I know uncaught exceptions are meant to crash the application. However, when I run the application in debug mode an uncaught exception causes the application to crash.

    I am using the Lotus Notes Domino objects COM. I have concluded that during normal operation the API can perform an normal clean-up and termination of the objects but and exception causes prevents this from happening.

    Is there any way of manually releasing and disposing of a COM object? Has anyone else used the Domino API before?

    This is really annoying me because I cannot see the exception details. Instead I just get the standard "do you want to send an error report dialog box". This makes the application an absolute pain to debug during development.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || ClickOnline ||

    Did I ever say I was an expert?

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Please mark threads resolved by going to the thread tools menu and clicking the Mark Thread Resolved button.

    Has a post really helped you? Please Rate it.

  2. #2
    Join Date
    Feb 2000
    Location
    OH - USA
    Posts
    1,892

    Arrow Re: [2005] COM (Domino Objects) Crashing Application when Uncaught Exception Encountered

    Did you try using structured error handling to encompass all of the COM calls? It's possible that it is raising an error; you're just not handling it. Or maybe the COM object has an error handling delegate or something.

    If you did try that, then it means the error is not being raised to the calling assembly... so there is little you can do to correct the situation.

    You can release most objects by calling .Dispose() or setting all references to =nothing.
    http://msdn2.microsoft.com/en-us/lib...k6(VS.71).aspx
    Good Luck,
    Craig - CRG IT Solutions - Microsoft Gold Partner

    -My posts after 08/2015 = .NET 4.x and Visual Studio 2015
    -My posts after 11/2011 = .NET 4.x and Visual Studio 2012
    -My posts after 02/2010 = .NET 4.0 and Visual Studio 2010
    -My posts after 12/2007 = .NET 3.5 and Visual Studio 2008
    -My posts after 04/2007 = .NET 3.0 and Visual Studio 2005
    -My posts before 04/2007 = .NET 1.1/2.0

    *I do not follow all threads, so if you have a secondary question, message me.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured