Try compiling the form/class library. Perhaps the objcode has gotten munged. Or perhaps you've got a pathing issue. Does the form really exist in a sub-folder called forms when running the EXE?
rk -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of MB Software Solutions, LLC Sent: Wednesday, August 12, 2009 3:35 PM To: [email protected] Subject: Problem running form from EXE, but not from command line I've got a simple Main.prg that creates some data cursors, then does a DO FORM .\forms\MyForm to show the results. When I run main.prg directly, it works fine. When I compile the executable (main.prg is set as main), the DO FORM line fails with the following message: Error loading file - record number 5. grdResults <or one of its members>. Parent : Object class is invalid for this container. I opened the form and looked at the 5th record...nothing appears to be out of place. I'm thinking it's some sort of stupid sequencing thing...cause I cut/pasted the grid from the main form area onto a pageframe that I created later. But why would it work from the VFP IDE call from main.prg and not from still inside the IDE but running as the EXE? _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/df1eef11e586a64fb54a97f22a8bd04406552e7...@ackbwddqh1.artfact.local ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

