hello!
my questions are, arrays, what are the limits?
for example, in vb6, i could use:
dim a(1024000)
with no problem, however, when i did a much smaller size in B4A, it died/puked/did not work/etc.
what are the limit(s)? is it based on the OS memory? B4A? both?
if it is based on memory, is there any 'trick' to see how much ram could be used without using all available free ram? i am aware of the 'os library'...
in vb, if i used up all RAM, then it would start using the swap file till the HDD was full.
another question on this is, does B4A 'add' the memory used like most languages do? for example, in basic/vb:
dim a(100,3) = 100 * 3 = total memory used = 300 bytes
i am asking about 'general' variables, not the 'fancy' ones...
are the string varis length 'fixed'? example:
vb: a="1234567890qazwsxwedc3216549879876543216549874321684321654"
in some languages, the length is fixed, 'basic for dos/quick basic/etc' is if i remember correctly, and in vb it is not (basically)
also (as a silly question), does android even use a 'swap file' for
memory?
if it does, is it used the same way as windows does?
if it does, can it be deleted as you can in windows (at certain times)?
if it does, where is it typically stored/name of file?
thank you for who ever answers these questions!
ken
my questions are, arrays, what are the limits?
for example, in vb6, i could use:
dim a(1024000)
with no problem, however, when i did a much smaller size in B4A, it died/puked/did not work/etc.
what are the limit(s)? is it based on the OS memory? B4A? both?
if it is based on memory, is there any 'trick' to see how much ram could be used without using all available free ram? i am aware of the 'os library'...
in vb, if i used up all RAM, then it would start using the swap file till the HDD was full.
another question on this is, does B4A 'add' the memory used like most languages do? for example, in basic/vb:
dim a(100,3) = 100 * 3 = total memory used = 300 bytes
i am asking about 'general' variables, not the 'fancy' ones...
are the string varis length 'fixed'? example:
vb: a="1234567890qazwsxwedc3216549879876543216549874321684321654"
in some languages, the length is fixed, 'basic for dos/quick basic/etc' is if i remember correctly, and in vb it is not (basically)
also (as a silly question), does android even use a 'swap file' for
memory?
if it does, is it used the same way as windows does?
if it does, can it be deleted as you can in windows (at certain times)?
if it does, where is it typically stored/name of file?
thank you for who ever answers these questions!
ken
Last edited: