crash in worker thread
-
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
-
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
What does "crash" mean? You can't find the offending line of code running the app in the debugger?? Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
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
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
-
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
So, to fix it, NEVER let a user run it more than 29 times?
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
So, to fix it, NEVER let a user run it more than 29 times?
Mark Salsbery Microsoft MVP - Visual C++ :java:
yes you are correct. :-D 5! for your solution
-
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
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
-
yes you are correct. :-D 5! for your solution
Hehe A five for you for giving me the idea :)
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
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
ROTFL !!!
-
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
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
-
ROTFL !!!
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.
-
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
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" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You/codeProject$$>
-
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.
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" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You/codeProject$$>
-
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
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" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You/codeProject$$>
-
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" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You/codeProject$$>
ThatsAlok wrote:
windows!
I'll blame Global Warming. ;)
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
-
ThatsAlok wrote:
windows!
I'll blame Global Warming. ;)
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
-
ThatsAlok wrote:
windows!
I'll blame Global Warming. ;)
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
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" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You/codeProject$$>
-
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
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
-
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
Ohhhh...now THAT'S thinking outside the box :)
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
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
-
what about jumping to 100 iteration, i think it is classic case of data sharing issue uning non usage of sync locks
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" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You