How to improve Windows application performance?
-
Hi I have developed one windows application ( it is testing application) which is used to test real hardwares.. it has lot thread running in the background that will constantly monitor the hardware communication. Also my application is an touch screen application, so i have used lot of images for buttons. I am facing sometimes the Application is hanging after i ackwnoledging message box during application execution. During that time... CPU is 100% utilized.. i think if the memory is full..... button click events will not be handled.. (but at that time i could able to open/close other applications :( ) So how to make my application is very effect in order to avoid these situations. I have tired GC. Objects.Dispose().. but still the problem is there I am going to try ngen.exe! any ideas or thoughts are welcomed! Thanks srini
-
Hi I have developed one windows application ( it is testing application) which is used to test real hardwares.. it has lot thread running in the background that will constantly monitor the hardware communication. Also my application is an touch screen application, so i have used lot of images for buttons. I am facing sometimes the Application is hanging after i ackwnoledging message box during application execution. During that time... CPU is 100% utilized.. i think if the memory is full..... button click events will not be handled.. (but at that time i could able to open/close other applications :( ) So how to make my application is very effect in order to avoid these situations. I have tired GC. Objects.Dispose().. but still the problem is there I am going to try ngen.exe! any ideas or thoughts are welcomed! Thanks srini
Most likely you have a loop somewhere that is taking some time to execute. Of if it isn't a loop it is just a long running process. Usually when I hear cpu 100% I think of a loop going out of control. Anyway, I would look for something like that. Next you if you do have a long running looping process you can every ten loops or every 100 loops do an Application.DoEvents() This will allow the processing of click events and refresh the form. Hope that helps. Ben