S
Stephan Steiner
Hi
I think I have a deadlock issue that I can't seem to avoid. Basically, I
have a service firing remote events, and an event sink on the same machine
processing those events. The remote events are no problem, they arrive just
fine. However, then my communicator class sends the events to my GUI class,
which is supposed to process them. I have two events, one that results in
the application icon to be changed (and works just fine), and one that's
supposed to add a text line to a RichTextBox of my application.
While the event is properly fired by the communicator class and properly
received by the GUI class, the GUI class class can't process it. If I have
the GUI class just dump the contents of the event to the commandline, things
work just fine. However, if I want to add the text received with the event
to my RichTextBox via RichTextBox.AppendText(), then my application stops
responding for good.
So far I'm not using any threading so it can't be that the event is fired
from another thread context, but just for the heck of it, I created an
additional method in the GUI that does just the GUI update, and have my
event receiver call it via myGuiClass.Invoke(new
EventListener(GUIUpdateMethod)), but that doesn't help either.
Any ideas?
Regards
Stephan
I think I have a deadlock issue that I can't seem to avoid. Basically, I
have a service firing remote events, and an event sink on the same machine
processing those events. The remote events are no problem, they arrive just
fine. However, then my communicator class sends the events to my GUI class,
which is supposed to process them. I have two events, one that results in
the application icon to be changed (and works just fine), and one that's
supposed to add a text line to a RichTextBox of my application.
While the event is properly fired by the communicator class and properly
received by the GUI class, the GUI class class can't process it. If I have
the GUI class just dump the contents of the event to the commandline, things
work just fine. However, if I want to add the text received with the event
to my RichTextBox via RichTextBox.AppendText(), then my application stops
responding for good.
So far I'm not using any threading so it can't be that the event is fired
from another thread context, but just for the heck of it, I created an
additional method in the GUI that does just the GUI update, and have my
event receiver call it via myGuiClass.Invoke(new
EventListener(GUIUpdateMethod)), but that doesn't help either.
Any ideas?
Regards
Stephan