Service hangs when accessing ActiveX control
- From: Lucvdv <replace_name@xxxxxxxx>
- Date: Tue, 13 Sep 2005 16:57:01 +0200
Is there something that has to be taken special care of when using an
ActiveX control in a .Net service application?
I'm creating a VB.Net service app that uses an ActiveX control on a hidden
form.
When I start the program as a normal application, it works.
When I try to start it as a service, it hangs when the first method of the
AxtiveX is called (the method never returns).
The ActiveX itself was written in VC++6/MFC. At this point (the method
that hangs), it does nothing but accept a piece of data and store it in a
CMap class.
The .Net service app is installed with SERVICE_WIN32_OWN_PROCESS and
SERVICE_INTERACTIVE_PROCESS flags so I should see error popups if there are
any, and all unhandled exceptions are caught and written to the event log,
but nothing shows up either way.
Trying to attach the debugger to the running service gives "access denied",
so that way I can't find it either.
To find the exact line where it hangs, I had to write progress messages to
the event log before every line of VB source.
.
- Follow-Ups:
- Re: Service hangs when accessing ActiveX control
- From: Lucvdv
- Re: Service hangs when accessing ActiveX control
- From: Robert Jordan
- Re: Service hangs when accessing ActiveX control
- Prev by Date: SendInput
- Next by Date: Re: Service hangs when accessing ActiveX control
- Previous by thread: SendInput
- Next by thread: Re: Service hangs when accessing ActiveX control
- Index(es):
Relevant Pages
|