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.
  • 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
            • 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?

              Y Offline
              Y Offline
              Yortw
              wrote on last edited by
              #26

              "Not a Programmer" + "C++" + "Threads" = BOOM ! :-D Yes, that would be expected, at least to some degree. It's a little suprising the whole machine locked up rather than just your app, but you are working in C++ where you can shoot yourself in the foot in many different ways so it is possible to lock up the entire PC (deadlocking the kernel somehow, for instance). Good luck, you're going to need it :) http://burks.bton.ac.uk/burks/language/shoot.htm[^]

              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
                #27

                Yeah dats much normal, i dont even write much code just solved issues these days

                Ravie Busie Coding is my birth-right and bugs are part of feature my code has! _________________________________________ Me  Facebook  Twitter

                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
                  Jinjav
                  wrote on last edited by
                  #28

                  Write and test your code in a virtual machine.... You will just have to reboot the virtual machine if it crashes. I used to do that when programming the Linux Kernel... It will then make the task so much easier and won't affect your hardware :)

                  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?

                    U Offline
                    U Offline
                    User 4566656
                    wrote on last edited by
                    #29

                    Hi, I have a suspicion about your problem: The DLL you've mentioned: does it in any way communicate with a device? What you said about those ionized molecules supports this. When there's a hardware driver that has been written for internal use, and a DLL that provides an API for it, also meant for internal use, chances are high that these are not as robust as drivers and DLLs meant for the consumer market. That means that it is often easy to write code using such an API or driver that crashes the operating system's kernel (that's the very core of the operating system). It does not mean that the driver and DLL are actually badly designed or written. It only means that they're not supposed to be used by a great number of developers out-of-house. My first guess for a solution: check what you've been writing against the documentation / source code / comments, whatever you have. Second guess: you've actually broken your own code via some flaw in your use of threads that leads to some kind of unexpected behavior that, via the DLL and the driver, crashes the kernel. So, unless the first approach was sufficient, find out whether the behavior you've encountered is reproducible without multiple threads. Cheers from Vienna, The Continent

                    P 1 Reply Last reply
                    0
                    • U User 4566656

                      Hi, I have a suspicion about your problem: The DLL you've mentioned: does it in any way communicate with a device? What you said about those ionized molecules supports this. When there's a hardware driver that has been written for internal use, and a DLL that provides an API for it, also meant for internal use, chances are high that these are not as robust as drivers and DLLs meant for the consumer market. That means that it is often easy to write code using such an API or driver that crashes the operating system's kernel (that's the very core of the operating system). It does not mean that the driver and DLL are actually badly designed or written. It only means that they're not supposed to be used by a great number of developers out-of-house. My first guess for a solution: check what you've been writing against the documentation / source code / comments, whatever you have. Second guess: you've actually broken your own code via some flaw in your use of threads that leads to some kind of unexpected behavior that, via the DLL and the driver, crashes the kernel. So, unless the first approach was sufficient, find out whether the behavior you've encountered is reproducible without multiple threads. Cheers from Vienna, The Continent

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

                      Member 4569938 wrote:

                      What you said about those ionized molecules supports this.

                      Indeed! I do have a prototype device connected to my PC via a second network card and cross cable. I was wondering about this because it is very "prototype" and it keeps dying on me on its own accord too. At the time I got locked out of my machine, I wasn't using the device, but I think it was switched on. I had been using it previously too. So it could well be that. Sadly, it doesn't come with much documentation so I have to keep walking the tight rope. Thanks for the suggestion anyway, I shall be a bit more careful about what I tell this device to do. :thumbsup:

                      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