XProtect Smart Client Plugin Work On First Time But Not Working On Tab Change

i have created a milestone plugin.when i open the xprotect smart client first time my plugin functionality works fine but problem occurs when i switch to different tab like Alarm Manager etc.when i back to my plugin tab from other tab my plugin not works.i have a background worker where i set image of my ui thread using dispatcher.invoke(). when tab change my ui not showing the image

When switching to another workspace / tab your viewitemplugin will be closed, when switching back it will be started over. If you have things you need to persists you will have to do so on close and then read again during init. Likewise, I guess, the new plugin will need to find your background worker when starting again. I hope this background information is sufficient for you to find a way to make it work.

Tip. If you haven’t been using it already this is document is showing you how to debug effectively.

https://developer.milestonesys.com/s/article/debugging-techniques-for-Smart-Client-plugins

i don’t need anything to persists. My plugin Collects frames over socket and show on my imagebox.it works fine on first time but when i change tab and back to my plugin tab i can still receive frames properly but my receive frames is not set on my image box.If I reopen Milestone Than Everything works properly until i click another tab

I do not know what the issue is but my advise is: Debug in order to see what is different second time the plugin starts compared with the first time.

Thanks For Your Reply

@mahadi Hasan@Bo Ellegård Andersen (Milestone Systems)​ I am facing the exact same issue with my workspace plugin. Could you share any solution that worked for you?

Similar to you, I don’t have any data that is expected to persist. I just want my plugin functionality to work as expected after a tab change