Global WPF application

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jon Harrop

    Global WPF application


    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 programmaticall y 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.
    Business Das perfekte Beratungsgespräch: Tipps und Tricks Sabine Henschel4. Juli 2024 Business Mindset Coach: Ihr Schlüssel zu einem neuen Denken Sabine Henschel4. Juli 2024 Familie Kollegiale Beratung in der Pflege: Zusammen stark Sabine Henschel3. Juli 2024 Familie Was kostet eine Beratung beim Notar wegen Erbrecht: Ein Ratgeber Sabine Henschel2. Juli 2024 Business Was kostet eine

Working...