CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 1998
    Posts
    2

    A "clean" program crash?

    I have several programs that use Excel and/or
    Access objects fairly heavily. When a program
    crashes for whatever reason, these objects are
    left open (usually invisible).
    Is there a secret to closing these objects when
    a program crashes?


  2. #2
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: A "clean" program crash?

    Hi,

    I can give you a "touch your nose by taking your hand around your head" method!:-)
    (Translated literally from my mother tongue, an Indian language)

    Wrap all your Excel & Access objects in Activex server classes and let your program talk with these (created by you) server objects.

    This way you are introducing another layer. You can deligate a little bit of processing into them also, there by achieving "distributedness" in your design!. Desing them to start and end neatly.

    If your (client) program crashes for some reason, these server objects will be deleted automatically, i.e when the last client program exists - so OS will do it for you (supposedly).
    They call these as "extender classes" i think!.

    Like somebody in another posting said, "it is only an idea, dont take it to bank" :-)
    Ravi Kiran


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