PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Framework Forms WinForm App seems to prevent logoff and shutdown

Reply

WinForm App seems to prevent logoff and shutdown

 
Thread Tools Rate Thread
Old 04-01-2007, 06:20 PM   #1
Chris Newby
Guest
 
Posts: n/a
Default WinForm App seems to prevent logoff and shutdown


I wrote a small winform app that is designed to launch at startup and be
accessed via a system tray icon (notify icon). The application is fairly
small and simple ... it connects to a database and moves files around the
local network.

Running on Windows XP, if my app is running and I choose either shutdown,
restart, or logoff Windows doesn't appear to be doing anything. If I close
my application and then choose shutdown, restart, or logoff everything works
as normal.

I haven't a clue what to look at or what might be going wrong ... so any
help is apreciated.

TIA//


  Reply With Quote
Old 04-01-2007, 11:27 PM   #2
Lloyd Dupont
Guest
 
Posts: n/a
Default Re: WinForm App seems to prevent logoff and shutdown

It looks like your application doesn't want to quit.
We need more info to be able to give some tips...

"Chris Newby" <Chris.Newby@Rockcreekglobal.com> wrote in message
news:%23zZoszCMHHA.1008@TK2MSFTNGP06.phx.gbl...
>I wrote a small winform app that is designed to launch at startup and be
>accessed via a system tray icon (notify icon). The application is fairly
>small and simple ... it connects to a database and moves files around the
>local network.
>
> Running on Windows XP, if my app is running and I choose either shutdown,
> restart, or logoff Windows doesn't appear to be doing anything. If I close
> my application and then choose shutdown, restart, or logoff everything
> works as normal.
>
> I haven't a clue what to look at or what might be going wrong ... so any
> help is apreciated.
>
> TIA//
>



  Reply With Quote
Old 05-01-2007, 10:39 AM   #3
=?Utf-8?B?Q2lhcmFuIE8nJycnRG9ubmVsbA==?=
Guest
 
Posts: n/a
Default Re: WinForm App seems to prevent logoff and shutdown

Does you application use app domains as when they are asked to close and
dont, they are given 40 seconds to shutdown or be terminated. Maybe they
arent closing thats delay the shutdown rather than preventing it.


--
Ciaran O''''Donnell
http://wannabedeveloper.spaces.live.com


"Lloyd Dupont" wrote:

> It looks like your application doesn't want to quit.
> We need more info to be able to give some tips...
>
> "Chris Newby" <Chris.Newby@Rockcreekglobal.com> wrote in message
> news:%23zZoszCMHHA.1008@TK2MSFTNGP06.phx.gbl...
> >I wrote a small winform app that is designed to launch at startup and be
> >accessed via a system tray icon (notify icon). The application is fairly
> >small and simple ... it connects to a database and moves files around the
> >local network.
> >
> > Running on Windows XP, if my app is running and I choose either shutdown,
> > restart, or logoff Windows doesn't appear to be doing anything. If I close
> > my application and then choose shutdown, restart, or logoff everything
> > works as normal.
> >
> > I haven't a clue what to look at or what might be going wrong ... so any
> > help is apreciated.
> >
> > TIA//
> >

>
>
>

  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off