Creating new unnamed forms (i.e. Hint Window) prevents reading component with empty names
- Lazarus/FPC Version: Lazarus 2.2.4 (rev lazarus_2_2_4) FPC 3.2.2 x86_64-win64-win32/win64
- Operating System: Windows 7 SP1
- CPU / Bitness: Amd64
What happens
A Component owned by a form can contain empty name, be written to a stream (Stream.WriteComponent), read from the stream (Stream.ReadComponent) and usually this works.
But when a hint window is created (Hint is not empty, the Form has ShowHint property set to true, and mouse is hovered over the control for sufficient time), the creation of an empty-named component from the stream is not possible with the error "component named _1 already exists"
What did you expect
The routine of writing and reading unnamed components to work flawlessly.
Steps to reproduce
I have a project that reproduce the issue ComponentExistsIssue-Project.zip
Basically it consists of
- Action to creating, reading, placing randomly a component from the template (TLabel)
- Button to force Hint for the button. One should wait and move the mouse a little to ensure the hint appeared
- After the hint showing is forced it is enough to press "Copy" twice in order to see the error "component named _1 already exists"