James,
>I just compiled an exe with the sample application and ran it. The error did not occur.
>
>This error occurs when I first launch the exe. Which dataenvironment would be causing the error?
The following data environments are loaded before you see the login form:
1. Abstract Factory - Classes.dbf
2. Error Log - ErrorLog.dbf
3. User Login - v_UserLogin
You can set breakpoints in your application to see where this is occurring. Typically, you'll get this type of error when a table is opened exclusively that the data environment is trying to open.
Have you added your own Abstract Factory to the application...this can cause similar errors if it is not set up properly (and you're reusing classes.dbf).
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