hiSync
hiSync(
s_deferredDelete
)
=> t / nil
Description
For programs with several GUI-related creation and deletion operations running in a loop, Qt objects deferred to be deleted later may accumulate and affect performance. This function solves this issue by forcing Qt to immediately delete these objects.
Argument
Values Returned
Examples
In the following example, the hiSync SKILL function periodically deletes the objects created in the while loop.
i = 1
while(i <= 500
schWin = deOpen('(nil libName "TEST" cellName "TEST" viewName "schematic") nil "edit")
schDB = schWin->cellView
hiSetCurrentWindow(schWin)
instDB = dbFindAnyInstByName(schDB "NM0")
geSelectFig(instDB)
schHiObjectProperty()
hiDisplayForm(schObjPropForm)
schHiCheckAndSave()
schObjPropForm->m->value="5"
schObjPropForm->fingers->value="50"
schObjPropForm->switchSD->value= t
hiFormDone(schObjPropForm)
schHiCheckAndSave()
hiCloseWindow(schWin)
if(mod(i 5)==0 hiSync('deferredDelete))
i++
);while
Related Topics
General Environmental Functions
Return to top