Click to See Complete Forum and Search --> : Vista Service question...


fxRichard
February 14th, 2009, 09:17 AM
...I have done some C++ in the past but am mostly a Java developer. I have written a C++ service wrapper to integrate my Java code as a windows service via JNI. The problem I am facing is things work perfect on an XP system but on Vista the service doesn't seem to be responsive. It installs fine, starts fine etc but even if I throw in a some code to write to a file when it is first started doesn't work. I have turned off the UAC to eliminate that problem for the time being. The service is setup under the Local System account and created witth SERVICE_ALL_ACCESS, SERVICE_WIN32_OWN_PROCESS, and SERVICE_AUTO_START. If I run the service from the command line in Vista and add one line of code to go straight to the processing the program runs fine and does what it is supposed to, it is just when it is run as a service on Vista it is not performing. Any idea's?

Igor Vartanov
February 15th, 2009, 03:27 PM
The idea is... to find out what's going wrong. I believe, as long as this is your service app, you would do some logging of service run. Maybe you will share your findings with the community. ;)

sanx72
February 17th, 2009, 06:00 AM
Have you tried this product? More suited to java apps...

http://wrapper.tanukisoftware.org/doc/english/introduction.html