Recent

Author Topic: [SOLVED] Why OnKeyDown eventhandler show something strange at F12?  (Read 2433 times)

egsuh

  • Hero Member
  • *****
  • Posts: 1297
I assigned just OnKeyDown event handler (doing nothing) to process a few function keys. Other function keys are OK, but when I press F12, the screen of attached file shows up. I just close the window, then program goes on. Isn't this a problem?
« Last Edit: August 02, 2018, 11:51:55 am by egsuh »

egsuh

  • Hero Member
  • *****
  • Posts: 1297
Re: Why OnKeyDown eventhandler show something strange at F12?
« Reply #1 on: August 02, 2018, 09:28:40 am »
I think this might have happened because I ran the application within IDE (flip between editor and form). When I ran compiled .exe file, no such thing occurred.

Pascal

  • Hero Member
  • *****
  • Posts: 932
Re: Why OnKeyDown eventhandler show something strange at F12?
« Reply #2 on: August 02, 2018, 11:08:59 am »
When debugging F12 also pauses the program (At least on Windows with GDB).
The window you see is the position where the program stopped (Assembler). Press F9 and you are done.
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

egsuh

  • Hero Member
  • *****
  • Posts: 1297
Re: Why OnKeyDown eventhandler show something strange at F12?
« Reply #3 on: August 02, 2018, 11:51:42 am »
Oh I see. It stopped the debugging. Learning many things. Heartful thanks to you.

pik33

  • Jr. Member
  • **
  • Posts: 76
Re: [SOLVED] Why OnKeyDown eventhandler show something strange at F12?
« Reply #4 on: September 04, 2018, 07:59:10 pm »
Can I switch this off?

This is very annoying while debugging fullscreen SDL application.
After f12 the applicatin stops responding while still covering all the screen and you cannot display any window over it, even the task manager The only solution is then logging out after ctrl-alt-del

Cyrax

  • Hero Member
  • *****
  • Posts: 836
Re: [SOLVED] Why OnKeyDown eventhandler show something strange at F12?
« Reply #5 on: September 04, 2018, 08:55:28 pm »
See https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2003/cc786263(v=ws.10)

I don't know if changing UserDebuggerHotKey to different key than F12 works in Windows 10.

Can I switch this off?

This is very annoying while debugging fullscreen SDL application.
After f12 the applicatin stops responding while still covering all the screen and you cannot display any window over it, even the task manager The only solution is then logging out after ctrl-alt-del

Change the default value (0) of UserDebuggerHotKey to 0xFF to disable this feature.
« Last Edit: September 04, 2018, 08:57:15 pm by Cyrax »

pik33

  • Jr. Member
  • **
  • Posts: 76
Re: [SOLVED] Why OnKeyDown eventhandler show something strange at F12?
« Reply #6 on: September 05, 2018, 07:41:15 pm »
Thank you, it works. (Win10x64)

pik33

  • Jr. Member
  • **
  • Posts: 76
Re: [SOLVED] Why OnKeyDown eventhandler show something strange at F12?
« Reply #7 on: January 19, 2019, 02:17:46 pm »
After a big Win10 update I had to use regedit again as the value was reset to 00

 

TinyPortal © 2005-2018