|
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$$>
|
|
|
|
|
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!
"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$$>
|
|
|
|
|
ThatsAlok wrote: windows!
I'll blame Global Warming.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
My goodness!! I did not know global warming was that serious!!
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.
|
|
|
|
|
Rajesh R Subramanian wrote: I'll blame Global Warming.
Sssh! Lalu could read this!
"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$$>
|
|
|
|
|
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++
|
|
|
|
|
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" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
dear all
i still couldn't find problem from the code below, anyone can help me? thanks a lot.
ucGrayImg was defined.
ucGrayImg=m_vicGrayImg.ibuff;
int *ucGauImgHArray=new int[iHW];
for (iY=0;iY<iheight1;iy++)>
{
for (iX=0;iX<iwidth1;ix++)>
{
int iIndex=iX+iY*iWidth1;
if (iX==0)
{
ucGauImgHArray[iIndex]=ucGrayImg[iX]*mask[1]+ucGrayImg[iX+1]*mask[2];
}
else if (iX==iWidth1-1)
{
ucGauImgHArray[iIndex]=ucGrayImg[iX]*mask[0]+ucGrayImg[iX+1]*mask[1];
}
else
{
ucGauImgHArray[iIndex]=ucGrayImg[iX]*mask[0]+ucGrayImg[iX+1]*mask[1]+ucGrayImg[iX+2]*mask[2];
}
}
ucGrayImg+=iWidthbyte2;
}
delete []ucGauImgHArray;
here ucGrayImg +=iWidthbyte2 seems problem, but however i don't understand what is problem.thanks
modified on Thursday, March 13, 2008 12:12 AM
|
|
|
|
|
Please review your post; the for loops aren't displaying properly.
Steve
|
|
|
|
|
To expand on the previous comments - read the "how to post" guideline post, and look at the pre tag
Iain.
Iain Clarke appears because CPallini still cares.
|
|
|
|
|
gentleguy wrote: i don't understand what is problem.thanks
And we're supposed to?
"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
|
|
|
|
|
Looks like Li Zhiyuan has fooled you guys
I'm going to become rich when I create a device that allows me to punch people in the face over the internet.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
modified on Wednesday, March 12, 2008 10:03 AM
|
|
|
|
|
How do you figure? Just because he is posting under a new name does not necessarily mean that any one was "fooled." He received the same lame answer(s) as always.
"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
|
|
|
|
|
DavidCrow wrote: He received the same lame answer(s) as always.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
I was being facetious.
Note: I just noticed that when I first posted the message I didn't use the appropriate 'Joke' icon
I'm going to become rich when I create a device that allows me to punch people in the face over the internet.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
|
|
|
|
|
sorry for that,however i adjust my format of code, they couldn't display completely. so sorry to bring some inconvenience.
gentleguy
|
|
|
|
|
Hello everyone,
For non-template function/class, compiler knows the symbol is there and bind to a definite symbol. It is straight forward to understand.
But for a two-step name-lookup compiler, I am curious, how did compiler binds another referred template from one template in the first name lookup step, before instantiation?
Since template symbol is not finalized until it is instantised. But during the first step of compiler look-up, the compiler only sees the definition of template, how could it bind (generate binary code to link to some symbol) (before a referred template is instantised, the real code is not generated)?
For example, in the following code, during the 1st step of name-lookup before function func is instantised, how did compiler work internally to bind to vector<T> (T is not ready at this time, so vector<T> is not instantised)?
Or, I am wrong that compiler will do nothing to bind the referred template, like vector<T> in the sample?
template <class T> void func (T a)
{
vector<T> vc;
vc.push_back (a);
}
thanks in advance,
George
|
|
|
|
|
Firstly i guess, is it even possible to have a dialog with muliple edit controls and buttons(Keyboard type letter buttons) that keeps the focus set to the currently selected edit control but is still able to tab/click to other controls? The buttons need to input letters to the edit control just like a keyboard as this is really a on-screen keyboard.
If so how do i manage the focus.
I've looked at every OSK article i could find on this site. I've also searched around the net alot. I've also look at a lot of articles just talking about focus control. Everything i have found so far won't wonrk in the manner i'm attempting.
I'm trying to do this with the keybd_event fucntion also.
Like a cross between these two is my goal. As i will also make a standalone dialog with just the keybaord to input to other windows.
http://www.codeproject.com/KB/cpp/onscreenkeyboard.aspx[^]
http://www.codeproject.com/KB/dialog/XKeyboard.aspx[^]
Any input is appreciated.
|
|
|
|
|
Hi
I think you will have to look at SetWindowsHookEx .
You can intercept all keys by using a WH_GETMESSAGE hook.
God bless,
Ernest Laurentin
|
|
|
|
|
|
Hi-
I am using one of those IE based controls in a few dialogs to display HTML content downloaded from our server.
But, we find that some users have problems with it. For some it either crashes or doesn't display anything.
Suggestions on a good alternative?
I prefer cheap, but could pay for a commercial product too.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<a href="http://www.soonr.com">SoonR Inc -- PC Power delivered to your phone</a>
|
|
|
|
|