Lync NotInitializedException incompatible with windows 8

I use lync Sdk to dock a Lync conversation in my own wfp application. The problem is that when I try to execute the dock as follows:

public void Dock(Conversation conversation, IntPtr host) { try { ConversationWindow window = _automation.GetConversationWindow(conversation); if (window.State == ConversationWindowState.Initialized) { window.Dock(host); } } catch (Exception ex) { } } 

once a window. The change in state between the scan and docking and on windows 8 the generated exception does not seem to be perceptible and causes my application to crash when the exception is simply caught in Windows 7.

The exception is of type Microsoft.Lync.Model.NotInitializedException

+7
c # windows-8 try-catch lync-client-sdk
source share
2 answers

I found that Lync can be very subtle as to which thread it is performing operations on. Some of the strangest actions we observe are when calls must be made in the thread that created the conference / conversation and called in another thread. Seeing no exceptions, there was definitely one of the oddities in these scenarios.

If I were you, I would select a thread to perform Lync operations and place these operations where it was needed (possibly with any callbacks to make the interface nice and clean).

If you just want to verify that streaming is your problem, you can always send these calls to the WPF manager for confirmation (after confirmation, you will need to have your own thread model if you do not want to block the user interface)

0
source share

No answer, but suggestion. You can also try posting your question here:

Lync Client Developer Forum

If your problem is a mistake, it will catch the attention of the product group. If not, there is also the opportunity to answer your question and solve the problem.

0
source share

All Articles