As Fred Nurk said in the comments above, I add this as an answer:
The variable should not be called close ... now I renamed it and it works .... but my vi does not highlight "close" :-)
- edit1:
what i did now:
void addInputParamReal(
OCIExtProcContext *ctx
,OCINumber *value
)
{
if (bar1size==0)
{
bar1close = (TA_Real *) malloc(initsize * sizeof(TA_Real));
bar1size=initsize;
}
else if (bar1size<bar1idx || bar1size == 65536)
{
raise_exception(ctx,__LINE__,"addInputParamReal,memory allocation failed");
return;
}
else if (bar1size==bar1idx)
{
bar1close = (TA_Real *) realloc (bar1close, (bar1idx*2) * sizeof(TA_Real));
bar1size = bar1idx*2;
}
double dtemp;
OCINumberToDouble(ctx,value,&dtemp);
bar1close[bar1idx++] = (TA_Real) dtemp;
}
source
share