I am using this MyStruct (its a struct) as a out parameter. It works for me, struct gets filled after the function returns.
But when we try to call this methhod continuously for about 1000 times it fails inside this function without any excepion.
Is this happens because of the pointer is getting cleaned by GC? Can you suggest a better way to write this method.