1
Media Section / Re: Fonts
« on: 2021-May-13 »
It would appear that the zip file is corrupt and unable to be repaired.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
CONSTANT MaxDims=3
TYPE TPoint
Loc[]
FUNCTION init:x,y,z
DIM self.Loc[MaxDims]
self.Loc[0]=x
self.Loc[1]=y
self.Loc[2]=z
ENDFUNCTION
ENDTYPE
LOCAL P1 AS TPoint;P1.init(1,2,3)
TYPE TPoint
Loc[]
FUNCTION CreatePoint:x,y,z
self.Loc[0] = x
self.Loc[1] = y
self.Loc[2] = z
ENDFUNCTION
ENDTYPE
LOCAL P1 AS TPoint
But the compiler errors the "LOCAL P1 AS TPoint" line with (25) error : command not inside function or subCONSTANT MaxDims=3
TYPE Point
Loc[MaxDims]
ENDTYPE
.....................................
//then later do
LOCAL P1 AS POINT
.......................................
FOR i = 0 to MaxDims
IF P1.Loc[i] ................
Now I know this code won't work but the compiler issues an error for the Loc[MaxDims] line-dex:
[echo] Converting compiled files and external libraries into C:\Users\mattk\Documents\GLBasic\MyProjs\TEXTURED_POLYGON\android\bin\classes.dex...
[apply] Error occurred during initialization of VM
[apply] Could not reserve enough space for object heap
[apply] Could not create the Java virtual machine.
BUILD FAILED
D:\GLBasic_Beta\Compiler\platform\android\android-sdk-windows\tools\ant\main_rules.xml:472: The following error occurred while executing this line:
D:\GLBasic_Beta\Compiler\platform\android\android-sdk-windows\tools\ant\main_rules.xml:203: apply returned: 1
Total time: 4 seconds
Android=C:\Users\mattk\Documents\GLBasic\MyProjs\TEXTURED_POLYGON\android
success
_______________________________________
*** Finished ***
Elapsed: 12.0 sec. Time: 09:47
Build: 1 succeeded.
I am on Win 7 Home Prem. 64 bit with Java SDK (32 bit). I do have the Android SDK and Ant also separately installed however neither of these are set as environmental variables so I don't think they are being used.