SRL Archive - FAQ

Is this right?


Valeyard

2012-08-24 17:05:27


Just to clarify, thats around 1.7Gb for Simba

Lol.

x[Warrior]x3500

2012-08-24 17:08:29

does the script have a memory leak?

Valeyard

2012-08-24 17:11:36

From: x[Warrior]x3500
does the script have a memory leak?


I am assuming so, I was going to post in his thread but I don't expect to get an answer from the dev any time soon so I posted here first just to check.

http://villavu.com/forum/showthread.php?t=77489

Is said script causing this, I was getting quite a few errors about DTMs not being freed. I can guess this can be attributed to the memory issue too.

grats

2012-08-24 17:15:13

I'd take that much memory usage with 00% CPU anyday

Valeyard

2012-08-24 17:33:40

From: grats
I'd take that much memory usage with 00% CPU anyday


Haha it fluctuates between 0 and 6, that was just bad timing

masterBB

2012-08-24 17:56:32

Monkey thiever v0.12

Memoryleak:

line 802:
[INDENT]ATPA := TPAToATPAEx(TPA, 20, 20);
should be:
TPAToATPAExWrap(TPA, 20, 20, ATPA); [/INDENT]

That was all I could find with a quicklook at it.

Valeyard

2012-08-24 18:08:36

From: masterBB
Monkey thiever v0.12

Memoryleak:

line 802:
[INDENT]ATPA := TPAToATPAEx(TPA, 20, 20);
should be:
TPAToATPAExWrap(TPA, 20, 20, ATPA); [/INDENT]

That was all I could find with a quicklook at it.


Thanks very much for taking a look at it. I have made the change, (line 820 and not 802, just for future reference if someone reads this) and will let it run. Hopefully that was the problem, I will let you know anyway.

Cheers.

EDIT; I don't know much about pascal but was that a global/local variable problem you pointed out?

Hazzah

2012-08-25 16:46:10

From: Valeyard
Thanks very much for taking a look at it. I have made the change, (line 820 and not 802, just for future reference if someone reads this) and will let it run. Hopefully that was the problem, I will let you know anyway.

Cheers.

EDIT; I don't know much about pascal but was that a global/local variable problem you pointed out?


I believe it was a wrapper problem with TPA/ATPA.

E:
From: masterBB
Use wrappers, functions that return TPA and ATPA types will hog memory.

TPAtoATPAExWrap(ATPA, TPA, 20, 15);

We don't got a wrapper yet for middle tpa, you might want to push a fix for that.


http://villavu.com/forum/showthread.php?t=88939&highlight=ATPA+usage