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 / C++ / MFC
  4. crash in worker thread

crash in worker thread

Scheduled Pinned Locked Moved C / C++ / MFC
20 Posts 8 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.
  • M Mark Salsbery

    So, to fix it, NEVER let a user run it more than 29 times?

    Mark Salsbery Microsoft MVP - Visual C++ :java:

    R Offline
    R Offline
    Rajkumar R
    wrote on last edited by
    #5

    yes you are correct. :-D 5! for your solution

    M 1 Reply Last reply
    0
    • R Rajkumar R

      lavate malllik wrote:

      will run in worker therad for 15 time without crash. But when same code will run for 30 times the application will crash.

      some thing strange in between, if it crashes at 30th time, then the application runs without crash for 29 times not 15 times. :-D

      M Offline
      M Offline
      Maxwell Chen
      wrote on last edited by
      #6

      lavate wrote:

      will run in worker therad for 15 time without crash. But when same code will run for 30 times the application will crash.

      Rajkumar R wrote:

      some thing strange in between, if it crashes at 30th time, then the application runs without crash for 29 times not 15 times.

      Don't worry! It's pentadecimal[^]. So you saw the OP said:

      15 time (singular)

      and

      30 times (plural)

      Maxwell Chen

      R 1 Reply Last reply
      0
      • R Rajkumar R

        yes you are correct. :-D 5! for your solution

        M Offline
        M Offline
        Mark Salsbery
        wrote on last edited by
        #7

        Hehe  A five for you for giving me the idea :)

        Mark Salsbery Microsoft MVP - Visual C++ :java:

        1 Reply Last reply
        0
        • M Maxwell Chen

          lavate wrote:

          will run in worker therad for 15 time without crash. But when same code will run for 30 times the application will crash.

          Rajkumar R wrote:

          some thing strange in between, if it crashes at 30th time, then the application runs without crash for 29 times not 15 times.

          Don't worry! It's pentadecimal[^]. So you saw the OP said:

          15 time (singular)

          and

          30 times (plural)

          Maxwell Chen

          R Offline
          R Offline
          Rajkumar R
          wrote on last edited by
          #8

          ROTFL !!!

          W 1 Reply Last reply
          0
          • L lavate malllik

            In my application some operations will run in worker therad for 15 time without crash. But when same code will run for 30 times the application will crash. Let me know the reasons behind this crash. lavatema

            R Offline
            R Offline
            Rajesh R Subramanian
            wrote on last edited by
            #9

            lavate malllik wrote:

            Let me know the reasons behind this crash.

            The programmer.

            Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

            T 1 Reply Last reply
            0
            • R Rajkumar R

              ROTFL !!!

              W Offline
              W Offline
              Wamuti
              wrote on last edited by
              #10

              Poll: Would you consider a live streaming comedy. Star:- Rajkumar R, Mark and guest star - Maxwell Chen! What the members think ... drum rolls ...100%. IT'S A HIT!!! Really cool guyz :cool: An extra 5 bonus for you all.

              Wamuti: Any man can be an island, but islands to need water around them! Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.

              T 1 Reply Last reply
              0
              • R Rajkumar R

                lavate malllik wrote:

                will run in worker therad for 15 time without crash. But when same code will run for 30 times the application will crash.

                some thing strange in between, if it crashes at 30th time, then the application runs without crash for 29 times not 15 times. :-D

                T Offline
                T Offline
                ThatsAlok
                wrote on last edited by
                #11

                Rajkumar R wrote:

                some thing strange in between, if it crashes at 30th time, then the application runs without crash for 29 times not 15 times

                I am sure this problem due non usage of proper sync locks!

                "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
                Never mind - my own stupidity is the source of every "problem" - Mixture

                cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You/codeProject$$>

                1 Reply Last reply
                0
                • W Wamuti

                  Poll: Would you consider a live streaming comedy. Star:- Rajkumar R, Mark and guest star - Maxwell Chen! What the members think ... drum rolls ...100%. IT'S A HIT!!! Really cool guyz :cool: An extra 5 bonus for you all.

                  Wamuti: Any man can be an island, but islands to need water around them! Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.

                  T Offline
                  T Offline
                  ThatsAlok
                  wrote on last edited by
                  #12

                  i vote for rajkumar .. my personal fav!

                  "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
                  Never mind - my own stupidity is the source of every "problem" - Mixture

                  cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You/codeProject$$>

                  1 Reply Last reply
                  0
                  • R Rajesh R Subramanian

                    lavate malllik wrote:

                    Let me know the reasons behind this crash.

                    The programmer.

                    Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

                    T Offline
                    T Offline
                    ThatsAlok
                    wrote on last edited by
                    #13

                    Rajesh R Subramanian wrote:

                    The programmer.

                    windows!:suss:

                    "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
                    Never mind - my own stupidity is the source of every "problem" - Mixture

                    cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You/codeProject$$>

                    R 1 Reply Last reply
                    0
                    • T ThatsAlok

                      Rajesh R Subramanian wrote:

                      The programmer.

                      windows!:suss:

                      "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
                      Never mind - my own stupidity is the source of every "problem" - Mixture

                      cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You/codeProject$$>

                      R Offline
                      R Offline
                      Rajesh R Subramanian
                      wrote on last edited by
                      #14

                      ThatsAlok wrote:

                      windows!

                      I'll blame Global Warming. ;)

                      Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

                      W T 2 Replies Last reply
                      0
                      • R Rajesh R Subramanian

                        ThatsAlok wrote:

                        windows!

                        I'll blame Global Warming. ;)

                        Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

                        W Offline
                        W Offline
                        Wamuti
                        wrote on last edited by
                        #15

                        My goodness!! I did not know global warming was that serious!! :-D

                        Wamuti: Any man can be an island, but islands to need water around them! Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.

                        1 Reply Last reply
                        0
                        • R Rajesh R Subramanian

                          ThatsAlok wrote:

                          windows!

                          I'll blame Global Warming. ;)

                          Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

                          T Offline
                          T Offline
                          ThatsAlok
                          wrote on last edited by
                          #16

                          Rajesh R Subramanian wrote:

                          I'll blame Global Warming.

                          Sssh! Lalu could read this! :-D

                          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
                          Never mind - my own stupidity is the source of every "problem" - Mixture

                          cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You/codeProject$$>

                          1 Reply Last reply
                          0
                          • L lavate malllik

                            In my application some operations will run in worker therad for 15 time without crash. But when same code will run for 30 times the application will crash. Let me know the reasons behind this crash. lavatema

                            D Offline
                            D Offline
                            David Crow
                            wrote on last edited by
                            #17

                            So what happens if you skip the 30th iteration, and jump to the 31st iteration instead?

                            "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

                            "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

                            M T 2 Replies Last reply
                            0
                            • D David Crow

                              So what happens if you skip the 30th iteration, and jump to the 31st iteration instead?

                              "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

                              "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

                              M Offline
                              M Offline
                              Mark Salsbery
                              wrote on last edited by
                              #18

                              Ohhhh...now THAT'S thinking outside the box :)

                              Mark Salsbery Microsoft MVP - Visual C++ :java:

                              1 Reply Last reply
                              0
                              • D David Crow

                                So what happens if you skip the 30th iteration, and jump to the 31st iteration instead?

                                "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

                                "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

                                T Offline
                                T Offline
                                ThatsAlok
                                wrote on last edited by
                                #19

                                what about jumping to 100 iteration, i think it is classic case of data sharing issue uning non usage of sync locks

                                T 1 Reply Last reply
                                0
                                • T ThatsAlok

                                  what about jumping to 100 iteration, i think it is classic case of data sharing issue uning non usage of sync locks

                                  T Offline
                                  T Offline
                                  ThatsAlok
                                  wrote on last edited by
                                  #20

                                  1 year :-)

                                  "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
                                  Never mind - my own stupidity is the source of every "problem" - Mixture

                                  cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

                                  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