Search found 17 matches

by Keith
Fri Feb 23, 2007 12:50 pm
Forum: VCL
Topic: LoadTreeFromStream- eternal loop- TeeTreeFindGlobalComponent
Replies: 1
Views: 7602

Found the problem- seems to be bug in that the component's name is saved with the stream, which causes a problem when trying to load it. This text must be removed from the stream. Here is a simple routine to handle it for you: procedure FixedSaveTreeToStream(ATeeTree: TCustomTree; AStream: TStream);...
by Keith
Fri Feb 23, 2007 11:49 am
Forum: VCL
Topic: LoadTreeFromStream- eternal loop- TeeTreeFindGlobalComponent
Replies: 1
Views: 7602

LoadTreeFromStream- eternal loop- TeeTreeFindGlobalComponent

Support, I see this has come up before, but I did not see a solution. I am using SaveTreeToStream & LoadTreeFromStream to copy the contents of one TTree to another, but I am getting an eternal loop in the 'TeeTreeFindGlobalComponent' procedure when calling LoadTreeFromStream. Here is the sample code...