Project

General

Profile

Actions

Bug #3579

closed

Ctrl+Break doesn't breaking an code execution

Added by westor (GR) over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Scripting
Target version:
Start date:
07/13/2017
Due date:
% Done:

0%

Estimated time:
Operative System:
All
Regression:
No

Description

Hello,

I tried to break an code execution but CTRL+Break key shortcut didn't really acting and forcing adiirc to stuck.

Example Code (IT WILL FORCE ADIIRC TO STUCK):

alias test_break {
  var %t = 50
  var %i = 1
  while (%i <= %t) { 
  }
}

- Thanks!

Actions #1

Updated by Per Amundsen over 6 years ago

  • Status changed from New to Rejected

When the GUI thread is locked running a loop it doesn't respond to keyboard events in .NET.

Actions #2

Updated by Per Amundsen over 6 years ago

  • Status changed from Rejected to Resolved

I figured out a workaround, polling for keyboard state outside AdiIRC GUI thread, I added a poll each time a /while or /goto line is executed, I am not sure of the performance loss doing it like that, we'll see.

Actions #3

Updated by Per Amundsen over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF