View previous topic :: View next topic |
Author |
Message |
CodeScript Moderator Team
Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Sat Aug 30, 2003 2:56 pm Post subject: VDS GUI app fails to run as NT service |
|
|
VDS GUI app fails to run as NT service
I tried to run vds app as a NT service using a third pary utilty XYNT service.exe.
Non GUI apps run :
http://codescript.vdsworld.com/VDS5src/VDSServiceProject.zip
But all vds GUI apps starting from VDS v2 to v5 fail - they get killed at logoff.
I have seen even a error dialog popping up with vds 5 GUI exe sometimes although it is hard to decipher what it is because by then logoff screen covers up.
All VB/C++ GUI apps run fine without any problems (though initially I thought they wont).
Dialog Create command proves fatal to the app.
May be some small bug. Is it possible to overcome that ??
Regards _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
Back to top |
|
|
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Sat Aug 30, 2003 7:30 pm Post subject: |
|
|
I'd suggest running the GUI as a second process... Basically, your service
runs with no dialog create, but when you need the gui, run your exe again
passing whatever variables to it, but the first variable is one that lets
your exe know that it is to run the GUI at this time.
This won't interfere with the service since you have run your own exe a
second time. And when you are done with the GUI, it's closed, and the
first instance of your exe is still there, still running.
-Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
Back to top |
|
|
CodeScript Moderator Team
Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Sun Aug 31, 2003 6:48 am Post subject: |
|
|
Garrett thanks for your help.
I donot need to run a service for myself it is just to help others. Running a second GUI application by a non-GUI vds service app is one solution. One can give it administrative or other privileges by impersonation API's if needed.
I was wondering if this problem can be overcome because I thought many times it is some small block of code which is incompatible for running a GUI as a service. _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
Back to top |
|
|
|