SRL Archive - Bugs

Objects Cause Memory Leak


Capricorn

2011-01-24 00:05:48

Objects cause memory leak.

  repeat
derp := GetObjectsByIDex([52296, 52299], 0, 20);
wait(25);
until false

Run that and it will max your memory. 30 seconds of this makes the ram usage go up to 1 GB.

Bad Boy JH

2011-01-24 00:20:09

hmm…
I wonder the cause of this…

Capricorn

2011-01-24 00:26:52

In the meantime I'm setting the arrays to a length of 0.

Nava2

2011-01-24 02:39:08

Delightful..

Okay, well I appreciate the notion of finding it. I guess we'll have to look into fixing it..

I just hope its not a SMART issue (not saying it is, haven't looked yet at all lol).

TomTuff

2011-01-24 02:48:55

Don't you have to free TRSObjects?

Capricorn

2011-01-24 02:52:55

From: TomTuff
Don't you have to free TRSObjects?


How do you free just a TRSObject? I can set a array to 0 but what do I do with a TRSObject that's not in an array?

TomTuff

2011-01-24 03:00:58

From: Capricorn
How do you free just a TRSObject? I can set a array to 0 but what do I do with a TRSObject that's not in an array?


Hmmm there's no FreeTRSObject or anything along those lines in Objects.Simba. If this is the issue, the one thing I can think of is setting the TRSObject equal to NULL_RSOBJECT.

Iamadam

2011-01-24 06:37:27

SmartFreeObject(obj);