im trying to do an Atl Service in VS2008. I use the Atl Project Wizard and select Service (EXE). Then I add one AtlSimple Object. Compile & Register via /RegServer
From a client application I can CoCreate the AtlObject inside my .exe.
As soon as I register my service with cmd option -Service, I can no longer CoCreate the AtlObject. Any call to CoCreateInstance will run into a timeout and fail with 0x80080005 - "Server execution failed".
What am I doing wrong? Any ideas?
See attached my test project.
run AtlServerIII -Service
==>timout & error in CoCreateInstance
The only difference between -RegServer and -Service Options is that the Service adittionally calls CAtlServiceModuleT::Install() and uses ServiceManager to install the service... and... messes up my ATL Objects.
If I use sc.exe to install my service by Hand (instead of -Service option) everything will work... So *** is wrong with the ATL implementation??