SRL Archive - Help and Support

I dont get it?


yourock12345

2009-05-03 18:48:09

[Runtime Error] : Exception: Out of memory in line 437 in script C:\Program Files (x86)\SCAR 3.15\includes\SRL/SRL/Core/Text.scar

how do u run out of memory?!?! it keeps happening on forefeathers,

noidea

2009-05-03 18:51:26

I have that.
After like 30 hours =\
Maybe because it uses ChooseOption all the time. I have told N1ke! about this already. Thx for posting. Maybe it'll get fixed.

MylesMadness

2009-05-03 19:12:41

From: noidea
I have that.
After like 30 hours =\
Maybe because it uses ChooseOption all the time. I have told N1ke! about this already. Thx for posting. Maybe it'll get fixed.
Why would telling N1ke do anything?

Naike

2009-05-03 19:29:09

I modified ChooseOption to ChooseOptionMulti…

But the problem is in scar, go flame freddy :D

yourock12345

2009-05-03 23:01:24

haha kayy

Freddy1990

2009-05-04 00:13:26

Hmm, SCAR should allocate sufficient memory to fit it's needs, not sure how this would be caused…

Shuttleu

2009-05-04 01:10:34

could there be a memory leak in the script somewhere?
or scar?
probably script if its only happening to that one script

~shut

noidea

2009-05-04 01:23:54

From: Shuttleu
could there be a memory leak in the script somewhere?
or scar?
probably script if its only happening to that one script

~shut


Its the only script at SRL to use ChooseOption as much as it does. And it runs so long.
Maybe (If it's an SRL Bug), thats why it hasnt been found.

yourock12345

2009-05-04 04:20:28

its on forefeathers…

mormonman

2009-05-04 04:33:23

I get the out of memory error for other scripts, and other functions. It isn't just ChooseOption. I actually do think it is scar(sorry freddy).

P1nky

2009-05-04 07:45:12

i get that error when your debug line goes like overloaded.

To prevent that, i put Cleardebug;

Works fine than, try that?

Da 0wner

2009-05-04 10:18:47

program New;
begin
repeat
Writeln(Replicate(Chr(RandomRange(1,100)), RandomRange(800, 1500)));
until(IsFKeyDown(12));
end.

That doesn't do anything or show any errors after I run it for 10 minutes. I think it is just that you are out of memory like it says lol.

yourock12345

2009-05-05 23:32:57

cleardebug trick doesnt work… i am pretty sure its a SCAR issue…

Floor66

2009-05-06 02:14:45

Maybe opening too much DTMs/BMPs without freeing them so they just clogg up ? :s

Nava2

2009-05-06 05:02:20

Oh shit.. I wonder if I loaded a bitmap and forgot to free..


Nope, I'm safe.

Not me <3

Gu3st...

2009-05-06 19:38:09

Maybe declaring and freeing DTMs too much causes this?
forefeathers uses feather[0]and feather[1] (not sure about name) and it is freeing them after every findfeathers;

I don't know, jst throwing in some ideas…

ShowerThoughts

2009-05-06 20:19:32

Could be possible I also use that, in my not working any more Clay softner.

Freddy1990

2009-05-07 00:48:23

From: Zyt3x
Maybe declaring and freeing DTMs too much causes this?


Hmm, possibly, DTMs aren't recycled like bitmaps

EDIT: DTMs will be recycled in SCAR 3.20c which I'm releasing as we speak.