Clear Memory Used By Lavascript

Is there a command to clear memory used by my scripts? For whatever reason, bad coding, too many scripts running at once, some other problem, I just want to clear up all the memory used by lavish.

I'd rather not have to close and restart or reboot the computer. ending all running scripts doesn't seem to do what I want. This could be an issue with Everquest2 and have nothing to do with lavish, but i just want to blow everything away and hopefully immediate just start one script back up.

Let say I wrote a new simple script, but for some reason I messed up a line of the code. It basically turns into a memory leak and maxes out the memory being used, or causes everquest to become sluggish / unresponsive. I want to simply stop the script and clear up the memory. i.e. take it back to when i first started the session.
 

Kannkor

Ogre
Why do you think memory isn't being cleared?
I'm pretty sure unless you are doing things with "globalkeep" (and if you don't know what that means, then you're not), you can't really create a memory leak in lavishscript. It's all managed for you.

If you really think there is an issue, make a script that reproduces the results, and I'm sure lax would happy look at it. But you need to come with some evidence... :)
 

Herculezz

ISX Specialist
Is there a command to clear memory used by my scripts? For whatever reason, bad coding, too many scripts running at once, some other problem, I just want to clear up all the memory used by lavish.

I'd rather not have to close and restart or reboot the computer. ending all running scripts doesn't seem to do what I want. This could be an issue with Everquest2 and have nothing to do with lavish, but i just want to blow everything away and hopefully immediate just start one script back up.

Let say I wrote a new simple script, but for some reason I messed up a line of the code. It basically turns into a memory leak and maxes out the memory being used, or causes everquest to become sluggish / unresponsive. I want to simply stop the script and clear up the memory. i.e. take it back to when i first started the session.
your third example sounds to me like less of a memory issue and more of a loop timing issue, I cant say for 100% certainty because I have not seen your scripts, but im my experience the scripts that tend to cause eq2 to act as you describe tend to be missing a wait of some form in a loop causing slow downs, so check your scripts make sure there is something in your loops to make it wait at least a frame (probably more) between each iteration. if that's not it then I do remember something to do with the nofog feature of isx and ati video cards that did cause a memory leak back in the day not sure if this is still an issue. But ya like kannkor said if you are ending the scripts as you say and there are no globalkeep variables with a shit ton of data in them then lavish automatically clears everything when u end the script.
 
It's got to be the loop piece. I'll check the scripts again and make sure there isn't a global set of items. I was just hoping there was a force clear that I could use as a method to debug the issues.

I guess the next time I see performance degrading, i'll simply try the end all scripts running first....
 
Top Bottom