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

    Calling Release() in NT Service Destructor

    Does anyone have an insight into the following? VC++ 6.0, NT 4.0 using ATL

    1) I'm using DCOM and have an NT service using ATL.
    2) The service uses various in process COM dlls
    3) When the service is stopped, the destructor calls ->Release on each object.
    4) The first call to any ->Release() causes an exception.

    If I call release via a method call prior to stopping, all is copaceptic.

    Is there a restriction regarding calling release when a service stops? Does ATL call CoUninitialize first?

    Thkx


  2. #2
    Guest

    Re: Calling Release() in NT Service Destructor

    John Robbins has shown the implementation of a NT service with a ATL-based COM-object in the Microsoft System Journal 12/97. Perhaps this sample helps you.

    http://msdn.microsoft.com/library/pe...slayer1212.htm

    D.Gollwitzer



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