<p>Hi,</p>
<p>I don't know if it's a bug or if something is missing in my code...<br
/>The issue is : using the following code, I cannot get scilab to display
the<br />mB matrix :</p>
<p>#include "stack-c.h"<br />#include
"api_scilab.h"<br />#include "Scierror.h"</p>
<p>int oclexec(char* fname)<br />{<br />SciErr sciErr;<br /> int
*pB;<br /> int rowsB,colsB;<br /> double* mB;<br /> int
k;</p>
<p> mB=(double*)malloc(rowsB*colsB*sizeof(double));</p>
<p><br /> for(k=0;k<rowsB*colsB;++k)<br /> {<br />
mB[k]=1.0;<br /> }</p>
<p> sciErr = createMatrixOfDouble(pvApiCtx, Rhs + 1, rowsB, colsB,mB
);<br /> if(sciErr.iErr)<br />{<br />printError(&sciErr, 0);<br
/>return 0;<br />}</p>
<p> LhsVar(1)=Rhs+1;</p>
<p> return 0;<br />}</p>
<p>The gateway is compiling fine, but when I type B=ocltest(A); , the B
matrix<br />is equal to A, whereas it is expected to be a ones matrix.</p>
<p>On the other hand, the unary test double_writing_api.tst works.<br
/>I'am currently using the windows 1257195239 build (taken from the
nightly<br />build of scilab 5.2)</p>
<p>Regards,<br />Vincent </p>