Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

Fatal parser error

 Post Reply Post Reply
Author
Koistinen Mika View Drop Down
New Member
New Member
Avatar

Joined: 13 Oct 2010
Posts: 27
Post Options Post Options   Quote Koistinen Mika Quote  Post ReplyReply Direct Link To This Post Topic: Fatal parser error
    Posted: 24 Jun 2016 at 5:26am
Hi,
If have some old code:
var
  SettingFile: File of TSettingRecord; 
  settings: TSettingRecord;
begin
  AssignFile( File(SettingFile), filename);
  Read(SettingFile, settings);
  CloseFile(settingFile);

  Typecast File(SettingFile) causes Fatal Parser Error 
Back to Top
Roman Yankovsky View Drop Down
New Member
New Member
Avatar

Joined: 21 Jun 2016
Posts: 26
Post Options Post Options   Quote Roman Yankovsky Quote  Post ReplyReply Direct Link To This Post Posted: 24 Jun 2016 at 6:06am
Hi Mika,

Thanks for letting me know. This will be fixed in the next update.

But I just wonder what is the purpose of this typecast? :)
Back to Top
Koistinen Mika View Drop Down
New Member
New Member
Avatar

Joined: 13 Oct 2010
Posts: 27
Post Options Post Options   Quote Koistinen Mika Quote  Post ReplyReply Direct Link To This Post Posted: 24 Jun 2016 at 6:09am
Thanks,
At least delphi 2007 complains  
E2250 There is no overloaded version of 'AssignFile' that can be called with these arguments
Back to Top
Koistinen Mika View Drop Down
New Member
New Member
Avatar

Joined: 13 Oct 2010
Posts: 27
Post Options Post Options   Quote Koistinen Mika Quote  Post ReplyReply Direct Link To This Post Posted: 24 Jun 2016 at 6:11am
Sorry - 
I just realized that there exists external AssignFile on one 3rd party unit 

Back to Top
Roman Yankovsky View Drop Down
New Member
New Member
Avatar

Joined: 21 Jun 2016
Posts: 26
Post Options Post Options   Quote Roman Yankovsky Quote  Post ReplyReply Direct Link To This Post Posted: 24 Jun 2016 at 6:11am
Odd..
Anyway, if it compiles, FixInsight should be able to parse it. I will fix this.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down