Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Menu bars disabled--redux
Message
From
25/11/2009 10:02:13
 
 
To
24/11/2009 09:42:36
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01435795
Message ID:
01436584
Views:
57
>So, just tested a bunch of things. DOEVENTS in various places doesn't help. Neither does a wait of up to 5 seconds after exiting the modal form. I confirmed again that the form reference variable was null after the form closed, so I don't think this is a dangling reference.
>
>But, as I learned before, stepping through the code prevents the problem. I'm wondering if, rather than timing, the issue is having focus get set elsewhere before the other form opens. I just tried setting focus to something on the app's main form, and that didn't help. Wonder if I can set focus outside my app and then bring it back?

On a suggestion from the client, I modified the code in the button so that it doesn't hide the form before processing and that solved this. So apparently something about the combination of hiding the form, then introducing a wait state (or the calls to the COM object or something) caused the problem.

Thanks for the suggestions, folks.

Tamar
Previous
Reply
Map
View

Click here to load this message in the networking platform