|
-
January 6th, 2010, 06:59 AM
#1
COM Service Startup issues on startup
hello,
i am working on the application where i have developed COM logger service for centralized logging. i register the COM Server (Out of process ) as service
so that when a application 1 ( Service ) and application 2 ( desktop app ) logs there will be one single instance of COM logger. this all works well,
however i recently discovered that on reboot. when i login into system. my application 1( service ) takes a long time to run. i debugged it and then with some tracing i came to know that since my service needs logging. on startup it tires to create the logger object through
CoCreateInstance()
HRESULT hr = ::CoCreateInstance( __uuidof(LoggerFactory), NULL, CLSCTX_LOCAL_SERVER,
__uuidof(ILoggerFactory), (void **)&pLoggerFacTry );
this calls takes a long time to start about 2 minutes.
does any body have idea how to fix this problem.
regards
Deepak
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
|