Hi Guys,
Can help me by providing some info on using WPF Image in plugin usercontrol.
I am using WPF Image to load the alarm snapshot, but getting Object reference not set to an instance of an object Exception, whereas i can load image in normal WPF application.
Can you please show us a code snippet how you retrieve and use the snapshot?
Please also show the stack trace when you get the exception shown in Visual Studio during debugging, so that we perhaps can see what is null.
This knowledge base article might be useful: https://developer.milestonesys.com/s/article/debugging-techniques-for-Smart-Client-plugins
i have used alarm preview sample to read the alarm line and loading image from the path available in the customtag
attached the code snippet.
Your LoadEPFImage() comes before InitializeComponent() .. That cannot work.