I have a VFP8 application that runs just as an icon in system tray. If the
user picks the menu choice to shutdown program they can shutdown windows ok.
But if the program is left running shutting down windows goes a little
weird.

After you press start then select shutdown, programs start shutting
including this vfp8 app. No errors display but windows doesn't close.
Checking task manager shows the vfp8 app isn't running any more. Press
start then select shutdown a 2nd time and windows shuts down.

I've trimmed down the on shutdown code to just on shutdown and clear events.


Any suggestions?


LH

Re: Can't shutdown by Stefan

Stefan
Thu Dec 01 00:38:48 CST 2005


"lh" <lh@nowhere.com> schrieb im Newsbeitrag
news:8Zvjf.1091$WM.30583@nasal.pacific.net.au...
>I have a VFP8 application that runs just as an icon in system tray. If the user picks
>the menu choice to shutdown program they can shutdown windows ok. But if the program is
>left running shutting down windows goes a little weird.
>
> After you press start then select shutdown, programs start shutting including this vfp8
> app. No errors display but windows doesn't close. Checking task manager shows the vfp8
> app isn't running any more. Press start then select shutdown a 2nd time and windows
> shuts down.
>
> I've trimmed down the on shutdown code to just on shutdown and clear events.

I'd try "On Shutdown Quit" (and move any cleanup
code to the objects.Destroy() methods).


hth
-Stefan



--
|\_/| ------ ProLib - programmers liberty -----------------
(.. ) Our MVPs and MCPs make the Fox run....
- / See us at www.prolib.de or www.AFPages.de
-----------------------------------------------------------



Re: Can't shutdown by Jeroen

Jeroen
Fri Dec 02 19:15:53 CST 2005

On Thu, 1 Dec 2005 15:36:08 +1000, "lh" <lh@nowhere.com> wrote:

Add the QUIT command to the shutdown routine. If you dont QUIT in the
shutdown procedure, windows 'thinks' that you want to abort the
shutdown procedure and stops shutting down... (even if you program has
already ended from your main event loop)

>I have a VFP8 application that runs just as an icon in system tray. If the
>user picks the menu choice to shutdown program they can shutdown windows ok.
>But if the program is left running shutting down windows goes a little
>weird.
>
>After you press start then select shutdown, programs start shutting
>including this vfp8 app. No errors display but windows doesn't close.
>Checking task manager shows the vfp8 app isn't running any more. Press
>start then select shutdown a 2nd time and windows shuts down.
>
>I've trimmed down the on shutdown code to just on shutdown and clear events.
>
>
>Any suggestions?
>
>
>LH
>


Re: Can't shutdown by lh

lh
Tue Dec 06 18:01:41 CST 2005

thanks fellas, quit worked ok.


"Jeroen van Kalken" <I@dont.like.spam> wrote in message
news:o9s1p1l91n4ictc1bmb1nqr6u6nr6807io@4ax.com...
> On Thu, 1 Dec 2005 15:36:08 +1000, "lh" <lh@nowhere.com> wrote:
>
> Add the QUIT command to the shutdown routine. If you dont QUIT in the
> shutdown procedure, windows 'thinks' that you want to abort the
> shutdown procedure and stops shutting down... (even if you program has
> already ended from your main event loop)
>
>>I have a VFP8 application that runs just as an icon in system tray. If
>>the
>>user picks the menu choice to shutdown program they can shutdown windows
>>ok.
>>But if the program is left running shutting down windows goes a little
>>weird.
>>
>>After you press start then select shutdown, programs start shutting
>>including this vfp8 app. No errors display but windows doesn't close.
>>Checking task manager shows the vfp8 app isn't running any more. Press
>>start then select shutdown a 2nd time and windows shuts down.
>>
>>I've trimmed down the on shutdown code to just on shutdown and clear
>>events.
>>
>>
>>Any suggestions?
>>
>>
>>LH
>>
>