Passing Objects From C# to back to VO
Posted: Tue Aug 03, 2021 12:13 pm
Hey,
I work in a program that is a hybrid of VO and C#. any new large development that can be done in c# and called from VO is. My problem is that I'm currently trying to pass an object from C# back to vo and having issues. currently I am passing an Object which has a int status and an array of embeddedobject. I can read the status fine from the original object but when I try to interact with with the embeddedobject array it appears to give me a pointer for each of the embedded objects. I did have some success passing object array back to a seperate method in c# with an index to retrieve a single object and simply iterate through each of the objects that way. It is super hacky but it gives me the object and I can access its internals however once I put these objects into an array and pass the array on to another method I am met with object references again. Has anyone had success with passing objects from c# back to VO. is there any specific datatypes within the object that might be causing it to respond in an unexpected way. Any help or suggestions is much appreciated.
Regards Jerome
I work in a program that is a hybrid of VO and C#. any new large development that can be done in c# and called from VO is. My problem is that I'm currently trying to pass an object from C# back to vo and having issues. currently I am passing an Object which has a int status and an array of embeddedobject. I can read the status fine from the original object but when I try to interact with with the embeddedobject array it appears to give me a pointer for each of the embedded objects. I did have some success passing object array back to a seperate method in c# with an index to retrieve a single object and simply iterate through each of the objects that way. It is super hacky but it gives me the object and I can access its internals however once I put these objects into an array and pass the array on to another method I am met with object references again. Has anyone had success with passing objects from c# back to VO. is there any specific datatypes within the object that might be causing it to respond in an unexpected way. Any help or suggestions is much appreciated.
Regards Jerome