mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jul 2004
Posts: 3
F
Self-satisified door
OP Offline
Self-satisified door
F
Joined: Jul 2004
Posts: 3
i make my away script, it works fine, except for one thing: the mIRC returns me this error msg:
* Error allocating stack memory (line 18, iChat.ic)
and on 18th line there's this alias: alias -l _ini { return $replace($readini(iChat.ini,$1 ,$2),-k-,,-b-,,-u-,,-o-,,-r-,) }
what's wrong ? frown

Joined: Aug 2003
Posts: 7
T
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
T
Joined: Aug 2003
Posts: 7
I am having the same kind of error here, never seen it before.... My mIRC version is 6.16

* Error allocating stack memory (line 86, mserv.ini)

The script:
Code:
 
alias -l uploadnewscript {
  var %x 0
  while ($lines(new_mserv.ini) > %x) {
    inc %x
; Here comes line 86:
    sockwrite -n $sockname $read(new_mserv.ini,%x)
; That was line 86.
  }
  sockclose $sockname
} 
 

Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
try echoing %x and finding/pasteing that line here.

Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
flanders,

Can you also give the 'parameters' your using in your alias along with your EXPECTED result.

Eamonn.

Joined: Aug 2003
Posts: 7
T
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
T
Joined: Aug 2003
Posts: 7
I am working on it now smile

I am also trying if it is a mIRC 6.16 thing smile

just for now im finding %x

%x == 86

Code:
  
alias -l uploadnewscript {
  var %x 0
  while ($lines(new_mserv.ini) > %x) {
    inc %x
    sockwrite -n $sockname $read(new_mserv.ini,%x)
    echo : %x
  }
  sockclose $sockname
}


Output:
Code:
 
: 82
: 83
: 84
: 85
-
* Error allocating stack memory (line 86, mserv.ini)
-
 

Last edited by Trout_2k; 15/07/04 03:42 PM.
Joined: Aug 2003
Posts: 7
T
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
T
Joined: Aug 2003
Posts: 7
in mirc 6.14 it also freezes for like 3 sec....

Output:
Code:
 
: 83
: 84
: 85
 

(and then it freezes up for 3 sec, and then the scripts aborts.)
No Error this time.


Maybe i got the error wink lol :tongue:
$read(New_mserv.ini,85) ==> "inc %x"

Last edited by Trout_2k; 15/07/04 03:52 PM.
Joined: Jul 2004
Posts: 3
F
Self-satisified door
OP Offline
Self-satisified door
F
Joined: Jul 2004
Posts: 3
alias away {
if !$1 {
dialog -m away away
}
else {
if !$server { kte_error Away: Você não está conectado a um servidor. }
if $away { kte_error Away: Você já está away com o motivo $+(",$1-,") }
if ($server) && (!$away) {
if $_ini(away,mrede) {
scid -a away $1-
scid -a set %_me. [ $+ [ $network ] ] $me
if !$_ini(away,silent) { scid -a $gettok($_ini(away,adv),1,9) $replace($_ini(away,adv),-rsn-,$awaymsg,-time-,%_away.time) }
}
else {
away $1-
set %_me $me
if !$_ini(away,silent) { $gettok($_ini(away,adv),1,9) $replace($_ini(away,adv),-rsn-,$awaymsg,-time-,%_away.time) }
}
var %_rsn $1-
set %_away.time $time(hh:nn)
if $_ini(away,deop) { var %a = 1 | while $chan(%a) { if ($me isop $v1) { mode $v1 -o $me } | inc %a } }
if $_ini(away,mnick) { .nick $replace($_ini(away,nick),-me-,$me) }
}
}
}

that's the alias, when I tipe /away reason the error msg shows up.. and it isn't the first time that it happens.. mIRC 6.16 and also happened on 6.15

Ps: sorry about my english.. I'm brazilian smirk

Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
Trout_2k ,

sockwrite -n $sockname $read(new_mserv.ini,%x)

^ where is it getting $sockname from, if its in an alias, your running hte alias inside an on sockopen? also try using $read(new_mserv.ini,n,%x)

Eamonn.

Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
Flanders, can you indicate which line is 18.

Joined: Jul 2004
Posts: 3
F
Self-satisified door
OP Offline
Self-satisified door
F
Joined: Jul 2004
Posts: 3
alias -l _ini { return $replace($readini(iChat.ini,$1 ,$2),-k-,,-b-,,-u-,,-o-,,-r-,) }
that's the 18th line


Link Copied to Clipboard