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. Is this normal?

Is this normal?

Scheduled Pinned Locked Moved The Lounge
c++questioncareer
30 Posts 18 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.
  • P PaulowniaK

    I don't call myself a programmer, nor a software developer. I'm just doing a job that I can sort of do... on a good day... Anyway, I'm writing a small test app for a DLL I've been told to develop in C++ in VS2005. My whole PC froze on me twice in about 2 hours. The latest incident was so bad I had to resort to the "big red button" approach, i.e. kill the power. Actually, this isn't the first time this happened to me. Granted I'm doing dodgy things with threads when I don't really understand them, but it shouldn't keep locking me out like this, should it?

    C Offline
    C Offline
    CPallini
    wrote on last edited by
    #6

    PaulowniaK wrote:

    Granted I'm doing dodgy things with threads when I don't really understand them, but it shouldn't keep locking me out like this, should it?

    It may happen, while you shouldn't mess up with threads that way. :)

    If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
    This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
    [My articles]

    1 Reply Last reply
    0
    • P PaulowniaK

      I don't call myself a programmer, nor a software developer. I'm just doing a job that I can sort of do... on a good day... Anyway, I'm writing a small test app for a DLL I've been told to develop in C++ in VS2005. My whole PC froze on me twice in about 2 hours. The latest incident was so bad I had to resort to the "big red button" approach, i.e. kill the power. Actually, this isn't the first time this happened to me. Granted I'm doing dodgy things with threads when I don't really understand them, but it shouldn't keep locking me out like this, should it?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #7

      PaulowniaK wrote:

      I don't call myself a programmer, nor a software developer.

      Nor do I. Stop what you are doing and get a different job. And yes, you can quite easialy lock the machine with threads it all depends on priority, have yiou been messing with thread prioirity too?

      Morality is indistinguishable from social proscription

      I 1 Reply Last reply
      0
      • P PaulowniaK

        I don't call myself a programmer, nor a software developer. I'm just doing a job that I can sort of do... on a good day... Anyway, I'm writing a small test app for a DLL I've been told to develop in C++ in VS2005. My whole PC froze on me twice in about 2 hours. The latest incident was so bad I had to resort to the "big red button" approach, i.e. kill the power. Actually, this isn't the first time this happened to me. Granted I'm doing dodgy things with threads when I don't really understand them, but it shouldn't keep locking me out like this, should it?

        M Offline
        M Offline
        Mycroft Holmes
        wrote on last edited by
        #8

        Happens all the time, I reboot every night and I expect a lock up a couple of times a week. I figure every time I hit a bug while developing there is a little bit of crap left over and it sort of accumulates in the corners. Needs a cold boot to clear it out. I mean I have had this issue since early 90s when I started writing excel macros, not a lot has changed in this area, I can still manage to crash a computer regularly.

        Never underestimate the power of human stupidity RAH

        1 Reply Last reply
        0
        • P PaulowniaK

          I don't call myself a programmer, nor a software developer. I'm just doing a job that I can sort of do... on a good day... Anyway, I'm writing a small test app for a DLL I've been told to develop in C++ in VS2005. My whole PC froze on me twice in about 2 hours. The latest incident was so bad I had to resort to the "big red button" approach, i.e. kill the power. Actually, this isn't the first time this happened to me. Granted I'm doing dodgy things with threads when I don't really understand them, but it shouldn't keep locking me out like this, should it?

          N Offline
          N Offline
          NormDroid
          wrote on last edited by
          #9

          PaulowniaK wrote:

          Granted I'm doing dodgy things with threads when I don't really understand them

          Oh dear :sigh: Threads and the unexperienced are a recipe for disaster.

          All right, you guys, I got eight crates of Ipecac from Mort. All on my tab. Now, whoever goes the longest without puking gets the last piece of pie in the fridge.

          P 1 Reply Last reply
          0
          • P PaulowniaK

            I don't call myself a programmer, nor a software developer. I'm just doing a job that I can sort of do... on a good day... Anyway, I'm writing a small test app for a DLL I've been told to develop in C++ in VS2005. My whole PC froze on me twice in about 2 hours. The latest incident was so bad I had to resort to the "big red button" approach, i.e. kill the power. Actually, this isn't the first time this happened to me. Granted I'm doing dodgy things with threads when I don't really understand them, but it shouldn't keep locking me out like this, should it?

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #10

            With threads this is quite possible. If you are doing work like this get your manager to OK buying a couple of decent books.

            Join the cool kids - Come fold with us[^]

            1 Reply Last reply
            0
            • P PaulowniaK

              I don't call myself a programmer, nor a software developer. I'm just doing a job that I can sort of do... on a good day... Anyway, I'm writing a small test app for a DLL I've been told to develop in C++ in VS2005. My whole PC froze on me twice in about 2 hours. The latest incident was so bad I had to resort to the "big red button" approach, i.e. kill the power. Actually, this isn't the first time this happened to me. Granted I'm doing dodgy things with threads when I don't really understand them, but it shouldn't keep locking me out like this, should it?

              M Offline
              M Offline
              Mark_Wallace
              wrote on last edited by
              #11

              There's a verrrry good article Here[^]. It might take a bit to wade through it, if you're unfamiliar with the language/syntax, but the logic and usage are impeccable.

              I wanna be a eunuchs developer! Pass me a bread knife!

              P 1 Reply Last reply
              0
              • P PaulowniaK

                I don't call myself a programmer, nor a software developer. I'm just doing a job that I can sort of do... on a good day... Anyway, I'm writing a small test app for a DLL I've been told to develop in C++ in VS2005. My whole PC froze on me twice in about 2 hours. The latest incident was so bad I had to resort to the "big red button" approach, i.e. kill the power. Actually, this isn't the first time this happened to me. Granted I'm doing dodgy things with threads when I don't really understand them, but it shouldn't keep locking me out like this, should it?

                J Offline
                J Offline
                Joe Woodbury
                wrote on last edited by
                #12

                Odds are you have runaway threads, which cause a system to appear locked up.

                P 1 Reply Last reply
                0
                • C Christian Graus

                  Well, to review, you're not a programmer, you're writing code involving threads, on an out of data compiler ( although, to be fair, not by much ), and it sounds like the computer you've been given is a piece of rubbish. Who do you work for ?

                  Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                  R Offline
                  R Offline
                  Richard Jones
                  wrote on last edited by
                  #13

                  Christian Graus wrote:

                  Who do you work for ?

                  I realize this is old, but I was hoping he would say "Telstra" :laugh:

                  "The activity of 'debugging', or removing bugs from a program, ends when people get tired of doing it, not when the bugs are removed." - "Datamation", January 15, 1984

                  1 Reply Last reply
                  0
                  • N NormDroid

                    PaulowniaK wrote:

                    Granted I'm doing dodgy things with threads when I don't really understand them

                    Oh dear :sigh: Threads and the unexperienced are a recipe for disaster.

                    All right, you guys, I got eight crates of Ipecac from Mort. All on my tab. Now, whoever goes the longest without puking gets the last piece of pie in the fridge.

                    P Offline
                    P Offline
                    PaulowniaK
                    wrote on last edited by
                    #14

                    Norm .net wrote:

                    Oh dear Sigh Threads and the unexperienced are a recipe for disaster.

                    That's... very comforting to know... ... ... X|

                    N 1 Reply Last reply
                    0
                    • J Joe Woodbury

                      Odds are you have runaway threads, which cause a system to appear locked up.

                      P Offline
                      P Offline
                      PaulowniaK
                      wrote on last edited by
                      #15

                      Joe Woodbury wrote:

                      Odds are you have runaway threads, which cause a system to appear locked up.

                      Most likely...:thumbsup:

                      1 Reply Last reply
                      0
                      • M Mark_Wallace

                        There's a verrrry good article Here[^]. It might take a bit to wade through it, if you're unfamiliar with the language/syntax, but the logic and usage are impeccable.

                        I wanna be a eunuchs developer! Pass me a bread knife!

                        P Offline
                        P Offline
                        PaulowniaK
                        wrote on last edited by
                        #16

                        Thanks for the info.:thumbsup: It's quite hard, but I'll try reading it.

                        1 Reply Last reply
                        0
                        • P PaulowniaK

                          Norm .net wrote:

                          Oh dear Sigh Threads and the unexperienced are a recipe for disaster.

                          That's... very comforting to know... ... ... X|

                          N Offline
                          N Offline
                          NormDroid
                          wrote on last edited by
                          #17

                          You know, you wouldn't do open heart surgery without training and experience, the same goes with software engineering.

                          All right, you guys, I got eight crates of Ipecac from Mort. All on my tab. Now, whoever goes the longest without puking gets the last piece of pie in the fridge.

                          P 1 Reply Last reply
                          0
                          • N NormDroid

                            You know, you wouldn't do open heart surgery without training and experience, the same goes with software engineering.

                            All right, you guys, I got eight crates of Ipecac from Mort. All on my tab. Now, whoever goes the longest without puking gets the last piece of pie in the fridge.

                            P Offline
                            P Offline
                            PaulowniaK
                            wrote on last edited by
                            #18

                            Norm .net wrote:

                            You know, you wouldn't do open heart surgery without training and experience

                            True... but it's not so common that you kill someone by writing bad code... I'm sure you can (f-ing up the software used in air traffic control, say) but in my case, the worst that is going to happen is that some ionized molecules are going to go to ionized molecule heaven.

                            I J 2 Replies Last reply
                            0
                            • P PaulowniaK

                              I don't call myself a programmer, nor a software developer. I'm just doing a job that I can sort of do... on a good day... Anyway, I'm writing a small test app for a DLL I've been told to develop in C++ in VS2005. My whole PC froze on me twice in about 2 hours. The latest incident was so bad I had to resort to the "big red button" approach, i.e. kill the power. Actually, this isn't the first time this happened to me. Granted I'm doing dodgy things with threads when I don't really understand them, but it shouldn't keep locking me out like this, should it?

                              C Offline
                              C Offline
                              Corinna John
                              wrote on last edited by
                              #19

                              There are two usual causes to freezing machines: 1) Memory leaks: Watch your memory usage in Task Manager. Does it rise faster than you can explain? Then you very likely forgot to free the memory of some objects which you create in a loop. 2) Never ending loops: Watch you CPU time in Task Manager. Does it reach 100% before the machine freezes? Then very likely a break condition is never reached (i.e. you loop over a list, but forget to increment the index). As you are unexperienced, only a debugger can save you.

                              This statement is false.

                              1 Reply Last reply
                              0
                              • P PaulowniaK

                                Norm .net wrote:

                                You know, you wouldn't do open heart surgery without training and experience

                                True... but it's not so common that you kill someone by writing bad code... I'm sure you can (f-ing up the software used in air traffic control, say) but in my case, the worst that is going to happen is that some ionized molecules are going to go to ionized molecule heaven.

                                I Offline
                                I Offline
                                IncredibleMouse
                                wrote on last edited by
                                #20

                                That was a brilliant response to the inaccurate comparison. :thumbsup:

                                1 Reply Last reply
                                0
                                • L Lost User

                                  PaulowniaK wrote:

                                  I don't call myself a programmer, nor a software developer.

                                  Nor do I. Stop what you are doing and get a different job. And yes, you can quite easialy lock the machine with threads it all depends on priority, have yiou been messing with thread prioirity too?

                                  Morality is indistinguishable from social proscription

                                  I Offline
                                  I Offline
                                  IncredibleMouse
                                  wrote on last edited by
                                  #21

                                  You will never learn, unless you try. Succeed or fail, don't give up. Assuming of course you actually like what you're doing/learning. Never listen to another's notion that you "can't" or "shouldn't". Yes, malformed threads can cause the behavior you are experiencing, and they will extend to the end-user unless corrected.

                                  1 Reply Last reply
                                  0
                                  • P PaulowniaK

                                    I don't call myself a programmer, nor a software developer. I'm just doing a job that I can sort of do... on a good day... Anyway, I'm writing a small test app for a DLL I've been told to develop in C++ in VS2005. My whole PC froze on me twice in about 2 hours. The latest incident was so bad I had to resort to the "big red button" approach, i.e. kill the power. Actually, this isn't the first time this happened to me. Granted I'm doing dodgy things with threads when I don't really understand them, but it shouldn't keep locking me out like this, should it?

                                    J Offline
                                    J Offline
                                    Jason Christian
                                    wrote on last edited by
                                    #22

                                    If you're not a programmer you might want to convince someone to let you program in something other (i.e. easier, or more forgiving) than C++.

                                    F 1 Reply Last reply
                                    0
                                    • P PaulowniaK

                                      Norm .net wrote:

                                      You know, you wouldn't do open heart surgery without training and experience

                                      True... but it's not so common that you kill someone by writing bad code... I'm sure you can (f-ing up the software used in air traffic control, say) but in my case, the worst that is going to happen is that some ionized molecules are going to go to ionized molecule heaven.

                                      J Offline
                                      J Offline
                                      Jay Elston
                                      wrote on last edited by
                                      #23

                                      Actually, you _can_ kill people with bad code. You should subscribe to comp.risks. It is replete with stories about how software causes death or destruction.

                                      1 Reply Last reply
                                      0
                                      • J Jason Christian

                                        If you're not a programmer you might want to convince someone to let you program in something other (i.e. easier, or more forgiving) than C++.

                                        F Offline
                                        F Offline
                                        fglenn
                                        wrote on last edited by
                                        #24

                                        I am reminded of a quote that I read many years ago, and I cannot remember who said it: "'C' will allow you to shoot yourself in the foot. 'C++' makes it harder, but if you succeed, it will take off your whole leg." :laugh:

                                        Fletcher Glenn

                                        1 Reply Last reply
                                        0
                                        • P PaulowniaK

                                          I don't call myself a programmer, nor a software developer. I'm just doing a job that I can sort of do... on a good day... Anyway, I'm writing a small test app for a DLL I've been told to develop in C++ in VS2005. My whole PC froze on me twice in about 2 hours. The latest incident was so bad I had to resort to the "big red button" approach, i.e. kill the power. Actually, this isn't the first time this happened to me. Granted I'm doing dodgy things with threads when I don't really understand them, but it shouldn't keep locking me out like this, should it?

                                          P Offline
                                          P Offline
                                          patbob
                                          wrote on last edited by
                                          #25

                                          It can. Depends a lot on what you're doing and in which functions. The machines that windows runs on have gotten a lot better over time, but the old Win32 GUI thread bug is still there -- it stops by my PC for a scotch and to reminisce every now and then. I don't usually have to reboot to exorcise it anymore like the old days -- logging out and back in is usally as bad as things get, and rarely that anymore. Just part of the (un)fun of programming sometimes. Now if the mosue stops working, that's a differnet matter.

                                          patbob

                                          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