mIRC Home    About    Download    Register    News    Help

Print Thread
Strange ComObjects random code execution #213535 30/06/09 06:38 AM
Joined: Oct 2003
Posts: 214
S
Sephiroth_ Offline OP
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Oct 2003
Posts: 214
While executing ComObjects and Changing Scripts while runs it apperears often that on completition of the ComObject mIRC executes random codesequences or scriptcommands.

Example: You request something from a mysql database that takes some time and change in the meanwhile something on a scriptfile (no matter which one), after the comobject will be closed/finished it request mIRC executes random codes/aliases. (Only if you saved the changes to the scriptfiles/aliasfiles)


one step closer to world domination
Re: Strange ComObjects random code execution [Re: Sephiroth_] #213538 30/06/09 07:39 AM
Joined: Nov 2006
Posts: 1,559
H
Horstl Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
I guess mIRC tries to continue parsing at a specific "byte position" and can't recover this position if the code was changed in the meantime.
You can produce this bug (I think it's the same issue) with an input prompt as well:
Code:
alias bug {
  if ($input(Input prompts open a modal window and the execution of the alias currently running is paused. $&
    $str($crlf,2) $+ If you change (and save) some part of this very text while the input prompt is open $&
    (open the scripts editor in "normal" mode so you can switch between the editor and some editbox) $&
    you should be able to reproduce the bug.,og,How to reproduce the bug)) { 
    ECHO -ag Or change some part of this echo command. A single char should be sufficient.
  }
}

Results in e.g.:
* /gecho: not connected to server
* /0'echo: not connected to server
* /~/h5: not connected to server
* /if: close bracket not found