From: mobb
actually last night the script stopped once because DTM Minimap or something along those lines wasn't freed
it said attempting to free.. but the bot just stood there and didnt move even after like 5 min
I think it would be much more helpful to you to copy and paste the full debug log up until script termination. Is this a private script of yours? If so, you should insert debug lines at key points in the script to find out exactly what is going on.
Often times as scripters we are tempted to patch errors with alternate fixes (although tbh I believe you can only pause a script from within and resume it?) but it's usually more beneficial to fix the core problem.
What hoodz is talking about (I believe) is that if you are not freeing memory after using DTMs and Bitmaps, overtime this causes a buildup and a stop may occur like the one you're experiencing.
e.g.
procedure usingSomeDTM;
var
myDTM: integer;
begin
myDTM := DTMFromString('skjdhgasdfkjhagdfkjahdgfakjsdhfg');
{...}
//usage of the DTM here
{...}
freeDTM(myDTM); //freeing of the memory used by the DTM
end;
I think you could theoretically code an extension to do what you want but this is a lot of unnecessary work as opposed to fixing the original error.