Hello ,
My coding is as this :
DefineThreadSafeScalarVar(struct dTagPack ,dGlobel,0);
struct dTagPack *dGlobel = NULL;
...
int main (...)
{
...;
}
int CVICALLBACK Mycallback (int panel, int control, int event,void *callbackData, int eventData1, int eventData2)
{
struct dTagPack *root;
struct dTagPack rr;
...
dGlobel = ExportLink() ;//get a link from a dll file
InitializedGlobel();
root = GetPointerTodGlobel();
rr = root[0];
.....;
ReleasePointerTodGlobel();
UninitiallizedGlobel();
return 0;
}
When view the value of variable rr , its elements are all equal zero , but check variable of dGlobel , its value is correct . I am not sure if the TSV would modify the value .
David