MantisBT - Soldat Dedicated Server
View Issue Details
0000083Soldat Dedicated ServerScripting Corepublic2011-10-07 13:042012-08-25 13:24
tk 
Falcon 
normalminoralways
resolvedfixed 
x86Windows7
2.7.0 
 
0000083: StrToInt() doesn't throw an exception
StrToInt() function doesn't throw an exception on invalid input string. Kind of important thing because many scripts rely on this feature using "try except" block.
procedure ActivateServer();
begin
  StrToInt('asd');
end;
No tags attached.
related to 0000015closed Falcon RoundTo() doesn't remove trailing zeros. 
Issue History
2011-10-07 13:04tkNew Issue
2011-10-07 20:32FalconNote Added: 0001197
2012-02-29 20:14FalconAssigned To => Falcon
2012-02-29 20:14FalconStatusnew => assigned
2012-05-24 20:45FalconNote Added: 0001518
2012-05-24 20:45FalconAssigned ToFalcon =>
2012-05-24 20:45FalconStatusassigned => confirmed
2012-05-24 20:50FalconRelationship addedrelated to 0000015
2012-08-25 13:24FalconNote Added: 0001579
2012-08-25 13:24FalconStatusconfirmed => resolved
2012-08-25 13:24FalconResolutionopen => fixed
2012-08-25 13:24FalconAssigned To => Falcon

Notes
(0001197)
Falcon   
2011-10-07 20:32   
From my experience i can add that this bug occurs only on windows servers
(0001518)
Falcon   
2012-05-24 20:45   
StrToInt() isn't defined by us, but by pascal script itself. Not sure what've changed that it works this way, let's hope that migration to free pascal will fix it.
(0001579)
Falcon   
2012-08-25 13:24   
Turns out that default pascal script's implementation doesn't throw exception for some random reason. Overwriting it with free pascal's implementation fixed the problem.