Storing a Form in a Hashtable

  • Thread starter Thread starter tcomer
  • Start date Start date
Dave said:
Hi Bruce,

Well, since the OP's code seems to be responding to a remoting event, I
assumed that the code was executing on a ThreadPool thread.

Nice catch, then. :-)
 
Hi Bruce,

Lol - do I detect sarcasm? ;)

Maybe I should have been clearer... the point was that ShowDialog doesn't
sound like a very good idea to me - but that's actually a different subject
then what your response was addressing. I completely agree with you, I just
thought I'd tack it on so the OP realizes that there may still be a problem.
There are much better options than calling ShowDialog such as
OneWayAttribute, just calling Show or using ISynchronizeInvoke.BeginInvoke,
as you've also mentioned as an option, but only as long as EndInvoke is
called in the asynchronously callback.
 
Back
Top