Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to improve Windows application performance?

How to improve Windows application performance?

Scheduled Pinned Locked Moved C#
performancehardwaretestingbeta-testinghelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    engsrini
    wrote on last edited by
    #1

    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

    K 1 Reply Last reply
    0
    • E engsrini

      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

      K Offline
      K Offline
      kubben
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups