Passing array's to macro's
Posted: Mon May 31, 2010 6:55 pm
Hello,
Passing strings to a macro is not a problem in Flowcode.
However, passing an array is, because array's can have null bytes in it.
If you pass an array to a macro, the operation will succeed until it encounters a null byte. Thereafter the transfert stops.
This can lead to very hard to find bugs.
I refer to a previous post http://www.matrixmultimedia.com/mmforum ... %27s#p9337 were was stated that this would be solved in Flowcode V4. Unfortunatly it is not.
Is there an alternative method to pass arrays with null bytes to a macro ( except converting and re-converting the array to a string ), eventually in C-code?
Best regards,
Eric
Passing strings to a macro is not a problem in Flowcode.
However, passing an array is, because array's can have null bytes in it.
If you pass an array to a macro, the operation will succeed until it encounters a null byte. Thereafter the transfert stops.
This can lead to very hard to find bugs.
I refer to a previous post http://www.matrixmultimedia.com/mmforum ... %27s#p9337 were was stated that this would be solved in Flowcode V4. Unfortunatly it is not.
Is there an alternative method to pass arrays with null bytes to a macro ( except converting and re-converting the array to a string ), eventually in C-code?
Best regards,
Eric