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. Other Discussions
  3. The Weird and The Wonderful
  4. Code which caused my PC hang [modified]

Code which caused my PC hang [modified]

Scheduled Pinned Locked Moved The Weird and The Wonderful
16 Posts 10 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.
  • L leppie

    ... you spelt Notepad wrong... In your code snippet, it says: "nodepad.exe".

    xacc.ide - now with TabsToSpaces support
    IronScheme - 1.0 alpha 4a out now (29 May 2008)

    A Offline
    A Offline
    Anand Desai
    wrote on last edited by
    #6

    Ohhh... sorry but that's typing mistake in this site. in my project I actually wrote notepad.exe

    Anand Desai Developer Atharva Infotech

    1 Reply Last reply
    0
    • A Anand Desai

      Hi Coders, Here's a code which I wrote few days ago. When I run it it caused my pc hanged. I had to restart my pc for it. I was creating a windows service few days ago. In that, I put a "Timer Control". And according to it's ticks, I wanted to run my process. And, for checking purpose by mistake I wrote following Process.Start instead of EventLog.WriteEntry in my code:

      private void onTimerEvent(object sender,System.Timers.ElapsedEventArgs e)
      {
      Process.Start("notepad.exe");
      }

      It was ok till now but then I put Timer Duration to 100 milisconds!!!!!!! When I started my Service and Bllllaaaassdsstttt!!!!!!! My screen was full of NotePads.... n kept comming every 100 miliseconds!!!! until I restarted. Anand Desai Developer Atharva Infotech

      A Offline
      A Offline
      AeonBlue
      wrote on last edited by
      #7

      Good choice

      "The shortest distance between two points is under construction" -Noelie ALtito

      1 Reply Last reply
      0
      • A Anand Desai

        Hi Coders, Here's a code which I wrote few days ago. When I run it it caused my pc hanged. I had to restart my pc for it. I was creating a windows service few days ago. In that, I put a "Timer Control". And according to it's ticks, I wanted to run my process. And, for checking purpose by mistake I wrote following Process.Start instead of EventLog.WriteEntry in my code:

        private void onTimerEvent(object sender,System.Timers.ElapsedEventArgs e)
        {
        Process.Start("notepad.exe");
        }

        It was ok till now but then I put Timer Duration to 100 milisconds!!!!!!! When I started my Service and Bllllaaaassdsstttt!!!!!!! My screen was full of NotePads.... n kept comming every 100 miliseconds!!!! until I restarted. Anand Desai Developer Atharva Infotech

        P Offline
        P Offline
        Paul Conrad
        wrote on last edited by
        #8

        Oops :-D

        "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

        1 Reply Last reply
        0
        • D Dan Neely

          #define FILE_NOT_FOUND "notepad.exe"

          Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots. -- Robert Royall

          Y Offline
          Y Offline
          Yusuf
          wrote on last edited by
          #9

          do you mean #define FILE_NOT_FOUND "nodepad.exe" :laugh: :laugh: :laugh: Clue: See previous posts

          Yusuf

          1 Reply Last reply
          0
          • A Anand Desai

            Hi Coders, Here's a code which I wrote few days ago. When I run it it caused my pc hanged. I had to restart my pc for it. I was creating a windows service few days ago. In that, I put a "Timer Control". And according to it's ticks, I wanted to run my process. And, for checking purpose by mistake I wrote following Process.Start instead of EventLog.WriteEntry in my code:

            private void onTimerEvent(object sender,System.Timers.ElapsedEventArgs e)
            {
            Process.Start("notepad.exe");
            }

            It was ok till now but then I put Timer Duration to 100 milisconds!!!!!!! When I started my Service and Bllllaaaassdsstttt!!!!!!! My screen was full of NotePads.... n kept comming every 100 miliseconds!!!! until I restarted. Anand Desai Developer Atharva Infotech

            Y Offline
            Y Offline
            Yusuf
            wrote on last edited by
            #10

            :laugh: You installed notepad.exe, :cool: hide that from the boss.. :laugh:

            Yusuf

            1 Reply Last reply
            0
            • A Anand Desai

              Hi Coders, Here's a code which I wrote few days ago. When I run it it caused my pc hanged. I had to restart my pc for it. I was creating a windows service few days ago. In that, I put a "Timer Control". And according to it's ticks, I wanted to run my process. And, for checking purpose by mistake I wrote following Process.Start instead of EventLog.WriteEntry in my code:

              private void onTimerEvent(object sender,System.Timers.ElapsedEventArgs e)
              {
              Process.Start("notepad.exe");
              }

              It was ok till now but then I put Timer Duration to 100 milisconds!!!!!!! When I started my Service and Bllllaaaassdsstttt!!!!!!! My screen was full of NotePads.... n kept comming every 100 miliseconds!!!! until I restarted. Anand Desai Developer Atharva Infotech

              L Offline
              L Offline
              Llasus
              wrote on last edited by
              #11

              Anand Desai wrote:

              My screen was full of NotePads.... n kept comming every 100 miliseconds!!!! until I restarted.

              :laugh: It's the revenge of the notepads because you've been spending too much time with your insert dev env name here. ;P

              J 1 Reply Last reply
              0
              • L Llasus

                Anand Desai wrote:

                My screen was full of NotePads.... n kept comming every 100 miliseconds!!!! until I restarted.

                :laugh: It's the revenge of the notepads because you've been spending too much time with your insert dev env name here. ;P

                J Offline
                J Offline
                Jonathan C Dickinson
                wrote on last edited by
                #12

                Get it an expensive perfume or scrap-booking kit to shut it up.

                He who asks a question is a fool for five minutes. He who does not ask a question remains a fool forever. [Chineese Proverb] Jonathan C Dickinson (C# Software Engineer)

                1 Reply Last reply
                0
                • A Anand Desai

                  Hi Coders, Here's a code which I wrote few days ago. When I run it it caused my pc hanged. I had to restart my pc for it. I was creating a windows service few days ago. In that, I put a "Timer Control". And according to it's ticks, I wanted to run my process. And, for checking purpose by mistake I wrote following Process.Start instead of EventLog.WriteEntry in my code:

                  private void onTimerEvent(object sender,System.Timers.ElapsedEventArgs e)
                  {
                  Process.Start("notepad.exe");
                  }

                  It was ok till now but then I put Timer Duration to 100 milisconds!!!!!!! When I started my Service and Bllllaaaassdsstttt!!!!!!! My screen was full of NotePads.... n kept comming every 100 miliseconds!!!! until I restarted. Anand Desai Developer Atharva Infotech

                  J Offline
                  J Offline
                  Jamie Nordmeyer
                  wrote on last edited by
                  #13

                  Could've been worse:

                  private void onTimerEvent(object sender,System.Timers.ElapsedEventArgs e){
                  Process.Start("devenv.exe");
                  }

                  Kyosa Jamie Nordmeyer - Taekwondo Yi (2nd) Dan Portland, Oregon, USA

                  A 1 Reply Last reply
                  0
                  • J Jamie Nordmeyer

                    Could've been worse:

                    private void onTimerEvent(object sender,System.Timers.ElapsedEventArgs e){
                    Process.Start("devenv.exe");
                    }

                    Kyosa Jamie Nordmeyer - Taekwondo Yi (2nd) Dan Portland, Oregon, USA

                    A Offline
                    A Offline
                    Anand Desai
                    wrote on last edited by
                    #14

                    No it can go worse far If I put that this windows service StartMode to "Automatic": Just imagine, when ever I start my pc, my blasting windows service also get started automatically n starts throwing notepads to my desktop every 100 miliseconds!!!...untill I restart.. and loop continue........ DeadLock Hey, This seems simple virus, insn't it?

                    Anand Desai Developer Atharva Infotech

                    J 1 Reply Last reply
                    0
                    • A Anand Desai

                      No it can go worse far If I put that this windows service StartMode to "Automatic": Just imagine, when ever I start my pc, my blasting windows service also get started automatically n starts throwing notepads to my desktop every 100 miliseconds!!!...untill I restart.. and loop continue........ DeadLock Hey, This seems simple virus, insn't it?

                      Anand Desai Developer Atharva Infotech

                      J Offline
                      J Offline
                      Jamie Nordmeyer
                      wrote on last edited by
                      #15

                      Yeah, don't get any ideas. :laugh:

                      Kyosa Jamie Nordmeyer - Taekwondo Yi (2nd) Dan Portland, Oregon, USA

                      N 1 Reply Last reply
                      0
                      • J Jamie Nordmeyer

                        Yeah, don't get any ideas. :laugh:

                        Kyosa Jamie Nordmeyer - Taekwondo Yi (2nd) Dan Portland, Oregon, USA

                        N Offline
                        N Offline
                        neilmajithia
                        wrote on last edited by
                        #16

                        Surely running in safe mode would give you the chance to correct this

                        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