ATL Service with COM Object called by ISAPI Extension 
Author Message
 ATL Service with COM Object called by ISAPI Extension

I hope someone has experienced this.  I have used the ATL
Wizard to create a service.  I have also added an ATL COM
object within the service.  The hope is that I can start
the service, initialize a global object and provide access
to that global object through a COM object.

I have done this successfully before, but now I am having
problems.  The issues is that every time a client
instantiates the COM object, the GetMessage loop of the
service receives a WM_QUIT, which exits the loop and
terminates the service.  This happens both when I use a VB
client or an ISAPI client.

Does anyone know why this is happening?



Wed, 18 Aug 2004 01:34:54 GMT  
 ATL Service with COM Object called by ISAPI Extension
Hi Tom,


Quote:
> I hope someone has experienced this.  I have used the ATL
> Wizard to create a service.  I have also added an ATL COM
> object within the service.  The hope is that I can start
> the service, initialize a global object and provide access
> to that global object through a COM object.

> I have done this successfully before, but now I am having
> problems.  The issues is that every time a client
> instantiates the COM object, the GetMessage loop of the
> service receives a WM_QUIT, which exits the loop and
> terminates the service.  This happens both when I use a VB
> client or an ISAPI client.

> Does anyone know why this is happening?

Search for PostMessage or PostThreadMessage of WM_QUIT in your service
implementation files. Maybe you terminate yourself somehow when a COM call
comes in. Attach the de{*filter*} to the service and put a breakpoints on those
PostMessage/PostThreadMessage calls.

How do you call CoRegisterClassObject?

bye,
Sven



Wed, 18 Aug 2004 02:13:05 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. use COM Object From ISAPI Extension Dll

2. Problem debugging VB COM object from a ATL-Service

3. Instantiating com object in atl service

4. ATL Service instantiating a VB com object

5. passing COM object pointers to another COM object in ATL

6. Debugging ATL COM objects called from asp pages

7. ATL COM object hangs on user32.dll MessageBoxA() call

8. ATL COM object hangs on user32.dll MessageBoxA() call

9. ATL COM - Passing ATL COM classes through another ATL COM class in the same app

10. ATL Server ISAPI Extension

11. Cannot start service ATL COM Service

12. ISAPI Extension using COM methods

 

 
Powered by phpBB® Forum Software