Panel initialization script of faceplate has a following structure:
Code: Select all
main()
{
dyn_string dpeList;
. . . // init consts, dpeList etc.
dpConnect("callBackFunc",dpeList); // (answer=true)
if(dynlen(getLastError())==0)
{
... // Additional initialisation
// (for instance, create and install events handlers scripts
// for several graphic objects, etc)
// Can occupy certain time.
}
else
{
... // visualize symbols error
}
}
// work function:
void callBackFunc(dyn_string dpeList, dyn_anytype val)
{
... // paints, animate of graphics objects of symbol primitive,
// depending on current condition.
setMultiValue(...);
}work functions and additional initialization (after dpConnect) in my computer occurs
consecutively, with minimal switching timeslice.
Herewith, additional initialization interfere work functions and increase their time performance.
How I can raise the priority of work functions respecting additional initialization?
In other words, all panels work functions must be completed before continue any additional
initialization after dpConnect() call.