>I have a form that invokes properly and runs beautifully whenever I run it from within the project (VFP 5.0), i.e., by RUNning MAIN.PRG. However, whenever I compile the project and run it as an executable, the form (and only this one form) will not load. I get an out of memory error message when it tries to load a combo box contained in the form.
>
>I am using an SQL Select into a cursor. The table that I am loading is small--currently 167 records. I am loading the Last Name and the First Name fields from it. BTW, the EXE file is also small--under 400K. The error message points me to Record #22, Line 4. When I USE the form (USE CUSTOMER.SCX), Record 22 is, indeed, the combobox control.
>
>Any idea why the combo box won't load as part of an executable? And does anybody know what Line 4 means in the error message??
>
>TIA.
>
>John
Sounds like you may have some file corruption.
1) Try rebuilding the project with the RECOMPILE ALL option.
2) Pack your project
3) If that doesnt work, try deleting the object and replacing it with a new one.
4) Next I would try a "SAVE AS" a new form and deleting the old one
Hope this helps.
Good Luck
//:^)