I am writing a xfce4 panel plugin recently.My model is xfce4-mount-plugin(http://goodies.xfce.org/projects/panel-plugins/xfce4-mount-plugin) and I want to add some additional function to it. However, it works wrong sometimes.I check all the function and test every part of my program to ensure it works, but still can't solve the bug.Finally, I use the command below to see the message generated by xfce4-panel.
#xfce4-panel -q (quit xfce4-panel)
and it show something as follow:
xfce4-panel-Message: Plugin MY_PLUGIN_NAME has been automatically restarted after crash.
I think it is the critical point causing my program function to work wrong.Afterward,I tested the xfce4-mount-plugin(original version rather than my program), the message still occur sometimes(I think it happen arbitrarily).So I wonder what wrong with the plugin(version?compile parameter?...)
Platform:FreeBSD 9.0 release xfce4.10
I found it my bug.:)I have repaired it, and thank for everyone viewing my question.