Re: What does this Runtime Error mean?
I guess this was to me.
pMsg is a pointer, so if it didn't point anywhere valid, this code would
cause that type of problem. However, if it's being passed to the
PreTranslateMessage method, that seems highly unlikely.
I would take the following steps:
I would start using TRACE() to emit messages in key places in your code to
help isolate where this error is occurring. Once you have it isolated to a
couple of methods, then I would trace through line by line and fine the line
that causes the error. When you find the line, then you need to carefully
examine the values of all the variables to find something that isn't right.
It would take me about two seconds to put a breakpoint in your
PreTranslateMessage code below where I could verify if pMsg is valid. I'm
not able to do that in a newsgroup message. You really would be well served
to learn some advanced debugging skills. It's so important.
--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com
"Landon" <Landon@discussions.microsoft.com> wrote in message
news:6D2D6B35-205C-4887-8074-EEBF4120B0D2@microsoft.com...
Recently, I found that the error pointed to PreTranslateMessage part. It
was
shown on the stack list.
I put this to handle and detect WHEN user changing item focus:
if( pMsg->message == WM_KEYDOWN || pMsg->message == WM_LBUTTONDOWN ||
pMsg->message == WM_RBUTTONDOWN )
m_bStartSelChange = TRUE;
Does this code affecting something?
Thank you.