When I pass an array argument to a com object, I receive "Index out of Range" exception. I solved this in Delphi by change of start index of array from 0 to 1. But I don't know if this is the same issue in C#? And if is, how can I solve it?
Code:
Array msgs=new string[0]; int n=0; //problem occurs here controller.Compute_CurrentPlan(ref n, ref msgs);
Comment