06-09-2024, 05:52 AM
(06-08-2024, 03:49 PM)Dav Wrote: I got a memory error in the IDE recently for the first time. When the IDE started it said it was turning syntax highlighting off because of low memory. This is with the 64-bit version on linux. 12gb of ram. Nothing else running. I turned syntax highlighting back on without problems.If you mean the "Syntax Highlighter has been disabled to avoid slowing down the IDE" message, that's time-based: the IDE sets a timer and if things get too slow if turns off highlighting.
- Dav
You don't need _MEM to get the size of an array, just use LEN:
Code: (Select All)
DIM a(250, 250, 500)
bytes&& = LEN(a())
PRINT "Array size in MB:"; bytes&& / 1024 / 1024