title: tStringList passing in C# to Delphi DLL
body: <p>I have a Delphi DLL with a function defined as:</p>
  
  <p>function SubmitJobStringList(joblist: tStringList; var jobno: Integer): Integer;</p>
  
  <p>I am calling this from C#. How do I declare the first parameter as a tStringList does not exist in C#. I currently have the declaration as:</p>
  
  <pre><code>[DllImport("opt7bja.dll", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
  public static extern int SubmitJobStringList(string[] tStringList, ref int jobno);
  </code></pre>
  
  <p>But when I call it I get a memory access violation exception.</p>
  
  <p>Anyone know how to pass to a tStringList correctly from C#?</p>