shineworld 73 Posted December 3, 2021 Hi all, I'm trying to use TTask to perform some parallel code with Sydney 10.4.1 looking at the sample code in Help System, so it should be supported by 10.4.1: but I've got always the error: [dcc32 Error] osIPCTCPServerContext.pas(423): E2250 There is no overloaded version of 'Create' that can be called with these arguments Have you any idea about it? Thank you in advance for replies. Share this post Link to post
Rollo62 536 Posted December 3, 2021 Try var LTask : ITask; begin LTask := TTask.Run( procedure begin ... end ); end; If you don't need LTask to control the running task later, which I assume in your case, you better completely leave that out begin TTask.Run( procedure begin ... end ); end; 1 Share this post Link to post
shineworld 73 Posted December 3, 2021 WOW compile but IDE signs as error. Perhaps is a bug in LSP... Share this post Link to post
MichaelT 6 Posted December 3, 2021 Works in Embarcadero® Delphi 10.4 Version 27.0.38860.1461 RAD Studio 10.4 Update 1 Not sure if this is 10.4.1 Share this post Link to post
MichaelT 6 Posted December 3, 2021 (edited) I personally just see a few entries in the structure pane while adding code to the VAR sections for example. But those immediately disappear on entering the code correctly is finished. For a short moment the one you mentioned appears too accompanied by many regarding TThread.Synchronize for example. Edited December 3, 2021 by MichaelT Share this post Link to post
shineworld 73 Posted December 3, 2021 Works perfectly !!! The only issue is on Delphi LSP which seems unable to elaborate pascal code for anonymous procedures on TTask( proc or TThread.Synchronize( Self, proc.., Share this post Link to post