c - Function registered by XtAppAddWorkProc is called many times -


i've register function work on background below code:

xtappaddworkproc(app, (xtworkproc)notifyentrycallback, (xtpointer)ent); 

it wil ok if call function once in task (click on button example). when call twice or more in task, notifyentrycallback called many time (infinity).

i try store xtappaddworkproc use xtremoveworkproc function remove registered function still not work.

i has spent many times on google cannot know why happens. please me resolve it.

finally, find solution. share faces same issue:

the return value in xtworkproc tell system call registered function again or not. in case, notifyentrycallback should return true if don't want called again.

reference link: http://home.soka.ac.jp/~unemi/motif/man3/xtworkproc.html


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -