The cause of the problem is in JvLinkLabelParser.pas with procedure TDefaultParser.AddSourceTreeToDynamicNode. Actually Tree.Root is bad for Addchild parameter because Tree is just a temporary variable here and it is freed. It is not the correct root for LinkLabel.

I changed it to Node.Root but this requires that to be initialized before calling AddSourceTreeToDynamicNode. The problem is solved painting is stable.

I attached a sample application and a word document with pictures.
It is easier to produce the problem with 2 linklabel on the form but it also happens with 1 label as you can see on some pictures.
There are also some pictures showing the wrong values causing the bad painting.

You can also see that starting up the application does not call the dynamic tag init. It is only called when changing the caption at runtime.

Unfortunatelly I am unable to attach the zip file. First I get "The page cannot be displayed" after clicking upload. When I push enter again in the address field I get this message (I tried multiple times):
APPLICATION ERROR 0000200
A required parameter to this page (bug_id) was not found.
Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.

(0013965)
obones (administrator)2007-10-15 04:08

That's because the file was too big. I removed the exe and doc file from your zip and it uploaded just fine after that.

(0013970)
fegyvej (reporter)2007-10-15 10:04

Just a small note to the upload problem.
This is written in the upload section: (Max size: 5,000k).