Bug? [B4A 5.5Beta] When are Process Globals treated

JordiCP

Expert
Licensed User
Longtime User
Hi,

Just for curiosity. Don't know if this is a bug, or it is due to changing the moment when Process_Globals are initted

With previous versions I had, with no errors

B4X:
Sub Process_Globals
    Dim PTR_SIZE_DEFAULT  As Int=  Min(100%X,100%Y)/20
    '.....
End Sub

Now the new version does not allow to init it this way, giving this error

B4X:
B4A version: 5.50 BETA #1
Parsing code.    (1.78s)
Compiling code.    Error
Error compiling program.
Error description: Activity size is not known at this point.
Occurred on line: 84
Dim PTR_SIZE_DEFAULT  As Int  =  Min(100%X,100%Y)/20
Word: perxtocurrent

As it is easily solvable, no problem
 
Top