Service hangs when accessing ActiveX control



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.
.



Relevant Pages

  • Re: MSVidCtl stability?
    ... > I'd suspect the capture driver more than I'd suspect the control. ... try running their TV app along with my ActiveX control in a different ... window - but if it hangs, I'm not sure I've proven anything, other than it ...
    (microsoft.public.win32.programmer.directx.video)
  • Word activeX control doesnt work on Win-XP/SP2
    ... Our Word activeX control works perfectly on Win-XP/SP1; ... it hangs all the time. ... We tried multiple machines, ... Our ActiveX control is for word/XML conversion - basically downloading ...
    (microsoft.public.vb.controls)
  • Word activeX control doesnt work on Win-XP/SP2
    ... Our Word activeX control works perfectly on Win-XP/SP1; ... it hangs all the time. ... We tried multiple machines, ... Our ActiveX control is for word/XML conversion - basically downloading ...
    (microsoft.public.windows.file_system)
  • Word activeX control doesnt work on Win-XP/SP2
    ... Our Word activeX control works perfectly on Win-XP/SP1; ... it hangs all the time. ... We tried multiple machines, ... Our ActiveX control is for word/XML conversion - basically downloading ...
    (microsoft.public.windowsxp.security_admin)
  • Word activeX control doesnt work on Win-XP/SP2
    ... Our Word activeX control works perfectly on Win-XP/SP1; ... it hangs all the time. ... We tried multiple machines, ... Our ActiveX control is for word/XML conversion - basically downloading ...
    (microsoft.public.vb.general.discussion)