Announcement

Collapse
No announcement yet.

CTRL-Break or CTRL-C

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • CTRL-Break or CTRL-C

    Have anyone noticed that CTRL-Break or CTRL-C does not work as it used to be with the earlier versions of the compiler.

    If you have a program running and you want to force it to stop, the above key combinatioin does not work.
    Regards
    Haitham

  • #2
    I'm not aware that Ctrl-C has ever interrupted a PowerBASIC program -- even in PB/DOS -- and in PB/CC the Ctrl-Break behavior is controlled with this metastatement:
    Code:
    #BREAK ON|OFF
    -- Eric
    "Not my circus, not my monkeys."

    Comment


    • #3
      Thanks Eric, #BREAK ON worked perfectly.

      I think I used to press CTRL-C and CTRL-Break franticly to try to stop the program and when it stopped ^Cs were displayed at the command prompt which explains what you mentioned above that CTRL-C does nor work.

      Thanks again.
      Regards
      Haitham

      Comment


      • #4
        Originally posted by Eric Pearson View Post
        I'm not aware that Ctrl-C has ever interrupted a PowerBASIC program -- even in PB/DOS -- and in PB/CC the Ctrl-Break behavior is controlled with this metastatement:
        Code:
        #BREAK ON|OFF
        -- Eric

        PB/DOS has a linker option to enable/disable Break. I always disabled it and even blocked the 3 finger salute...
        sigpic
        Mobile Solutions
        Sys Analyst and Development

        Comment


        • #5
          See SetConsoleCtrlHandler API
          thinBasic programming language
          Win10 64bit - 8GB Ram - i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB

          Comment

          Working...
          X