Darrell,
>I just upgraded to MM Framework 4.1. When I build an EXE and run it, I get "Error loading the data enviornment. Table is in use." I do not get this error when running DO MAIN. I did not get the error when running an EXE before upgrading to 4.1. The error occurs before the login/password form fires. If I ignore the error, the EXE continues to the login/password form and all seems to work fine. I do not have VFP running in another window and I do not have any tables open.>
I'm not sure why you're getting this error, but the only tables/views opened by the Framework before the login / password appears are:
1. Classes.dbf (free table opened by the Abstract Factory in CApplication.Init()
2. ErrorLog.dbf (free table opend by the Error Manager in CApplication.Init()
3. v_UserLogin (view opened by the login form itself)
You may want to set some breakpoints and step through the code to see what's really happening.
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com