Results 1 to 7 of 7

Thread: program too big to fit memory!!

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2005
    Posts
    840

    Question program too big to fit memory!!

    firstly, i apology for this post, because i dont know whether i should post this thread.......

    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?

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: program too big to fit memory!!

    Moved to a more appropriate forum.

  3. #3
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    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.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2005
    Posts
    840

    Re: program too big to fit memory!!

    this is the batch job........and the attached file setup.xls is only size 2kb
    Attached Files Attached Files
    • File Type: txt ba.txt (143 Bytes, 159 views)

  5. #5
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    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.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2005
    Posts
    840

    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?

  7. #7
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    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?
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width