Nufineek
2014-02-08 04:30:47
After about 1hr running of my script it terminates and I get: "The following DTMs were not freed". How should I free DTMs? Is that really a reason to crash?
2014-02-08 04:30:47
2014-02-08 04:38:50
From: Nufineek
After about 1hr running of my script it terminates and I get: "The following DTMs were not freed". How should I free DTMs? Is that really reason to crash?
2014-02-08 10:07:24
program freemahdtmzzzz;
{$DEFINE SMART}
{$I SRL-OSR/SRL.Simba}
var
dtm1: integer;
procedure DeclarePlayer;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := '';
Players[0].Pass := '';
Players[0].Nick := '';
Players[0].Active := True;
end;
procedure LoadDTMz;
begin
dtm1: dtmfromstring :=('');
end;
procedure FreeDTMz;
begin
FreeDTM(dtm1);
end;
begin
ClearDebug;
DeclarePlayer;
SetupSRL;
if (Not LoggedIn) then
begin
LogInPlayer;
end;
LoadDTMz;
AddOnTerminate('FreeDTMz');
repeat
stuff;
until(false);
TerminateScript;
end.
2014-02-08 14:23:34
From: The Mayor
I doubt that would be the reason your script is terminating. Is there any other debug information displayed on termination?
2014-02-08 15:48:39
From: Nufineek
I was waiting till I get this again. Now i got it:
The following DTMs were not freed: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206]
2014-02-08 16:10:30
From: Nufineek
I was waiting till I get this again. Now i got it:
The following DTMs were not freed: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206]
2014-02-08 16:33:01
From: The Mayor
Was there anything above that in the debug box? That isn't a reason why it failed, that's just telling you it wasn't able to free the DTMs once the script terminated.
2014-02-08 16:34:28
From: Nufineek
fail, I forgot to copy that…sorry
Exception in Script: Runtime error: "Access violation" at line 352, column 53 in file "C:\Simba\Includes\SRL-6\lib\interfaces\chooseoption.simba"
2014-02-08 20:13:47
From: Sk1nyNerd
did you look at what i posted? that would of stopped all of those from displaying like that
2014-02-08 20:29:21
From: Nufineek
Yes, thanks :) unfortunately this is not the issue. :(
2014-02-09 05:11:22
From: Sk1nyNerd
yes i know, but it would stop your debug box from clouding up so you could see what was actually wrong. post the code at the line the error occurs. my guess is your telling it to pick an option that doesnt exist