Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C5 Error Removing Object From a Container
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00201088
Message ID:
00201122
Vues:
13
Hi Rich,

>This Method then created another Form object which then had a push button on it to call the Original Objects Parent's RemoveObject() Method.

Is this a modal form?

>It does not seem to me that there should be anything left in the calling stack unless that first call to ShowMenu() from the object itself is still part of the calling stack.

You can easily verify this by checking PROGRAM() or looking at the Call STack window in the Debugger right before the RemoveObject() line

>If it is do you have any ideas as to where I should call it from.

In such situations I often use a timer with an interval of 1 ms. The function returns and then the timer fires to launch a form, or whatever. This way the original call is not in the calling stack anymore.

Christof
--
Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform