|
-
May 10th, 1999, 05:36 PM
#1
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
-
May 11th, 1999, 10:11 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|