Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Release events isn't working
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Release events isn't working
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01015742
Message ID:
01015742
Views:
66
I have the following code in a method of an APP class:
IF this.cangoon
     * save old menu, run new one
     push menu _MSYSMENU
     Do IT.MPR
     read events
else
     * something bad happened so can't run app
endif

* clean up and close shop
* upon termination, restore menu 
MESSAGEBOX("we got Here") &&Doesn't get here when clicking EXIT
pop menu _MSYSMENU to master
set sysmenu to default
(I have some cleanup code somewhere else)

I have a menu that contains an Exit option. It contains the Command: RELEASE EVENTS
What could cause that menu item to not work? Shouldn't it automatically return control to the method of the App object?

Also, I created a menu with just three pads, yet the VFP menu pad (Format) is added to it. Also when the application hangs everything in VFP works except the Command Window. Also it won't let me shut down.

Any suggestions would be appreciated.
Next
Reply
Map
View

Click here to load this message in the networking platform