>I have two forms open at that time. The form that causing the problem has 2 listbox (one of them is empty) and 4 command buttons.
>
>I have 32MB RAM.
>
>I have a strange behaviour. When starting the application as an .APP inside VFP, it work. As an .EXE, I get the error.
>
>>Hmmm...I just tested a huge table in a list box...no problems. How many objects are open simultaneously? How much RAM do you have?
OK. What is your SET RESOURCE setting? If it's ON and you don't specifically need the FOXUSER table, set it OFF (will conserve some memory). Secondly, there are two SYS() functions that show GDI (object) memory and allow you to set it...I cannot find those functions in my VFP Help file but I recall them being documented in "The Hacker's Guide to Visual FoxPro" and maybe some other UT member can help with that?
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05