MantisBT - Soldat Dedicated Server
View Issue Details
0000083Soldat Dedicated ServerScripting Corepublic2011-10-07 11:042012-08-25 11: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 11:04tkNew Issue
2011-10-07 18:32FalconNote Added: 0001197
2012-02-29 19:14FalconAssigned To => Falcon
2012-02-29 19:14FalconStatusnew => assigned
2012-05-24 18:45FalconNote Added: 0001518
2012-05-24 18:45FalconAssigned ToFalcon =>
2012-05-24 18:45FalconStatusassigned => confirmed
2012-05-24 18:50FalconRelationship addedrelated to 0000015
2012-08-25 11:24FalconNote Added: 0001579
2012-08-25 11:24FalconStatusconfirmed => resolved
2012-08-25 11:24FalconResolutionopen => fixed
2012-08-25 11:24FalconAssigned To => Falcon

Notes
(0001197)
Falcon   
2011-10-07 18:32   
From my experience i can add that this bug occurs only on windows servers
(0001518)
Falcon   
2012-05-24 18: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 11: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.