forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


VDS GUI app fails to run as NT service

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Advanced Bug Reports
View previous topic :: View next topic  
Author Message
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Sat Aug 30, 2003 2:56 pm    Post subject: VDS GUI app fails to run as NT service Reply with quote

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
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Sat Aug 30, 2003 7:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Sun Aug 31, 2003 6:48 am    Post subject: Reply with quote

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
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Advanced Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group