Click here to Skip to main content
15,913,587 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to handle breaks during debugging Pin
prithaa5-Sep-09 20:19
prithaa5-Sep-09 20:19 
GeneralRe: How to handle breaks during debugging Pin
Stuart Dootson5-Sep-09 23:36
professionalStuart Dootson5-Sep-09 23:36 
GeneralRe: How to handle breaks during debugging Pin
prithaa6-Sep-09 0:20
prithaa6-Sep-09 0:20 
GeneralRe: How to handle breaks during debugging Pin
Stuart Dootson6-Sep-09 0:57
professionalStuart Dootson6-Sep-09 0:57 
GeneralRe: How to handle breaks during debugging Pin
prithaa6-Sep-09 1:00
prithaa6-Sep-09 1:00 
GeneralRe: How to handle breaks during debugging Pin
Stuart Dootson6-Sep-09 1:03
professionalStuart Dootson6-Sep-09 1:03 
GeneralRe: How to handle breaks during debugging Pin
iraclyKv6-Sep-09 23:50
iraclyKv6-Sep-09 23:50 
AnswerRe: How to handle breaks during debugging Pin
Iain Clarke, Warrior Programmer6-Sep-09 9:25
Iain Clarke, Warrior Programmer6-Sep-09 9:25 
OK... I see two scenarios you are describing:

1/ With breakpoint.
a) App is running.
b) Focus is in a window.
c) You press f5.
d) This is a key going down, so the CSomeControl::OnKeyDown handler is called.
e) You have a breakpoint there, so it, erm, breaks and goes into the debugger, allowing you to debug you OnKeyDown handler.

This is a good thing.

2/ With no breakpoint.
a) App is running.
b) Focus is in a window.
c) You press f5.
d) This is a key going down, so the CSomeControl::OnKeyDown handler is called.
e) You have no breakpoint there, so the application carries on happily.

This is a good thing.

This may be a language problem (don't apologise for that!), but I can maybe see a 3rd scenario:
1/ With breakpoint.
a) App is running.
b) Focus is in a window.
c) You press some key.
d) This is a key going down, so the CSomeControl::OnKeyDown handler is called.
e) You have a breakpoint there, so it, erm, breaks and goes into the debugger, allowing you to debug you OnKeyDown handler.
f) You press f5 to carry on with the program, and it no longer works


If #3 is true, then I bet you're forgetting to hold down the original key before continuing execution. You application may be thinking "so, when is he releasing that key!? It's been down for a long time...".

Iain.

I have now moved to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need cotract work done, give me a job! http://cv.imcsoft.co.uk/[^]

GeneralRe: How to handle breaks during debugging Pin
prithaa6-Sep-09 19:11
prithaa6-Sep-09 19:11 
QuestionCalling Unmanaged Class From DLL Pin
İsmail Durmaz5-Sep-09 5:27
İsmail Durmaz5-Sep-09 5:27 
AnswerRe: Calling Unmanaged Class From DLL Pin
«_Superman_»5-Sep-09 5:34
professional«_Superman_»5-Sep-09 5:34 
GeneralRe: Calling Unmanaged Class From DLL Pin
İsmail Durmaz5-Sep-09 5:37
İsmail Durmaz5-Sep-09 5:37 
GeneralRe: Calling Unmanaged Class From DLL Pin
«_Superman_»5-Sep-09 5:42
professional«_Superman_»5-Sep-09 5:42 
GeneralRe: Calling Unmanaged Class From DLL Pin
İsmail Durmaz5-Sep-09 5:43
İsmail Durmaz5-Sep-09 5:43 
GeneralRe: Calling Unmanaged Class From DLL Pin
Joe Woodbury5-Sep-09 8:39
professionalJoe Woodbury5-Sep-09 8:39 
AnswerRe: Calling Unmanaged Class From DLL Pin
Hristo-Bojilov5-Sep-09 7:55
Hristo-Bojilov5-Sep-09 7:55 
GeneralRe: Calling Unmanaged Class From DLL Pin
Joe Woodbury5-Sep-09 8:48
professionalJoe Woodbury5-Sep-09 8:48 
AnswerRe: Calling Unmanaged Class From DLL Pin
Joe Woodbury5-Sep-09 8:55
professionalJoe Woodbury5-Sep-09 8:55 
GeneralRe: Calling Unmanaged Class From DLL Pin
İsmail Durmaz6-Sep-09 3:12
İsmail Durmaz6-Sep-09 3:12 
GeneralRe: Calling Unmanaged Class From DLL Pin
Joe Woodbury6-Sep-09 7:36
professionalJoe Woodbury6-Sep-09 7:36 
QuestionSTL map in UNIX Pin
ashukasama4-Sep-09 23:24
ashukasama4-Sep-09 23:24 
AnswerRe: STL map in UNIX Pin
Richard MacCutchan4-Sep-09 23:36
mveRichard MacCutchan4-Sep-09 23:36 
GeneralRe: STL map in UNIX Pin
ashukasama4-Sep-09 23:53
ashukasama4-Sep-09 23:53 
GeneralRe: STL map in UNIX Pin
Stuart Dootson4-Sep-09 23:59
professionalStuart Dootson4-Sep-09 23:59 
GeneralRe: STL map in UNIX Pin
Stuart Dootson5-Sep-09 0:02
professionalStuart Dootson5-Sep-09 0:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.