Worker thread->crash
-
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
-
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
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
-
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
What does the debugger say?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Peter Weyzen Staff Engineer [SoonR Inc -- PC Power delivered to your phone](http://www.soonr.com)
-
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
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" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You/codeProject$$>
-
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
Besides, is there any buffer overrun?
Maxwell Chen
-
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
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 -
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
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.