Passing Array Variables to and fro Invoke Code (C#)

Single variables are being passed to and fro Invoke Code just fine.
Seeing errors when done with array.

For example, I have an array named Variable4 which is an array of strings.
When I try to access Variable4[0] in Invoke Code (C#), it gives an error.

Object reference not set to an instance of an object.

How to solve this?

Can you share a simple reproduction?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.