SRL Archive - Suggestions

Memory Leak


Brandon

2013-09-05 16:06:06

Not sure if this is a Lape or Simba bug but it needs fixing and I can't find the Simba/Lape bug section anywhere (Seems to be a Simba bug since PS/Lape interpretter switching doesn't make a difference).. but here goes..


Foo.Simba:

{$include_once Bar.Simba}

Bar.Simba:

{$include_once Foo.Simba}


Notice the cyclical dependencies.. Basically using Simba files like C-headers is a no-no.. They cannot include each other even with the include_once directive. An if-def to guard the file could work (though I didn't check that yet..) Forward declarations of the functions needed work but that's beside the point. However, simply forgetting costs a lot of memory!

Result of the above is:



If I don't limit my Ram and put Simba on lowest priority, it eats nearly 3GB of ram -___-
Adding functions to the above files only make it worse lol..

So my suggestion is that we should be allowed to have files depend on eachother.


@Wizzup?; Just because ;)

Wizzup?

2013-09-18 03:44:20

This should just work, it worked before. I specifically patched PascalScript for this… Let's see…

Dgby714

2013-09-18 04:04:19

This is an issue with the CodeInsight parser. (Function List and Code Completion)

It currently treats include_once and include the same.

I'll look into it soon.