spawnv call with array of array of char (char* argv[])
<p>id like to spawn a process with unknown number of parameters.
my code so far (using power++):</p>

<pre><code>char** psaParameters = new char*[ saParameters.GetCount() ];

            for( int i = 0; i &lt; saParameters.GetCount(); i++ )
            {
                psaParameters[ i ] = new char[ saParameters[ i ].GetLength() ];
                strcpy( psaParameters[ i ], saParameters[ i ].GetText() );
            }

            spawnv( P_WAIT, psaParameters[ 0 ], psaParameters );
</code></pre>

<p>but it's crashing. why?</p>

<p>thank you!
-dominik</p>
