VS2015 and C++ Service fail to auto-start -
i facing strange issue vs2015. when compiling service (i had issue own code base, able reproduce on basic service sample msdn https://code.msdn.microsoft.com/windowsapps/cppwindowsservice-cacf4948), service fail auto-start on fresh install of windows 10.
here’s repro steps of problem:
- take basic c++ service code (we took 1 msdn) , compile visual studio 2015
- install on fresh install of windows 10 automatic startup
- do cold reboot
result : service won’t start, automatic delayed set.
now funny part… there several work-around issue:
- if manually start service before cold reboot, fine
- if restart (not reboot) machine after cold reboot, service start
- on machines (not fresh windows 10 install, problem not happen)
- build service vs2013 won't cause issue.
because need use vs2015 (my service should using windows 10 sdk), know if there solution or if bug vs2015.
thanks
js
Comments
Post a Comment