Click here to Skip to main content
15,666,844 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am working on a testing Automation application. It's a .Net windows application. On dropdown selection change we are opening different forms/ pages. For few dropdown selection change, it's working fine. Some time randomly application gets hang rather full pc gets hang(keyboard, mouse nothing works.) on dropdown selection change. how can I resolve this bug. Please help me out.It's urgent.

on dropdown selection change...I have added following code

form1 frm = new form1 (ref radPageView1); 
frm.Visible = false;
frm.ParentFormInstance = oMainForm;
frm.MdiParent = oMainForm;
frm.returnToMainForm = true;
frm.WindowState = FormWindowState.Minimized;
frm.WindowState = FormWindowState.Maximized;
frm.Visible = true;
Updated 4-Nov-15 21:03pm
Sinisa Hajnal 5-Nov-15 2:40am    
Is there a place where you dispose of the used forms? Maybe you just run out of resources?

I suggest you put some logging into the app and into each form to see where it blocks. Or find out (trial and error) exact sequence that causes the crash - may be changing selection too fast, two particular forms that are opened one after another and one depends on another or any number of things.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900