Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
This can't be impossible to do
Message
De
30/03/2002 13:50:21
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
This can't be impossible to do
Divers
Thread ID:
00639169
Message ID:
00639169
Vues:
44
Hi All.

I have been trying to implement an auto shutdown sequence to close my app. on any workstations that is running when maintenance is required. I have already implemented a message to each, and each workstaion responds by closing down properly as long as there is not an active modal screen, messagebox, or browse.

When this happens the on shutdown procedure hangs and will not close the app. I thought my on shutdown procedure was working properly until I hit this wall.

I know it is hanging on _Screen.forms(1).release but only when a modal screen, messagebox or browse is on screen. There seems to be a dangling reference or something preventing release. I can't find a way to programatically close these from on shutdown.

I have been working on this problem for a couple of days now, trying everything I can think of. What am I doing wrong?

This is my on shutdown procedure.
procedure onshutdown
	clear events
	if _screen.formcount > 0
		for m.xx = 1 to _screen.formcount
		do while _screen.formcount > 0
	
			_Screen.forms(1).release
		
		enddo
	endif
	release all extended
	clear all
	flush
	on shutdown
    quit
TIA
Elmer
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform