I'm probably missing something fundamental about how variants are stored in memory .
I want to create an array of pointers to variants. I seem to be able to write quite happily, but when read; it causes a problem.
The following VI demonstrates what I am trying to do. It runs through once quite happily, but on the second execution it fails on the DSDisposePointer (even though the variant has been written and read correctly). If you disable the read, then it doesn't crash so it must be something to do with the way I'm retrieving the data.
Any help appreciated.
varpointers.vi