#1 2026-04-03 16:21:28

idigger
Member
Registered: 2022-11-05
Posts: 34

TThreadList Naming Conflict in the Latest Version

A naming conflict between the `TThreadList` in the latest version of `mormot.core.threads.pas` and FPC's `TThreadList` is causing the project compilation to fail.

Offline

#2 2026-04-03 16:49:43

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 15,433
Website

Re: TThreadList Naming Conflict in the Latest Version

Inside a project, we could of course use the unit name as prefix to the type, and/or change unit order in your "uses" clause.

But I guess TThreadList is too specific for a name, if it collides with RTL classes.
We could rename this structure TThreads.

Please try with
https://github.com/synopse/mORMot2/commit/a7f457bd0

Offline

#3 2026-04-03 17:01:05

idigger
Member
Registered: 2022-11-05
Posts: 34

Re: TThreadList Naming Conflict in the Latest Version

You're right. Thanks for the suggestion—I'm going to modify the program now.

Offline

#4 2026-04-03 17:27:03

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 15,433
Website

Re: TThreadList Naming Conflict in the Latest Version

No need to modify your project.

See my link above: I have renamed it to TThreads.

Offline

#5 2026-04-03 17:43:12

idigger
Member
Registered: 2022-11-05
Posts: 34

Re: TThreadList Naming Conflict in the Latest Version

Thank you so much—everything is working fine now.

Offline

Board footer

Powered by FluxBB