Reputation: 69
I have an old Delphi 7 project. When the application starts, a lot of dictionaries are loaded into the ComboBoxes.
Is it safe to fill ComboBoxes in a separate thread without the Synchronize method? During the loading process, the user does not yet have access to the visual components and will receive it only after all threads have finished.
Upvotes: 1
Views: 245
Reputation: 28514
Is it safe to fill ComboBoxes in a separate thread without the Synchronize method?
No. It is never thread-safe to access GUI controls in background thread without synchronization.
Upvotes: 2