ImageViewerWpfControl hangs on construction

Hi, I am trying to update our Winforms-player to Wpf and I am getting some weird behavior that I need help with.

Until now I have only done VideoOS.Platform.SDK.Environment.Initialize() and then used the ImageViewerControl without problems.

When I am using ImageViewerWpfControl instead, I get a text in the picture frame saying “ImageViewerWpfControl implementation not loaded”. I assume I also need to run VideoOS.Platform.SDK.UI.Environment.Initialize(), but when I do that the constructor for ImageViewerWpfControl just hangs. The last thing I see in the debug output is

'Tennotech.Hilding.Watchman.exe' (CLR v4.0.30319: Tennotech.Hilding.Watchman.exe): Loaded 'M:\devel\tennotech\hilding\watchman\BuildArtifacts\bin\Debug\VideoOS.Platform.SDK.Export.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Tennotech.Hilding.Watchman.exe' (CLR v4.0.30319: Tennotech.Hilding.Watchman.exe): Loaded 'M:\devel\tennotech\hilding\watchman\BuildArtifacts\bin\Debug\VideoOS.DatabaseUtility.Common.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Tennotech.Hilding.Watchman.exe' (CLR v4.0.30319: Tennotech.Hilding.Watchman.exe): Loaded 'M:\devel\tennotech\hilding\watchman\BuildArtifacts\bin\Debug\VideoOS.Platform.Primitives.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Setting decoding adapter to 1

Thing is that if I construct a ImageViewerWpfControl right after VideoOS.Platform.SDK.UI.Environment.Initialize() it does not hang, so it feels like something gets corrupted on the way. I can use the WinForms ImageViewerControl with VideoOS.Platform.SDK.UI.Environment.Initialize() without any problem. Any ideas? Can I enable some logging to help me out? I am using MIPSDK 2017 R3 64-bit in a .Net 4.5-application.

We were unable to reproduce this at Milestone Support.

Can you reproduce the issue if you use the PlaybackWpfUser sample or does this work as expected?

If this works and the difference that makes it work better does not reveal itself on a glanse.. Can you submit a minimal project where you can reproduce the issue as a support case? With your code here in the Milestone test lab I hope we can find the cause.

Hi Bo,

The PlaybackWpfUser-project works great. The issue is only with my project. I will try to strip it down as much as I can and send it to you.

Best regards,

/Ola

Hi again Bo,

I am uploading a project which is almost empty. Still after login when I am trying to load ImageViewerWpfControl the application freezes. Would be interesting to see if you get the same behavior. You can login with any non-empty user/password.

/Ola

I have downloaded the project. I have run it with the same result as you describe. I will try to get help in Milestone Development on how to best debug this..

Excuse me, any update on this? Got the same issue on a WPF app I’m developing

Thanks

The issue was on what is now a very old version of the MIP SDK, and was solved in a newer version.

If you use the newest MIP SDK and see something like this check the initializations are there and are done at startup.

http://doc.developer.milestonesys.com/html/index.html?base=reference/architecture/net_library_initialization.html&tree=tree_2.html

Try to compare with the PlaybackWpfUser sample and see if this sample works for you unmodified.

If you still have the issue please start a new thread.

This happened to me as well, I just build and start the project PlaybackWpfUser from Milestone/componentSamples unmodified, it still show ImageViewerWpfControl implementation not loaded, even in preview mode.

I have already downloaded and installed both the x64 and x86 MIPSDK restributable but the problem still exists.