Announcement

Collapse
No announcement yet.

Error 406 clarification please

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

  • Error 406 clarification please

    Hello PB,

    I've finally run into the dreaded error 406 Compiler Out of Memory
    (with PBDLL60).

    I have started converting all the SUBs & FUNCTIONs which do not
    access any GLOBAL variables into a DLL, but so far have been unable
    to regain the ability to compile the main program.

    The docs talk mainly about symbol space being the culprit. I'd like
    to know if error 406 is mainly generated because of too much equates
    / Fn&var names OR too much code in one program.

    I'd hate to spend a few days reworking my code to avoid GLOBALS to
    make DLLs if that is not necessary....




    ------------------
    Bernard Ertl
    Bernard Ertl
    InterPlan Systems

  • #2
    Bern, without seeing your source, I can only guess. For example, it could be that you have an excessive amount of literal strings in a given sub/function (ie, A$ = "lots and lots ot text", et al). It could also be too many DATA statements (the compiler currently has a limit of arouns 28-30kB for sub/function, rather than the stated 64kb).

    If this does not help, email your code in a ZIP file, and I'll take a look for you.

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

    Comment


    • #3
      Oh yeah! I forgot to state the obvious: it could be as simple as your PC is not providing enough memory! 16-bit apps (such as the compiler itself) are allocaated out of a pool of 16Mb of RAM - if you have other 16-bit processes running (other then the 16-bit subsystem of Win9x/ME), you may simply be starving the compiler of a lot of memory.

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

      Comment


      • #4
        Hi Lance,

        I've finally regained the ability to compile again. I
        had to chop some major code into DLLs. I'm
        assuming that I ran out of the 16K memory space.

        If future versions of the compiler will continue to be 16bit ,
        it would be REAL nice if the compiler could give statistics
        indicating "used versus limit" for all the possible "out of
        memory" conditions.

        ------------------
        Bernard Ertl

        [This message has been edited by Bern Ertl (edited May 31, 2001).]
        Bernard Ertl
        InterPlan Systems

        Comment

        Working...
        X