473,412 Members | 2,239 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

F12 Frustracted

Hello all,

I've got no accelerator to F12 but if I press F12 I get an assertion. Any
ideas why?

Using MFC V6 but app originally written under V4.1. How old? Yeah, very.

Thanks
Jooster
--
Jooster aka
Matt Pickering
Wednesbury
West Midlands
UK
Nov 17 '05 #1
8 1297
"Jooster" <ma***@peps.com.joostersaysnotospam> wrote in message
news:DA**********************************@microsof t.com...
Hello all,

I've got no accelerator to F12 but if I press F12 I get an assertion. Any
ideas why?

Using MFC V6 but app originally written under V4.1. How old? Yeah, very.


Maybe...?

http://support.microsoft.com/default...en-us%3B130667

--
Jeff Partch [VC++ MVP]
Nov 17 '05 #2
Jeff,

Are you my mate or what? You've answered/solved so many of my
questions/problems. Now, as a developer myself, I know how the "feel-good"
factor makes me feel when I can help someone. So, please have some
"feel-good" emotions from me....through the ether. Really.

Link was good. But how do I trap the F12 key-press? Tried OnKeyDown &
PreTranslateMessage. Both fail to trap this.

Sincerely,

Jooster,
aka Matt

PS I love software so much.... still working at 1am.
--
Jooster aka
Matt Pickering
Wednesbury
West Midlands
UK
"Jeff Partch [MVP]" wrote:
"Jooster" <ma***@peps.com.joostersaysnotospam> wrote in message
news:DA**********************************@microsof t.com...
Hello all,

I've got no accelerator to F12 but if I press F12 I get an assertion. Any
ideas why?

Using MFC V6 but app originally written under V4.1. How old? Yeah, very.


Maybe...?

http://support.microsoft.com/default...en-us%3B130667

--
Jeff Partch [VC++ MVP]

Nov 17 '05 #3
Ted
This is only going to happen while running the program in a debugger, so I
wouldn't be concerned (your end users will never see it)

Ted.

"Jooster" <ma***@peps.com.joostersaysnotospam> wrote in message
news:90**********************************@microsof t.com...
Jeff,

Are you my mate or what? You've answered/solved so many of my
questions/problems. Now, as a developer myself, I know how the "feel-good"
factor makes me feel when I can help someone. So, please have some
"feel-good" emotions from me....through the ether. Really.

Link was good. But how do I trap the F12 key-press? Tried OnKeyDown &
PreTranslateMessage. Both fail to trap this.

Sincerely,

Jooster,
aka Matt

PS I love software so much.... still working at 1am.
--
Jooster aka
Matt Pickering
Wednesbury
West Midlands
UK
"Jeff Partch [MVP]" wrote:
"Jooster" <ma***@peps.com.joostersaysnotospam> wrote in message
news:DA**********************************@microsof t.com...
> Hello all,
>
> I've got no accelerator to F12 but if I press F12 I get an assertion.
> Any
> ideas why?
>
> Using MFC V6 but app originally written under V4.1. How old? Yeah,
> very.


Maybe...?

http://support.microsoft.com/default...en-us%3B130667

--
Jeff Partch [VC++ MVP]

Nov 17 '05 #4
Ted,

Thanks, you're right. Also Jeff, your link to more info was exactly right too.

Strange though. Bug doesn't exist when using Release Build stand-alone. I
read the article from Jeff's Link and came to the same conclusion as Ted.
But, I executed a Release Build through VStudio & still had the error (OK,
wasn't an Assertion, that only gets called if _debug but I got an int 3).
Same exe run off the desktop, no probs.

Thanks again to you both,
--
Jooster aka
Matt Pickering
Wednesbury
West Midlands
UK
"Ted" wrote:
This is only going to happen while running the program in a debugger, so I
wouldn't be concerned (your end users will never see it)

Ted.

"Jooster" <ma***@peps.com.joostersaysnotospam> wrote in message
news:90**********************************@microsof t.com...
Jeff,

Are you my mate or what? You've answered/solved so many of my
questions/problems. Now, as a developer myself, I know how the "feel-good"
factor makes me feel when I can help someone. So, please have some
"feel-good" emotions from me....through the ether. Really.

Link was good. But how do I trap the F12 key-press? Tried OnKeyDown &
PreTranslateMessage. Both fail to trap this.

Sincerely,

Jooster,
aka Matt

PS I love software so much.... still working at 1am.
--
Jooster aka
Matt Pickering
Wednesbury
West Midlands
UK
"Jeff Partch [MVP]" wrote:
"Jooster" <ma***@peps.com.joostersaysnotospam> wrote in message
news:DA**********************************@microsof t.com...
> Hello all,
>
> I've got no accelerator to F12 but if I press F12 I get an assertion.
> Any
> ideas why?
>
> Using MFC V6 but app originally written under V4.1. How old? Yeah,
> very.

Maybe...?

http://support.microsoft.com/default...en-us%3B130667

--
Jeff Partch [VC++ MVP]


Nov 17 '05 #5
Jooster wrote:
Ted,

Thanks, you're right. Also Jeff, your link to more info was exactly
right too.

Strange though. Bug doesn't exist when using Release Build
stand-alone. I read the article from Jeff's Link and came to the same
conclusion as Ted. But, I executed a Release Build through VStudio &
still had the error (OK, wasn't an Assertion, that only gets called
if _debug but I got an int 3). Same exe run off the desktop, no probs.


That's exactly what you should have seen. The forced breakpoint will occur
when you press F12 while a program that's being debugged has focus. Windows
is doing this under the covers and nothing about the program being debugged
(e.g. debug versus release build) can influence it.

-cd
Nov 17 '05 #6
Thanks Carl. But why is Windiows forcing an int-3 when F12 is pressed?
--
Jooster aka
Matt Pickering
Wednesbury
West Midlands
UK
"Carl Daniel [VC++ MVP]" wrote:
That's exactly what you should have seen. The forced breakpoint will occur
when you press F12 while a program that's being debugged has focus. Windows
is doing this under the covers and nothing about the program being debugged
(e.g. debug versus release build) can influence it.

-cd

Nov 17 '05 #7
Jooster wrote:
Thanks Carl. But why is Windiows forcing an int-3 when F12 is pressed?


It's a feature to allow you to forcibly break into the debugger when
debugging - nothing more.

-cd
Nov 17 '05 #8
Thanks for that. Makes sense.
--
Jooster aka
Matt Pickering
Wednesbury
West Midlands
UK
"Carl Daniel [VC++ MVP]" wrote:
Jooster wrote:
Thanks Carl. But why is Windiows forcing an int-3 when F12 is pressed?


It's a feature to allow you to forcibly break into the debugger when
debugging - nothing more.

-cd

Nov 17 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.