B4R Question SOLVED I don't understand stack memory...

tigrot

Well-Known Member
Licensed User
Longtime User
Hi everybody:
I have this sub beginning:
B4X:
    Dim ctx As Int=0
    Log(StackBufferUsage)
    Dim r(10) As Record
    Dim raf As RandomAccessFile
    Dim buffer(18) As Byte
    Dim totpezzi As ULong=0
    Dim totallarmi As ULong=0
    raf.Initialize(buffer,True)
    Log(StackBufferUsage)
Record is a Type 18 bytes long
I have a StackbufferUsage of 150 on both logs.
I don't understand why. There should be a big difference
Has anybody an explanation?
Regards
Mauro
 
Top