We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now


VS 2008 C# Screen Lockups

rwheeler23 asked
Medium Priority
Last Modified: 2012-05-11
I have a series class libraries that I have added to an external application that present various screens to the users. About 2 or 3 times a month all screens become unresponsive and the solution is to leave the application and come back in. It is virtually impossible to repeat what is causing this, I have tested all the screens individually and inside each program I have error capture routines that never return anything, the programs simply do not run. What kinds of traps can I use to determine why they fail to fire when called? I have attached a sample of my code to show how I invoke forms.
public void ViewAppliedDocuments(object sender, EventArgs e)
            if (ViewAppliedDocumentsForm == null || ViewAppliedDocumentsForm.Created == false)
                ViewAppliedDocumentsForm = new frmViewAppliedDocuments();


Open in new window

Watch Question

Unlock this solution and get a sample of our free trial.
(No credit card required)


Good point, there are about 12 pieces of code. I will check them all for the disposal of the form. All of my programs have an exit button plus they can click on the 'X' . I will  make sure the dispose method is in both places. I have never used the garbage collector. Can you provide any links that provide insight on how to use this?
Unlock this solution and get a sample of our free trial.
(No credit card required)
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.