SRL Archive - OSR Help

How do you get DTM's to free properly after pressing stop


Sir Ducksworthy

2012-03-20 09:00:44

Ok, we can all put a freedtms procedure in our scripts and then get the script to free them before terminating itself say if a certain amount of logs are chopped or spells are casted etc.

But how do we get it to free when the script is stopped manually?
Because it build's up a lot of Memory leaks say if your script messes up and you need to stop it manually

Sex

2012-03-20 09:02:05

Use AddOnTerminate.

Edit: By the way, DTMs are freed upon script execution.

Wyn

2012-03-20 11:58:49

From: Sex
Use AddOnTerminate.

Edit: By the way, DTMs are freed upon script execution.


Not when stopped manually. I've used AddOnTerminate and they often aren't freed when the script is stopped manually.

Sex

2012-03-20 12:01:38

From: wyn10
Not when stopped manually. I've used AddOnTerminate and they often aren't freed when the script is stopped manually.

They are freed for me at least.

Wyn

2012-03-20 12:06:54

From: Sex
They are freed for me at least.


Pretty much 99 percent of the time I stop a script including srl I often get "Not freed [1, 2, 3]" type messages.

Kyle Undefined

2012-03-20 12:08:26

Do you do a force quit, by hittting the stop button twice? If so, that's the issue.

Wyn

2012-03-20 12:27:18

From: Kyle Undefined
Do you do a force quit, by hittting the stop button twice? If so, that's the issue.


I hit stop then wait for it to stop itself, usually stops after the method that's running is finished.

Sex

2012-03-20 12:29:12

From: wyn10
Pretty much 99 percent of the time I stop a script including srl I often get "Not freed [1, 2, 3]" type messages.


Yes, that means they were freed.

Wyn

2012-03-20 12:31:23

From: Sex
Yes, that means they were freed.


Shouldn't it say freed and not freed then?

Sex

2012-03-20 12:37:29

No, it is letting you know that they weren't freed by the script, but by Simba instead.