This is how I would have imagined it. Unfortunately, an error always comes out of the CreateInstance method.
The error tells you you're trying to create an instance of the interface and your type string does indeed have IList as the type. You should change it back to List.
As shown in this example, I manage to fill the list accordingly.
Have a nice day and thank you....
Your first kudo for that...
Note you need to close the type reference used for the activator.
Note you need to close the NodeId reference.
Note you're recycling a reference to the list. It will grow 1 item for each call, forever. The list is not by wire...
These are references to the objects. If you don't need to refer to them anymore, close the reference. This won't (always) close the object. If the object is inserted in another object, the object will live on there.
It works fine in LV dev, but fail when compiled into a PPL.
Any idea ?
My guess is that System.Memory is not loaded by the PPL, which leads to a null reference outputed by the last GetType method (on the right side of the diagram).
Yes, it looks like the assembly isn't loaded in the PPL.
You can probably force it by putting anything static from the assembly on the diagram (or front panel probably) of the VI. Do make sure it isn't compiled out by the dead code removal algorithms.
DLLs have an option to share some resources with the host environment, but I'm not sure if PPLs have that.
Yes you're right,
I deleted the right side of the diagram before posting it for confidentiality reason, but it's well closed in the original one.