I've register a function to work on background by below code:
XtAppAddWorkProc(app, (XtWorkProc)NotifyEntryCallback, (XtPointer)ent);
It wil be ok if I just call this function once in a task (click on a button for example). But when I call it twice or more in that task,
NotifyEntryCallback will be called many time (infinity).
I try to store
XtRemoveWorkProc function to remove the registered function but it still does not work.
I has spent many times on Google but cannot know why this happens. Please help me to resolve it.