N
NickP
Hi there,
I am using some IPC communication classes that I created a while back
and have never experienced any issues with them whatsoever.
This is how I am currently using it,
1. When my Add-In loads and the Startup event is raised I start the IPC
server. As this only happens once during the entire lifetime of Word.
2. When the SmartTag verb is called I communicate the verb with the
server.
3. The server recieves the messages.
Unfortunately this is where things start going a little odd. At
current, any object that I try accessing, causes the Add-In and Word to just
freeze, with no error messages. I originally thought that this could be due
to a cross threading operation. So in order to resolve this I have done the
following,
1. When my Add-In loads and I create the IPC server, I also create a
CustomTasksPane. The Add-In supports multiple custom task panes, but I grab
a reference to the first instance in order to use it for Invocation back to
the thread that the Add-In is running on.
2. When the server recieves the messages, I tell the CustomTasksPane to
invoke a method that handles the messages.
Unfortunately the second I access the CustomTasksPane, the Add-In and
Word, just freeze, in exactly the same way as before. I have tried checking
to see if the CustomTasksPane object is Nothing, but it is not. I have also
tried wrapping the call within a Try Catch block, this has no effect either.
I am not quite sure what could be causing this, as I said previously, it
works great in any other .NET application I have used it in, and that has
been quite a few. Anyways, I'll keep plugging at it as usual, but if anyone
has any helpful suggestions that would be fantastic!
Nick.
I am using some IPC communication classes that I created a while back
and have never experienced any issues with them whatsoever.
This is how I am currently using it,
1. When my Add-In loads and the Startup event is raised I start the IPC
server. As this only happens once during the entire lifetime of Word.
2. When the SmartTag verb is called I communicate the verb with the
server.
3. The server recieves the messages.
Unfortunately this is where things start going a little odd. At
current, any object that I try accessing, causes the Add-In and Word to just
freeze, with no error messages. I originally thought that this could be due
to a cross threading operation. So in order to resolve this I have done the
following,
1. When my Add-In loads and I create the IPC server, I also create a
CustomTasksPane. The Add-In supports multiple custom task panes, but I grab
a reference to the first instance in order to use it for Invocation back to
the thread that the Add-In is running on.
2. When the server recieves the messages, I tell the CustomTasksPane to
invoke a method that handles the messages.
Unfortunately the second I access the CustomTasksPane, the Add-In and
Word, just freeze, in exactly the same way as before. I have tried checking
to see if the CustomTasksPane object is Nothing, but it is not. I have also
tried wrapping the call within a Try Catch block, this has no effect either.
I am not quite sure what could be causing this, as I said previously, it
works great in any other .NET application I have used it in, and that has
been quite a few. Anyways, I'll keep plugging at it as usual, but if anyone
has any helpful suggestions that would be fantastic!
Nick.