Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C5 Error Removing Object From a Container
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00201088
Message ID:
00201122
Views:
14
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform