PC Review


Reply
Thread Tools Rate Thread

C# Windows Service Question...

 
 
Shawn Buchanan-Cook
Guest
Posts: n/a
 
      2nd Oct 2004
Hello,

I have created a windows service that executes a application (that has a
user interface), and therefore I have the "Allow service to interact with
desktop" checked...

I have found that because of the "Allow service to interact with desktop"
flag being turned on, I can not restart/reboot my system....

I do have the CanShutdown flag in my service set to "true"...

I have noticed that if I turn off the "allow service to interact with
desktop" flag, I am able to restart/reboot my system.... but, I need this
flag turned on...

Can anyone help my with this problem?

Thank you


 
Reply With Quote
 
 
 
 
Shawn Buchanan-Cook
Guest
Posts: n/a
 
      3rd Oct 2004
Hello all,
I figured out my problem...
It was because the process that I was launching from my service had a
winform which I did an override of the close to minimize to the system tray
instead of close out. I found that if all the applications do not close on
your desktop, the operating system will not shutdown... problem resolved...

"Shawn Buchanan-Cook" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> I have created a windows service that executes a application (that has a
> user interface), and therefore I have the "Allow service to interact with
> desktop" checked...
>
> I have found that because of the "Allow service to interact with desktop"
> flag being turned on, I can not restart/reboot my system....
>
> I do have the CanShutdown flag in my service set to "true"...
>
> I have noticed that if I turn off the "allow service to interact with
> desktop" flag, I am able to restart/reboot my system.... but, I need this
> flag turned on...
>
> Can anyone help my with this problem?
>
> Thank you
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
A windows service question =?Utf-8?B?R29yZG9u?= Microsoft VB .NET 4 18th Aug 2006 10:01 PM
Windows Service Question =?Utf-8?B?VG9t?= Microsoft C# .NET 5 20th Jun 2006 09:00 PM
windows service question =?Utf-8?B?cm9kY2hhcg==?= Microsoft VB .NET 0 2nd Feb 2006 07:21 PM
Windows Service question Matthew Young Microsoft VB .NET 1 4th Jun 2004 09:42 PM
.NET Windows Service and Service Manager question. SAVAGE Microsoft VB .NET 0 21st Dec 2003 01:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:37 PM.