>hello, thanks.
>
>I use VFP 7.0, this problen has happend under runtime.
>
>My project use modal forms, I have a Menu on main VFP main screen.
>On the init event of main form this is the code:
>DO mymenu.mpr
>SET SYSMENU SAVE
>On gotfocus of each form:
>SET SYSMENU TO DEFAULT
>
>When I run a form and exit of it, gets me out of system and VFP.
Why are you switching between the menus all the time? I start my app menu when the app is launched and leave it during the life of the app. If you need the functionality of the Cut/Copy/Paste for modal forms, you can add this to your app menu. Create a new menu, select Quick MEnu from the Menu pad on the VFP menu. Generate the menu. Then MODI COMM ThatMenu.mpr. You will see the code you need to add these items to your app menu.
Are all your forms modal? If so, why? Most forms should not be modal. Look into using non-modal forms with private data sessions.
Finally, if you have not done so already, upgrade to VFP 7 SP1. Then you can send information to the VFP Team at Microsoft that will help them address this fatal exception. The functionality for error reporting was introduced in VFP7 Service Pack 1. For anyone already using Service Pack 1, you can click the Send Error Report button in the error dialog that appears. If you have not applied SP1, you can download it from
http://msdn.microsoft.com/vfoxpro/downloads/updates.asp
Mark McCasland
Midlothian, TX USA