02-28-2019, 02:00 PM
(This post was last modified: 02-28-2019, 02:10 PM by ldarrambide.)
Sorry fir wasting your time Gintaras, but i'm a moron on this one.
The 'Liste' varible is a defined structure in another macro, did not take care of the red color when writing code.
BUT, the reference value in function works.
but if i want to use a pointer, that does not work as expected (in C , dereferncing the pointer should access the ARRAY.
ARRAY(int) a
for _i 0 10
a[]=_i
out a[_i]
ARRAY(int)* b=&a
Shuffle_Int(b)
Shuffle_Int
function ARRAY(int)'*anarray
_i=anarray.len
out _i <====== outputs 10 as expected
out anarray[0] ====> Error (RT) in <open ":3263: /106">Shuffle_Int: Exception 0xC0000005. Access violation. Cannot read memory at 0x32C0000. In qm.exe at 0x49EC4B (0x400000+0x9EC4B)
must use a double pointer and pass adress of array?
The 'Liste' varible is a defined structure in another macro, did not take care of the red color when writing code.
BUT, the reference value in function works.
but if i want to use a pointer, that does not work as expected (in C , dereferncing the pointer should access the ARRAY.
ARRAY(int) a
for _i 0 10
a[]=_i
out a[_i]
ARRAY(int)* b=&a
Shuffle_Int(b)
Shuffle_Int
function ARRAY(int)'*anarray
_i=anarray.len
out _i <====== outputs 10 as expected
out anarray[0] ====> Error (RT) in <open ":3263: /106">Shuffle_Int: Exception 0xC0000005. Access violation. Cannot read memory at 0x32C0000. In qm.exe at 0x49EC4B (0x400000+0x9EC4B)
must use a double pointer and pass adress of array?