Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stuck as a process after shutdown
Message
From
09/04/2002 12:19:34
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Stuck as a process after shutdown
Miscellaneous
Thread ID:
00642744
Message ID:
00642744
Views:
28
Running an EXE on Win2K SP2 built wih VFP7 SP1.

The main program starts a LOGIN form which is removed after a successful login, displaying the "main" form.

LOGIN form has:
.AlwaysOnTop = T
.AutoCenter = T
.ShowInTaskBar = T
.ShowWindow = 2, as top level form
.WindowType = 0, modeless
and Application.Visible is set to F in its init()

The "main" form is actually a set of 2 forms:
The 'mother' form has:
.AlwaysOnTop = F
.AutoCenter = F
.ShowInTaskBar = T
.ShowWindow = 2, as top level form
.WindowType = 0, modeless
and Application.Visible is set to F in its init(). It also starts its 'child' form.

The "child" form has:
.AlwaysOnTop = F
.AutoCenter = F
.Closeable = F
.ShowInTaskBar = T
.ShowWindow = 2, as top level form
.WindowType = 0, modeless

The 'main' form has a button that starts a "Finder" form when clicked.
The "finder" form has:
.AlwaysOnTop = F
.AutoCenter = T
.Closeable = T
.ShowInTaskBar = F
.ShowWindow = 1, in top level form
.WindowType = 1, modal
and in some cases a specification on that form can cause a BROWSE window to be displayed IN WINDOW 'main' (the main window described above).

The 'main' form also has a button that starts a "TypeChange" form when clicked.
The "typechange" form has:
.AlwaysOnTop = F
.AutoCenter = T
.Closeable = T
.ShowInTaskBar = F
.ShowWindow = 1, in top level form
.WindowType = 1, modal

Whenever I test this as an EXE it leaves itself active as a "process", discoverable by the fact that a new EXE cannot be built because of a sharing violation. Once I manually stop the process I can build the EXE again.

The question: What do I have to do to make the thing STOP rather than 'continuing' as a "process"?

LATE-BREAKING NEWS: I have just found that commenting the Application.Visible = .F. lets it terminate cleanly (not continuing as a proess).

Question revised: How can I have an application run on the OS desktop (not the VFP desktop) yet have it terminate cleanly?

thanks in advance
Jim Nelson
Next
Reply
Map
View

Click here to load this message in the networking platform