Armin,
>I experienced some strange behaviour when running an exe without a resource file. In CONFIG.FPW and CGlobalEnvironment I set RESOURCE=OFF, so the application ran without a resource file. When the application was terminated CGlobalEnvironment did a SET RESOURCE TO c:\windows\system32\foxuser.dbf, which is the VFP default foxuser file in an exe. This automatically set RESOURE=ON. To turn this behaviour off, I've put the IF around the following code and everything works fine now.
As usual, you're right on the money! I've made the change you've posted and given you credit in the What's New Guide.
Thanks,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com