With Windows Forms I used to just spawn a new thread and call:
Application.Run(form)
but with WPF and .NET 3 I'm now getting an error on the second spawn saying
that each AppDomain is only allowed a single WPF application.
What is the workaround? Is there a global Application, or should I create
one and export it, or should I spawn new AppDomains? If the latter, what
are the implications of doing this with respect to communication and how
should I handle them?
I'm trying to spawn concurrent visualizations on separate threads from an
interactive programming environment. Users are free to edit the
visualizations both from their own GUI and programmatically from the
programming environment. Communication is current achieved through
thread-safe properties that synchronize updates using mutexes.
--
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/products/?u