Page 2 of 2

Posted: Sun Jul 30, 2006 9:46 pm
by Flype
Please Fred,
can you give some informations about this 'stack' behaviour.

What should we (users) know about this limit ?
Is it possible to catch this problem at compile time ?

Can this limit be changed by a compiler directive ?

Is this limit same for all (Everybody, OS, CPU, PB Version) ?

Just look at this sample code :
On my computer the limit is 12000 bytes

Code: Select all

#SIZE = 13000 
;#SIZE = 12000 

Structure TEST 
  field.b[#SIZE] 
EndStructure 

Procedure.s test() 
  
  Protected ret.s 
  Protected var.TEST 
  
  If var
    ret = "success" 
  Else 
    ret = "failed" 
  EndIf 
  
  ProcedureReturn ret 
  
EndProcedure 

Debug "start" 
Debug "test() : " + test() 
Debug "end"