>>>I'm making a front-end framework for a little number crunching app. Small and uncomplicated. When I run the exe I get "There is not enough memory..." when instantiating the oApp. If I DO Main.prg there are no problems.
>>>
>>>AFAIK all of the classlibs are built into the exe. All of the files, libs, exe, etc. are in the same directory (for now).
>>>
>>>What isn't happening?
>>
>>Are you trying to run MyExe.EXE as a separate process, or from the Command window in VFP? If the former, and you've still got your dev environment running, maybe you don't have enough free memory to start up another VFP process.
>
>
I'm running from within Fox via the command window. I tried this with nothing else open, also. I'm sure it's some path or directory problem - some simple newbie gothca.
>
>
>>Also, if you're running under W9x, you might be running low on "resources" e.g. GDI memory, rather than total RAM. NT doesn't suffer from this problem.
>
>Running W98 on 128mb RAM set to "Let Windows optimize..." I really don't think I'm low on memory, I think I'm using too much chasing my tail somehow.
GDI memory you have no control over, it's only 64K I think, and each little control in every running app (amongst other things) uses up some. Only cure if that's the problem is to close some other apps.
I have heard of cases where some apps "leak" resources, so in the course of a long day the user might have to reboot several times.
One other possibility - could it be that the "Main" program in your .EXE is not set to MAIN.PRG, or somehow something is being called recursively?
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up