| ![[Previous]](../image-lib/prev.gif) | ![[Contents]](../image-lib/contents.gif) | ![[Index]](../image-lib/keyword_index.gif) | ![[Next]](../image-lib/next.gif) | 
Synchronize Photon
void PtSyncPhoton();
This function forces a flush of the current draw buffer and then disposes of the memory used by any destroyed widgets. This ensures that:
|  | This is normally done for you in the standard event-processing loop.
Most applications don't need to call PtSyncPhoton() explicitly;
it's of particular importance to applications that modify or
destroy widgets associated with a work or input process. Never call PtSyncPhoton() in the callback of a widget that you've destroyed. | 
Photon
| Safety: | |
|---|---|
| Interrupt handler | No | 
| Signal handler | No | 
| Thread | No | 
PtAppAddWorkProc(), PtAppAddInput()
| ![[Previous]](../image-lib/prev.gif) | ![[Contents]](../image-lib/contents.gif) | ![[Index]](../image-lib/keyword_index.gif) | ![[Next]](../image-lib/next.gif) |