Jump to content

Recommended Posts

Hi Everyone,

 

I've just downloaded SynEdit for VCL 2024.08 from GetIt for use in a project and I cannot get any of the demo's to compile. They all stop at line 379 in SynEditTextBuffer.pas with E2003 Undeclared Identifier: 'TParallel' and E2066 Missing Operator or Semicolon.

It doesn't seem to like the TParallel and the TParallel.&For.

 

I've checked the uses section and it includes the System.Threading entry so I'm guessing that's mot the issue. 

 

Is there something I'm missing or have forgotten to do?

 

Any help or suggestions would be greatly appreciated as I'm stumped!

 

Thanks

Matthew

TSynEditStringList.GetMaxWidth function.png

Delphi compiler Error.png

Share this post


Link to post

No idea.  If you start a new project, import System.Threading, and use TParallel does it compile?

Edited by pyscripter

Share this post


Link to post

Hi Pyscripter,

 

Thanks for replying and great suggestion. I just tried it and when I import System.Threading it compiles as expected. However when I type "System.Threading." into a procedure expecting the autocomplete to have TParallel.For in it's list it's not there. It recognises System.Threading but TParallel.For doesn't appear to be available.

 

I suspect I'm missing something really obvious...

 

Cheers

Matthew

Edited by matthew.devalle

Share this post


Link to post

Hi PyScripter,

 

Yes, it turns out I was missing something really obvious. I hadn't checked the "Link with runtime packages" checkbox!

 

Thanks for your help; much appreciated.

 

Cheers

Matthew

Screenshot 2025-02-04 120721.png

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×