467,915 Members | 1,560 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,915 developers. It's quick & easy.

WindowsFormsParkingWindow problem - please help...

Hi

I am developping an application, and it runs fine... It is a monitor utilitie and runs on the background... When I close the application for example with Form1.Close() it shuts down succesfully

But when windows tries to shut it down (by logging off or by shutting down your computer), an end task window pops up for WindowsFormsParkingWindow (twice). My application is forcebly shut down when I shut down this process. When I cancel the closing of this form I see my svhost.exe spike up to 100%. What is going on, and what can I do to fix this

Is there a possibility to somehow capture the "closing message" that windows sends, so that I can close it manually myself (this maybee avoiding the problem?)

I also noticed that when windows wants to close the window, none of my code in Form_closing() is executed

I anyone can help please... (I can send the whole project to you if needed

Jul 21 '05 #1
  • viewed: 2014
Share:
2 Replies
Override the WndProc method and look for the WM_QUERYENDSESSION message.

http://msdn.microsoft.com/library/de...ndingtopic.asp
"Kevin Chabot" <an*******@discussions.microsoft.com> wrote in message
news:C8**********************************@microsof t.com...
Hi,

I am developping an application, and it runs fine... It is a monitor utilitie and runs on the background... When I close the application for
example with Form1.Close() it shuts down succesfully.
But when windows tries to shut it down (by logging off or by shutting down your computer), an end task window pops up for WindowsFormsParkingWindow
(twice). My application is forcebly shut down when I shut down this process.
When I cancel the closing of this form I see my svhost.exe spike up to 100%.
What is going on, and what can I do to fix this?
Is there a possibility to somehow capture the "closing message" that windows sends, so that I can close it manually myself (this maybee avoiding
the problem?).
I also noticed that when windows wants to close the window, none of my code in Form_closing() is executed.
I anyone can help please... (I can send the whole project to you if needed)

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.691 / Virus Database: 452 - Release Date: 26/05/2004
Jul 21 '05 #2
Thank you very much :)
Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Brentonn | last post: by
reply views Thread by spam | last post: by
23 posts views Thread by Jason | last post: by
reply views Thread by Brian Scott | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.