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. The Lounge
  3. Hey, my Windows service is 78% restarted! We are almost there!!

Hey, my Windows service is 78% restarted! We are almost there!!

Scheduled Pinned Locked Moved The Lounge
helpquestion
4 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
    Erick Sgarbi
    wrote on last edited by
    #1

    I was just doing some work on SqlServer by injecting a few hundred of thounsands of records when i realized the whole thing got stuck :mad:...that's ok i am used to that. What would it be your next step after a service got stucked? well i just went straight in to restart the SqlServer services, so i went to right click on that specific service and pressed "restart"! Well again, I just realised that the actual notification for showing the progress back to the user for service restarting (and starting a service,...) is a "Progress Bar" :confused:, I believe we should use progress bars only when knowing (or having a pretty good stimate) of the total value for that particular process, but how can we get the total amount of time the system will take to restart a service? What if the service can not be restarted X| ? Well, as usual, when it got to the middle of the progress bar than it just got stalled... Right! I remember back in NT4 that wasnt any progress bar for showing the progress of restarting a service, I think it was a clock ticking (just like in many unix like OS's ;P ) Perhaps that was a better way to show an Unvalued process (even though it is just to keep the user entertained). Surely back than if we had a progress bar it would be nightmare for the user can you imagine, "Hey, my Windows service is 78% restarted! We are almost there!!" ;P. Perhaps, MS should put some effort in notifing the user when there is a deadlock or when the service can not possible be restarted instead of showing a dummy progress bar ;). Cheers Erick

    M 1 Reply Last reply
    0
    • E Erick Sgarbi

      I was just doing some work on SqlServer by injecting a few hundred of thounsands of records when i realized the whole thing got stuck :mad:...that's ok i am used to that. What would it be your next step after a service got stucked? well i just went straight in to restart the SqlServer services, so i went to right click on that specific service and pressed "restart"! Well again, I just realised that the actual notification for showing the progress back to the user for service restarting (and starting a service,...) is a "Progress Bar" :confused:, I believe we should use progress bars only when knowing (or having a pretty good stimate) of the total value for that particular process, but how can we get the total amount of time the system will take to restart a service? What if the service can not be restarted X| ? Well, as usual, when it got to the middle of the progress bar than it just got stalled... Right! I remember back in NT4 that wasnt any progress bar for showing the progress of restarting a service, I think it was a clock ticking (just like in many unix like OS's ;P ) Perhaps that was a better way to show an Unvalued process (even though it is just to keep the user entertained). Surely back than if we had a progress bar it would be nightmare for the user can you imagine, "Hey, my Windows service is 78% restarted! We are almost there!!" ;P. Perhaps, MS should put some effort in notifing the user when there is a deadlock or when the service can not possible be restarted instead of showing a dummy progress bar ;). Cheers Erick

      M Offline
      M Offline
      Mel Feik
      wrote on last edited by
      #2

      who you calling a dummy??? I like progress bars! Just kidding. That sounded funny to me when it crossed my mind so I went ahead and posted it. --------------------------------------------- huh? If they don't get the basic research and learning skills down then they'll end up having a very hard life (Either that or they'll become managers) - Micheal P Butler

      E 1 Reply Last reply
      0
      • M Mel Feik

        who you calling a dummy??? I like progress bars! Just kidding. That sounded funny to me when it crossed my mind so I went ahead and posted it. --------------------------------------------- huh? If they don't get the basic research and learning skills down then they'll end up having a very hard life (Either that or they'll become managers) - Micheal P Butler

        E Offline
        E Offline
        Erick Sgarbi
        wrote on last edited by
        #3

        Mel Feik wrote: I like progress bars! Me too!!!;P However my was that when restarting a service note how the progress bar always goes very quick from the middle to the end, which means that the service was already restarted when the progress bar got to 50%. I picture something like this: //Is real work done? if (serviceIsAlreadyRestarted == true) { //Hey, I was caught up with my pants down... for(int i = dummyProgressBar.Value; i <= 100;i++) { //Quick this is looking silly by now.... dummyProgressBar.Value += i; } //hehehe, naive User!!!! this.Close(); } Mel Feik wrote: That sounded funny to me when it crossed my mind so I went ahead a posted it. Me too!!!:-D Cheers, Erick

        M 1 Reply Last reply
        0
        • E Erick Sgarbi

          Mel Feik wrote: I like progress bars! Me too!!!;P However my was that when restarting a service note how the progress bar always goes very quick from the middle to the end, which means that the service was already restarted when the progress bar got to 50%. I picture something like this: //Is real work done? if (serviceIsAlreadyRestarted == true) { //Hey, I was caught up with my pants down... for(int i = dummyProgressBar.Value; i <= 100;i++) { //Quick this is looking silly by now.... dummyProgressBar.Value += i; } //hehehe, naive User!!!! this.Close(); } Mel Feik wrote: That sounded funny to me when it crossed my mind so I went ahead a posted it. Me too!!!:-D Cheers, Erick

          M Offline
          M Offline
          Mel Feik
          wrote on last edited by
          #4

          okay.. restating ... I used to like progress bars... now I only like bars;P or maybe I meant I only progress bars that work:laugh: ... heck.. let me ponder on the first answer a while.. I'll get back to you... when.. um.. the bar closes... ;) --------------------------------------------- huh? If they don't get the basic research and learning skills down then they'll end up having a very hard life (Either that or they'll become managers) - Micheal P Butler

          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