Ron
12/24/2002 6:38:00 AM
I'm getting;
'Controls created on one thread cannot be parented to a
control on a different thread.'
exception as a result of one thread inserting nodes into
a XmlDocument and another thread's handler execution;
xmlDocument.NodeInserted += new HodeInsertedHandler
(OnNodeInserted)
It is a listener to the document and tt is called as a
result of the insertion. This handler creates and
attaches new controls to the existing container. That is
when the excption is thrown.
It prevents me from creating seperate threads to executed
actions that take long time to finish. I need to be
asynchronously notified of the action complition in order
to make modifications to my user interface based on the
changes resulting for the thread execution. It sound to
me like a major design problem with .NET.