Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 148339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T08:56:28+00:00 2026-05-11T08:56:28+00:00

The last few months my application grew bigger and bigger. It’s runnable as Wpf

  • 0

The last few months my application grew bigger and bigger. It’s runnable as Wpf .EXE and XBAP at the moment, both sharing the same code. At a few points in the application, the application locks. After invertigating I found out that the application is loading dlls from the GAC at these moments.

What happens is that the application starts, this takes a couple of seconds, and the user is presented with a logon screen. At the moment the user click the OK button to logon the application locks, because it has to load all kinds of dlls for the rest of the application. Because they’re loaded from the UI thread all animations stop playing, event the mouseover of the OK button doesn’t finish.

It started out as seconds, but at the moment at some points you’ll have to wait a couple of minutes before the app continues. I think it’s unexceptable.

Is there a way to move the loading of dlls from the GAC to another thread? So a ‘Please wait while application is loaded’-animation can be played? Or, even better, can I move the loading of all dlls needed to the start of the app, so there would be less waiting going on when working.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T08:56:28+00:00Added an answer on May 11, 2026 at 8:56 am

    Yes (for ‘seconds’ at least; not sure it scales to ‘minutes’) – at the login screen, just spin up a worker thread (perhaps with ThreadPool) that does something that requires those assemblies. This will cause them to load…

    ThreadPool.QueueUserWorkItem(LoadAssemblies); ... static void LoadAssemblies(object state) {     Widget1 widget = new Widget1(); // but just let it go (perhaps dispose it) } 

    You are now off the UI thread, loading your assemblies while the user types their password.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Over the last few months I've often come across the same Design obstacles when
I've been spending the last few months on developing a (my first) Rails application
I am in iPhone Application Development since last few months only.. So, I have
I've been doing some WPF development for the last few months, and I've recently
I have been developing an application over the last few months using EF code
Over the last few months, I've published several revisions to my app. Unfortunately, I
I've been developing an iPhone app for the last few months. Recently I wanted
Over the last few months, there have been a number of rapid developments in
For the last few months, I've been putting some serious effort into learning Haskell
Over the last few months I've come across various chatter of external/private libraries not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.