Board index » delphi » Software keeps win2000 from shutting down!

Software keeps win2000 from shutting down!

If my app (http://come.to/mikiu) is running, Windows2000 PRO won't shut
down! Like it just cancels the Shutdown request.
Only if I Exit the program and then Shutdown everything goes normal. The app
is written in D4C/S

Anyone?

Rik

 

Re:Software keeps win2000 from shutting down!


Quote
> If my app (http://come.to/mikiu) is running, Windows2000 PRO won't shut
> down! Like it just cancels the Shutdown request.
> Only if I Exit the program and then Shutdown everything goes normal. The
app
> is written in D4C/S

Perhaps you put some code in one of the forms' OnClose or OnCloseQuery event
handlers, and this prevents your app from closing, or you capture the
WM_QUERYENDSESSION message  somewhere in your program.

--
Christo Crause
Institute for Thermal Separations Technology
Dept. Chem. Eng.
University of Stellenbosch
South Africa

http://www.sun.ac.za/its/

Re:Software keeps win2000 from shutting down!


Christo Crause <ccra...@ing.sun.ac.za> schreef in berichtnieuws
85clkb$ri...@news.adamastor.ac.za...

Quote
> > If my app (http://come.to/mikiu) is running, Windows2000 PRO won't shut
> > down! Like it just cancels the Shutdown request.
> > Only if I Exit the program and then Shutdown everything goes normal. The
> app
> > is written in D4C/S

> Perhaps you put some code in one of the forms' OnClose or OnCloseQuery
event
> handlers, and this prevents your app from closing, or you capture the
> WM_QUERYENDSESSION message  somewhere in your program.

Well that's the crazy part: In Windows98SE sverthing goes fine. I had never
had such problems until I installed Win2000.
Any more ideas?

Rik

Re:Software keeps win2000 from shutting down!


Quote
"Rik." <ruse...@bigfoot.com> wrote in message

news:MZpe4.3799$E6.422203@news1.dbsch1.nb.nl.home.com...
Quote

> Christo Crause <ccra...@ing.sun.ac.za> schreef in berichtnieuws
> 85clkb$ri...@news.adamastor.ac.za...
> > > If my app (http://come.to/mikiu) is running, Windows2000 PRO won't
shut
> > > down! Like it just cancels the Shutdown request.
> > > Only if I Exit the program and then Shutdown everything goes normal.
The
> > app
> > > is written in D4C/S

> > Perhaps you put some code in one of the forms' OnClose or OnCloseQuery
> event
> > handlers, and this prevents your app from closing, or you capture the
> > WM_QUERYENDSESSION message  somewhere in your program.

> Well that's the crazy part: In Windows98SE sverthing goes fine. I had
never
> had such problems until I installed Win2000.
> Any more ideas?

> Rik

Windows NT (and as such Windows 2000, built on NT technology (as the full
name says)) is not as brutish in killing applications as Windows98 is. Does
the application shutdown automatically before the shutdown of Windows2000
fails, or is it the last thing remaining? If so, you can be pretty certain
it really is your app doing it.
Maybe you are using multithreading and a threat is running at a too-high
priority, preventing NT/W2K from sending it a termination message?

Re:Software keeps win2000 from shutting down!


J.T. Wenting <jwent...@bigfoot.com> schreef in berichtnieuws
947532142.29921.0.pluto.d4ee2...@news.demon.nl...

Quote

> "Rik." <ruse...@bigfoot.com> wrote in message
> news:MZpe4.3799$E6.422203@news1.dbsch1.nb.nl.home.com...

> > Christo Crause <ccra...@ing.sun.ac.za> schreef in berichtnieuws
> > 85clkb$ri...@news.adamastor.ac.za...
> > > > If my app (http://come.to/mikiu) is running, Windows2000 PRO won't
> shut
> > > > down! Like it just cancels the Shutdown request.
> > > > Only if I Exit the program and then Shutdown everything goes normal.
> The
> > > app
> > > > is written in D4C/S

> > > Perhaps you put some code in one of the forms' OnClose or OnCloseQuery
> > event
> > > handlers, and this prevents your app from closing, or you capture the
> > > WM_QUERYENDSESSION message  somewhere in your program.

> > Well that's the crazy part: In Windows98SE sverthing goes fine. I had
> never
> > had such problems until I installed Win2000.
> > Any more ideas?

> > Rik

> Windows NT (and as such Windows 2000, built on NT technology (as the full
> name says)) is not as brutish in killing applications as Windows98 is.
Does
> the application shutdown automatically before the shutdown of Windows2000
> fails, or is it the last thing remaining? If so, you can be pretty certain
> it really is your app doing it.
> Maybe you are using multithreading and a threat is running at a too-high
> priority, preventing NT/W2K from sending it a termination message?

Hi, the app just sits in the tray doing nothing but having a timer
triggering each 5 seconds checking the mail and stuff.
When I shutdown Windows2k just does nothing: no apps are being shutdown at
all.
No multithreating as far as I know :-)

Rik

Other Threads