program too big to fit memory!!
firstly, i apology for this post, because i dont know whether i should post this thread....... :wave:
i'm writing a program using foxpro 2.6 and i'm facing one problem.......in the program i call a batch job to execute...
Code:
!F:
!F:\mfg
!F:\mfg\itm.BAT
when the flow reach the third line, it will display one error said that "program too big to fit memory"...................what is the problem of this? I alr check all the thing, the batch job command is correct, code no problem.......anyone can tell me why?
Re: program too big to fit memory!!
Moved to a more appropriate forum.
Re: program too big to fit memory!!
This is probably the wrong site to post the question, since it has nothing to do with any form of Basic, but post itm.bat or, if it's large, attach it. Unless the .bat file is huge (on the order of many megs), the error comes from trying to run one of the commands in the .bat file, and we can't tell which one unless we see the file.
Also, since I'm not familiar with Foxpro, is 2.6 Visual Foxpro, or is it a DOS-based version? If it's DOS-based, you probably don't have enough free memory to run any decent-sized program while Foxpro is running.
1 Attachment(s)
Re: program too big to fit memory!!
this is the batch job........and the attached file setup.xls is only size 2kb
Re: program too big to fit memory!!
The program you're running is commail. Setup.xls is just an attachment to the email the program is sending, so it wouldn't be the cause of the problem.
Run the line from the bat file from a cmd window and see if you still get an error. Or just run commail from a cmd window and see whether it will run without errors.
Re: program too big to fit memory!!
if i manual run the batch job, then it woudnt have problem and can send the mail successful.....js when run the foxpro program............can i separate the command to two line instead of one line?
Re: program too big to fit memory!!
Code:
commail -host=xx.xx.x.xx -from="New Setup Item" -to="<[email protected]>" -subject="New Setup Item" -msg="f:\mfg\newitem.txt" -attach="c:\setup.xls"
Where would you like to break it?
Basically, the command says:
Send an email from New Setup Item to <[email protected]>, subject New Setup Item, saying f:\mfg\newitem.txt and attaching c:\setup.xls.
I suppose you could send 1 email with an attachment and another one with the message, but it's commail that's complaining about needing more memory, so you can't run commail from within Foxpro. And you can't send the email using commail without running commail.
Again - is this a DOS-based version of Foxpro?