SRL Archive - OSR Help

Access Violation?


Elvis

2012-12-02 01:37:07

I read the stickied thread, but I'm totally confused by it.

Thank you for using King Citadel by Elvis!
SRL Compiled in 16 msec
Current player: Elvisthepup
King Citadel set to option: Loom!
Error: Exception: Access violation at line 119
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap, SRL - NavBar Bitmap]




I keep getting this, but my script compiles. I'm not sure how to get around this.


edit: when I delete the SinceWeaved procedure:
function SinceWeaved: integer;
begin
MarkTime(SinceAction);
Result:= TimeFromMark(SinceAction);
if (SinceWeaved > 20000) then
case(activity) of
0: FailSafe('Loom not found!');
end;
end;

and

SinceWeaved;

from my main loop the error no longer appears.

Elvis

2012-12-02 11:38:42

any ideas?

superuser

2012-12-02 12:33:00

From: Elvis

function SinceWeaved: integer;
begin
MarkTime(SinceAction);
Result:= TimeFromMark(SinceAction);
if (SinceWeaved > 20000) then
case(activity) of
0: FailSafe('Loom not found!');
end;
end;


Don't you have there something like infinite recursive function? You define function SinceWeaved and you call itself inside it till the end of times.

Elvis

2012-12-02 18:00:49

What do you mean?