TMS Web Core Setting lost? [async]

I have a unit that I use in one project that has...

[async]
procedure backAppBtnClick(Sender: TObject);

...defined in the class type and then:

procedure TstatusFm.backAppBtnClick(Sender: TObject);
begin
hasDataChanged := False;
await(...);

..
..
end;

...and it compile just fine with no complaints. Yet in another TMS Web application project the same file gets pulled in, however when compiling it I then get

[Error] ...: await only available in async procedure

...which it clearly is, and works when used in the other TMS Web project file.

What would cause this? Setting in the project file somewhere or inclusion of something that shouldn't be? Still digging here, but figured I would ask see if anyone has any insight as to why this is happening with one project and not the other.

Add the unit to the project, then async gets resolved properly.

Well did one better, found the data module that was being pulled into this app, that was pulling the file that was causing the issue, Extracted what I needed from it for a new DM for this project since I didn't need the other units anyway, it would have snaked into even more unit references from the one that was having issues.

1 Like