reg 'System' function

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Harsh_forC

    #1

    reg 'System' function

    hello folks,
    when i'm using 'System' funtion in TC, perror function is outputting
    the
    following error msg..." Not enough memory"
    wat does it mean? how to get rid of this situaiton?
    plz help me out!

  • Jordan Abel

    #2
    Re: reg 'System' function

    On 2005-12-29, Harsh_forC <sriharsha.srip ada@gmail.com> wrote:[color=blue]
    > hello folks,
    > when i'm using 'System' funtion in TC, perror function is outputting
    > the
    > following error msg..." Not enough memory"
    > wat does it mean? how to get rid of this situaiton?[/color]

    Buy more memory, probably

    Please provide more details, such as some actual code

    Comment

    • SM Ryan

      #3
      Re: reg 'System' function

      "Harsh_forC " <sriharsha.srip ada@gmail.com> wrote:
      # hello folks,
      # when i'm using 'System' funtion in TC, perror function is outputting
      # the
      # following error msg..." Not enough memory"
      # wat does it mean? how to get rid of this situaiton?
      # plz help me out!

      Is this one of those systems that reserve all available memory
      to the one running program?

      --
      SM Ryan http://www.rawbw.com/~wyrmwif/
      Elvis was an artist. But that didn't stop him from joining the service
      in time of war. That's why he is the king, and you're a shmuck.

      Comment

      • Madhav

        #4
        Re: reg 'System' function

        Jordan Abel wrote:
        [color=blue]
        > On 2005-12-29, Harsh_forC <sriharsha.srip ada@gmail.com> wrote:[color=green]
        > > hello folks,
        > > when i'm using 'System' funtion in TC, perror function is outputting
        > > the
        > > following error msg..." Not enough memory"
        > > wat does it mean? how to get rid of this situaiton?[/color]
        >
        > Buy more memory, probably
        >[/color]
        Please put some code to help us sorting out your problem.

        Are you using Turbo C IDE? If you are, then in that case this message
        will be flashed. Try quiting the IDE and run the program from outside.

        Madhav.

        Comment

        • Keith Thompson

          #5
          Re: reg 'System' function

          "Harsh_forC " <sriharsha.srip ada@gmail.com> writes:[color=blue]
          > when i'm using 'System' funtion in TC, perror function is outputting
          > the
          > following error msg..." Not enough memory"
          > wat does it mean? how to get rid of this situaiton?[/color]

          There is no "System" function in standard C. Do you mean the "system"
          function? (I'm not just being picky; "System" and "system" could be
          two distinct functions.)

          --
          Keith Thompson (The_Other_Keit h) kst-u@mib.org <http://www.ghoti.net/~kst>
          San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
          We must do something. This is something. Therefore, we must do this.

          Comment

          • Rahul Chandok

            #6
            Re: reg 'System' function

            Hi,

            Please send us the code snippet you are tring to execute.

            ENOMEM normally comes when the new process requires more memory than it
            is currently available. May be one option is to try executing the light
            process in system(..) and after that see you get the same error.

            HTH
            Rahul

            Comment

            • Chuck F.

              #7
              Re: reg 'System' function

              Harsh_forC wrote:[color=blue]
              >
              > when i'm using 'System' funtion in TC, perror function is
              > outputting the following error msg..." Not enough memory" wat
              > does it mean? how to get rid of this situaiton? plz help me out![/color]

              I would strongly suspect it means that there is not enough memory
              available to do what you want.

              --
              "If you want to post a followup via groups.google.c om, don't use
              the broken "Reply" link at the bottom of the article. Click on
              "show options" at the top of the article, then click on the
              "Reply" at the bottom of the article headers." - Keith Thompson
              More details at: <http://cfaj.freeshell. org/google/>

              Comment

              • Mike Wahler

                #8
                Re: reg 'System' function


                "Harsh_forC " <sriharsha.srip ada@gmail.com> wrote in message
                news:1135825162 .785526.280860@ g47g2000cwa.goo glegroups.com.. .[color=blue]
                > hello folks,
                > when i'm using 'System' funtion[/color]

                There is no function 'System' in standard C. I'll assume
                you mean 'system'.
                [color=blue]
                > in TC, perror function is outputting
                > the
                > following error msg..." Not enough memory"
                > wat does it mean?[/color]

                It means there's not enough memory available to your program
                to perform whatever operation it requested. What is that
                operation and how much memory does it need? We'll never
                know unless you post your code.
                [color=blue]
                >how to get rid of this situaiton?[/color]

                Either reduce the amount of memory required by your
                'mystery' operation (how? : change the code); or:

                Provide enough memory to meet its existing requirements
                (how?: this will depend upon your system. With a multitasking
                system, perhaps simply terminating some other processes
                will suffice. Changing your code so it doesn't use as much
                memory in other places might free up enough. And there's
                always the option of installing more physical memory (but
                how or whether this actually increases the memory available
                to your program is system dependent.)

                [color=blue]
                > plz help me out![/color]

                Please be specific when asking for assistance here.

                -Mike


                Comment

                Working...