Announcement

Collapse
No announcement yet.

Comiling stops before end

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Comiling stops before end

    Hello,

    i´ve a little problem with my PB3.5 Compiler.

    If I compile my big program the compiler stops compiling
    at line 7800 of 12000. IF I press enter the compiling goes
    to end - but the new function does not work.

    If I use ´$Error stack off` then the compiler works - but
    the new function does not work too.

    How to find the error place ???

    Thanks for help.

    Matthias Kuhn



    ------------------

  • #2
    Sounds to me like you have a memory problem. Check your CONFIG.SYS
    and AUTOEXEC.BAT files. Make sure you have all your boot files
    loaded in the high memory area, (i.e. DEVICEHIGH= and LOADHIGH).
    That should free up a lot of base memory. If that fails, try
    using the external PB compiler PBC, (PBC -CE filename).


    ------------------
    There are no atheists in a fox hole or the morning of a math test.
    If my flag offends you, I'll help you pack.

    Comment


    • #3
      Hi Mel,

      thanks for answere. I´ve had enough base memory 600kb.

      I´ve found a solution:

      - I've removed all new lines and sub´s with a comment sign '

      - Then I´ve replaced the sub-files to the end of the program.

      - Last I´ve removed one by one comment sign - but the error

      has no more appeared.

      Regards

      Matthias Kuhn

      ------------------

      Comment


      • #4
        Try enabling EMS and XMS memory... the compiler can use these during compilation.

        If you already have these enabled (and especially if you are running under plain DOS), it could be that your existing memory manager has problems (PowerBASIC drives memory managers pretty hard and some simply do not stand up to the job).


        ------------------
        Lance
        PowerBASIC Support
        mailto:[email protected][email protected]</A>
        Lance
        mailto:[email protected]

        Comment


        • #5
          I you are above 43K in the Main module, or especially if you are
          near 62-63K in it, try to simply add a $SEGMENT to break Main
          into two parts, temporarily. After working with the source and
          adding a few lines or taking them away, remove the $SEGMENT and
          try again. You may find all is right with your world again.

          Sometimes works for 'unexplainable' "fixup" errors too.

          Another stunt that can sometimes get you around a rock is to
          temporarily use the DOS trick of "Loadhigh" PB whatever, just to
          get any possible use of a few K extra if that will do the trick,
          or in real borderline programs to debug them. Obviously worthless
          stunt if no memory can be had by doing this ..

          'A program's not done 'til it's too big to run!" Grin ..

          Please don't shoot the messenger.



          ------------------
          Mike Luther
          [email protected]
          Mike Luther
          [email protected]

          Comment


          • #6
            Lance - the ems /xms driver is on - I run unter the 'DOS' of win95.

            Mike -

            I´ve one segment near 62kb and my program is over 324 KB
            exe size.

            I confirm that the $segment command sometimes helps.

            But the main problem in this cases is to find the reason why
            and the place where something works wrong.

            At the end it is best and quickest idea to write those parts and
            programs new with a very clear strukture.

            Thanks for advice.

            Regards

            Matthias Kuhn



            ------------------

            Comment


            • #7
              Matthias, next time you find come across what you perceive to be a compiler problem, please email a the (complete) source code to Tech Support so we can investigate the issue.

              So far, Tech Support have not been able to duplicate the problems that you have alluded to in your message, so if we can see the problem for ourselves, we can determine if the compiler needs fixing!

              Thank you for your cooperation!

              ------------------
              Lance
              PowerBASIC Support
              mailto:[email protected][email protected]</A>
              Lance
              mailto:[email protected]

              Comment


              • #8
                I don’ t think Matthias was alluding to a problem in the compiler, he described the steps that take to his problem. What i understood from this kind of problems, much thanks to the help of PB support, is that usually these problems have to do with memory problems due to OS or mem managers. Several times when i had compilation problems they simply disappeared just compiling on a different PC.

                ------------------

                Comment


                • #9
                  Yes, Davide, you are correct in a sense, but my point is that if PowerBASIC staff can be given the oportunity to take a look at the problem first-hand, we'll (hopefully) be able to determine if the problem is the compiler, or the way the compiler uses the active memory manager, or some other seemingly unrelated issue.


                  ------------------
                  Lance
                  PowerBASIC Support
                  mailto:[email protected][email protected]</A>
                  Lance
                  mailto:[email protected]

                  Comment


                  • #10
                    Lance,

                    I´ve tried to force the compiler to make stopping again.

                    But sorry I´ve now no version with this error.

                    Next time I`ll send all the code to Power Basic.

                    Thanks for any suggestins.

                    Regards

                    Matthias Kuhn

                    ------------------

                    Comment

                    Working...
                    X