Announcement

Collapse
No announcement yet.

Memory usage

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

  • Memory usage

    Guys --
    I found that following PB/DLL program
    Code:
    #Compile Exe
    Function PbMain: MsgBox "Ok": End Function
    takes more than 1 M of RAM.
    At least, this is an information of Task Manager (Win2000).

    Meanwhile my really gigant PB/CC module takes 340 K.

    Very strange ...
    Last edited by Gary Beene; 20 Jul 2014, 01:04 AM. Reason: Code: tags

  • #2
    When a PB/DLL app starts, Windows automatically gives the app a 1Mb stack. Recent discussions on this topic came to no proven conclusion, but it seems that Windows may dynamically resize the stack during normal runtime operations.


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

    Comment

    Working...
    X