Okay, i created new folder, added new empty file test.c, add there
///////////////////////////////
#include <acknex.h>
#include <default.c>
///////////////////////////////
function main()
{
vec_set(screen_size,vector(800,400,0));
vec_set(screen_color,vector(50,1,1)); // dark blue
vec_set(sky_color,vector(50,1,1)); // dark blue
video_window(NULL,NULL,0,"My New Game");
d3d_antialias = 1;
shadow_stencil = 3;
level_load(NULL);
vec_set(camera.x,vector(-250,0,50));
vec_set(camera.pan,vector(0,-15,0));
}
1)
AnVir shows that SED eats 20.5 Mb (sorry, i dont have more proffesional tool

)
I press "Run current script" button, now SED is 20.7 Mb
Close game window: 20.7
Close SED and launch again : 20.1 MB (???)
Hm... okay, now i add test.c to Main Script and press Test Run, 22.3 Mb (what???)
Close window, now its still 22.3 (even i dont expect this)
Reboot SED: 20.1 (heh, thats good)
Debug Run: 44 Mb (wtf ?!?!)
Close Engine: 36.4 Mb
Debug run again: 53Mb
Close Engine: 45 Mb
2) Lets look deeply
Reboot Sed: 20.1 Mb
Run Current Script: 20.2 (i'm really happy that you add this button

)
Close window: 20.2 Mb
Run Current Script: 20.2 Mb
Close engine: 20.2 Mb
***
Yep, "Run Current Script" creates new acknex.exe and dont disturb SED.exe - thats real

Reboot: 20.1 Mb
Test run: SED.exe - 20.3 Mb, acknex.exe - 26 Mb
Close acknex: SED.exe - 20.3Mb
Test run: SED.exe - 20.3 Mb, acknex.exe - 26 Mb
Close acknex: SED.exe - 20.3Mb
***
Looking like stable: SED.exe didn't eat more memory, but what was that on the first launch?
I think that debug is no need to test as you said that its known leak
Hey, i got new idea: sometimes, when i perss F5 after placing some breakpoints, i run Debug mode, and sometimes test mode... Can you check that? In addition with the "engine runs before scripts save" problem?
Edit: if only i would get this, i'd think that AnVir dont work properly or something like that... but it happens not only to me..