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. Worker thread->crash

Worker thread->crash

Scheduled Pinned Locked Moved C / C++ / MFC
c++helptutorial
7 Posts 7 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 Offline
    L Offline
    lavate malllik
    wrote on last edited by
    #1

    Iam having a MFC application, in which we have a worker theread. Some operation is happens in worker thread.And we call this application for 10 times it works well.But when we call this application for 25th time it crashes at 25th time. Let me know what will be the reasons behind this. According to me one of the reasons is data type matching.But intially we resolved this problem for 10th time then it works well till. 24th time and at 25th time it crashes. According to me there will be some other reaons behind this crashing. Let me reasons how to rsolve this type of crashing. lavatema

    S P T M C 6 Replies Last reply
    0
    • L lavate malllik

      Iam having a MFC application, in which we have a worker theread. Some operation is happens in worker thread.And we call this application for 10 times it works well.But when we call this application for 25th time it crashes at 25th time. Let me know what will be the reasons behind this. According to me one of the reasons is data type matching.But intially we resolved this problem for 10th time then it works well till. 24th time and at 25th time it crashes. According to me there will be some other reaons behind this crashing. Let me reasons how to rsolve this type of crashing. lavatema

      S Offline
      S Offline
      Stephen Hewitt
      wrote on last edited by
      #2

      We're not psychics. You haven’t provided enough information. What is the type of crash? Can you provide the call stack of the crash? Can you post the relevant code?

      Steve

      1 Reply Last reply
      0
      • L lavate malllik

        Iam having a MFC application, in which we have a worker theread. Some operation is happens in worker thread.And we call this application for 10 times it works well.But when we call this application for 25th time it crashes at 25th time. Let me know what will be the reasons behind this. According to me one of the reasons is data type matching.But intially we resolved this problem for 10th time then it works well till. 24th time and at 25th time it crashes. According to me there will be some other reaons behind this crashing. Let me reasons how to rsolve this type of crashing. lavatema

        P Offline
        P Offline
        Peter Weyzen
        wrote on last edited by
        #3

        What does the debugger say?

        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Peter Weyzen Staff Engineer [SoonR Inc -- PC Power delivered to your phone](http://www.soonr.com)

        1 Reply Last reply
        0
        • L lavate malllik

          Iam having a MFC application, in which we have a worker theread. Some operation is happens in worker thread.And we call this application for 10 times it works well.But when we call this application for 25th time it crashes at 25th time. Let me know what will be the reasons behind this. According to me one of the reasons is data type matching.But intially we resolved this problem for 10th time then it works well till. 24th time and at 25th time it crashes. According to me there will be some other reaons behind this crashing. Let me reasons how to rsolve this type of crashing. lavatema

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

          just try pinpoint the position where it is crashing, also just ?, are these 10 threads running syncronously, if yes, have you applied good sync logic!, if they sharing same data!

          "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

            Iam having a MFC application, in which we have a worker theread. Some operation is happens in worker thread.And we call this application for 10 times it works well.But when we call this application for 25th time it crashes at 25th time. Let me know what will be the reasons behind this. According to me one of the reasons is data type matching.But intially we resolved this problem for 10th time then it works well till. 24th time and at 25th time it crashes. According to me there will be some other reaons behind this crashing. Let me reasons how to rsolve this type of crashing. lavatema

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

            Besides, is there any buffer overrun?

            Maxwell Chen

            1 Reply Last reply
            0
            • L lavate malllik

              Iam having a MFC application, in which we have a worker theread. Some operation is happens in worker thread.And we call this application for 10 times it works well.But when we call this application for 25th time it crashes at 25th time. Let me know what will be the reasons behind this. According to me one of the reasons is data type matching.But intially we resolved this problem for 10th time then it works well till. 24th time and at 25th time it crashes. According to me there will be some other reaons behind this crashing. Let me reasons how to rsolve this type of crashing. lavatema

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

              Sorry, the CPMRU (Code Project Mind Reader Unit) is out of order. :)

              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

              1 Reply Last reply
              0
              • L lavate malllik

                Iam having a MFC application, in which we have a worker theread. Some operation is happens in worker thread.And we call this application for 10 times it works well.But when we call this application for 25th time it crashes at 25th time. Let me know what will be the reasons behind this. According to me one of the reasons is data type matching.But intially we resolved this problem for 10th time then it works well till. 24th time and at 25th time it crashes. According to me there will be some other reaons behind this crashing. Let me reasons how to rsolve this type of crashing. lavatema

                K Offline
                K Offline
                kanduripavan
                wrote on last edited by
                #7

                Its easy. I got it. All what u have to do is to put break point on the thread function(F9 For all the lines) debug and wait for the application to crash. Thats it.

                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