c++ - Calling CoCreateInstance during service startup -


I have a service of windows, which makes many COM + calls during the initial

At least one service or driver fails during system startup.

The problem in calling CoCreateInstance during the service startup may require other services to startup it and SCM in the state running To start waiting for the existing service, to start other services. Person will not. This solution is to ensure that service dependency is properly configured when the service is installed.

>

Another solution is to provide your COM objects with your The service does not have to start during startup logic. Startup logic creates a separate worker thread or at least one delayed / queued request itself, so the SC prefix can be started after the other services are started according to the requirement.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -