Error allocating evaluation memory
 
Post new topic   Reply to topic    Hawkee.com Forum Index -> mIRC Scripting
 
riccardo123  -  Sat Jun 02, 2012 2:06 am Reply with quote
Please i neeed help with this error becouse its killing me.
This error comes in diferent places when i declare the alias
or in a return statement


Doesn anyone knows what it means


thank u
Meta  -  Sat Jun 02, 2012 4:17 am Reply with quote
Could you post one of the scripts that's causing the error, so that we can help determine the most likely cause of the problem?
riccardo123  -  Sat Jun 02, 2012 6:46 am Reply with quote

Quote

alias /nderkorn {
if ($1 < 10) { var %krh = $chr(35) $+ $1 }

else { var %krh = $1 }
if ($2 < 10) { var %kra = $2 $+ $chr(35) }
else { var %kra = $2 }
if (%shfaqperfq == $null) {
if ($1 = $2) {
var %korgrafrresht =  $+ $ndertgrafm($1) $+ $chr(7) $+ %krh - %kra $+  $+ $ndertgrafd($2)

}
elseif ($1 > $2) {
var %korgrafrresht =  $+ $ndertgrafm($1) $+ $chr(7) $+ %krh - %kra $+  $+ $ndertgrafd($2)
}
else {
var %korgrafrresht =  $+ $ndertgrafm($1) $+ $chr(7) $+ %krh - %kra $+  $+ $ndertgrafd($2)
}
return %korgrafrresht

}
else {

if ($1 = $2) {
var %korgrafrresht =  $+ $ndertgrafm($1) $+ $chr(7) $+ %krh $+ % $+ - $+ %kra $+ % $+  $+ $ndertgrafd($2)
}
elseif ($1 > $2) {
var %korgrafrresht =  $+ $ndertgrafm($1) $+ $chr(7) $+ %krh $+ % $+ - $+ %kra $+ % $+  $+ $ndertgrafd($2)
}
else {
var %korgrafrresht =  $+ $ndertgrafm($1) $+ $chr(7) $+ %krh $+ % $+ - $+ %kra $+ % $+  $+ $ndertgrafd($2)
}
unset %shfaqperfq
return %korgrafrresht
}
;return %korgrafrresht
}


alias /ndertgrafm {
unset %grfm
echo 5 -s $1- dhe %shfaqperfq
if (%shfaqperfq == $null) {
if ($1 > 30) {
var %khvbid = 30
}
else { %khvbid = $1 }
if ($calc(%khvbid % 2) == 1) {
var %uk = $int($calc(%khvbid / 2))
if (%uk == 0) {
set %grfm $str($chr(35),14) $+ (
; var %grfm = $str($chr(35),$int(%nh))
}
else {
set %grfm $str($chr(35),$calc(15 - (%uk + 1))) $+ ( $+ $str($chr(44),%uk)

}
}
else {
var %uk = $calc(%khvbid / 2)
if (%uk == 0) {
set %grfm $str($chr(35),15)
; var %grfm = $str($chr(35),$int(%nh))
}
else {
set %grfm $str($chr(35),$calc(15 - %uk)) $+ $str($chr(44),%uk)
}
}
echo 7 -s %grfm
return %grfm
}
else {
%khvbid = $1
if ($calc(%khvbid % 2) == 1) {
var %uk = $int($calc(%khvbid / 10))
if (%uk == 0) {
set %grfm $str($chr(35),14) $+ (
; var %grfm = $str($chr(35),$int(%nh))
}
else {
set %grfm $str($chr(35),$calc(15 - (%uk + 1))) $+ ( $+ $str($chr(44),%uk)

}
}
else {
var %uk = $calc(%khvbid / 10)
if (%uk == 0) {
set %grfm $str($chr(35),15)
; var %grfm = $str($chr(35),$int(%nh))
}
else {
set %grfm $str($chr(35),$calc(15 - %uk)) $+ $str($chr(44),%uk)
}
}
return %grfm
;unset %shfaqperfq
}
}



and the erro line is the return statement of $ndertgrafm
return %grfm
Meta  -  Sat Jun 02, 2012 12:40 pm Reply with quote
I was unable to reproduce the error using either of the aliases you've provided.

Do you have another script which calls the alias that might be causing the problem?
_Dean_  -  Sun Jun 03, 2012 11:46 am Reply with quote
what is your mIRC version?

older versions cant handle a lot of characters in variables

Quote


This is a generic error that indicates that mIRC was unable to allocate the required memory to perform a certain function. As with any programming language, it is very easy to make mIRC display this error - all you have to do is to allocate huge numbers of hash tables or binary variables, load large numbers of bitmaps, and so on. At some point, when system resources have been used up, mIRC will return this error and you will probably start to see other applicatons behave strangely as well. You will need to review the scripts you are using to see where the memory is being allocated and whether your scripts are freeing it correctly when necessary.


By Khaled himself
riccardo123  -  Sun Jun 03, 2012 11:40 pm Reply with quote
My version is 7.19. And there is another script that read values from an ini file and after that calls the above script
Display posts from previous:   
Post new topic   Reply to topic    Hawkee.com Forum Index -> mIRC Scripting All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.