S
serj
Hello,
I try to edit an array of double (or whatever type) allocated in the
managed code from the unmanaged code.
Is it possible ?
I have an unsupported exception with the below code.
void ExpTest(double* tab)
{
for(int i=0;i<3;i++)
{
tab=i;
}
}
[DllImport("***.dll")]
static extern void ExpTest(ref double[] ouput);
public void Test(ref double[] output)
{
try
{
ExpTest(ref output);
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
Thx
I try to edit an array of double (or whatever type) allocated in the
managed code from the unmanaged code.
Is it possible ?
I have an unsupported exception with the below code.
void ExpTest(double* tab)
{
for(int i=0;i<3;i++)
{
tab=i;
}
}
[DllImport("***.dll")]
static extern void ExpTest(ref double[] ouput);
public void Test(ref double[] output)
{
try
{
ExpTest(ref output);
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
Thx