Hello,
Q1) STORE AND LOAD ON FILE
if y use this code > the store on file is OK with file create file but reload is no possible ??
Tree1.NoOwnerShapes:=False;
SaveTreeToFile(Tree1,'c:\tmp2.ttr');
Tree1.Clear;
LoadTreeFromFile(TCustomTree(Tree1),'c:\tmp2.ttr'); //<< plantage
Q2 ) STRORE AND LOAD ON STREAM
Who take for Store And Reload Tree in Stream, witout tempory file ??
TreeTree store abd reload (file and Stream)
Q1) This should be working. When do you set Tree1.NoOwnerShapes to false? in the OnCreate event of the form? or just when saving the tree?
Q2) Sorry, I don't understand your question. Do you want to know how to use the LoadTreeFromStream and SaveTreeToStream functions? Or weren't you aware of these functions?
Q2) Sorry, I don't understand your question. Do you want to know how to use the LoadTreeFromStream and SaveTreeToStream functions? Or weren't you aware of these functions?
Sorry for past time
I still problème , if i execute this code>> no execption but infinite blocking !!
try
LoadTreeFromFile(TCustomTree(Tree1),'c:\tmp2.ttr');
except
on E:exception do S:=E.message;
end;
I found in Teetree.pas where the Problème on function
TeeTreeFindGlobalComponent(const Name: string): TComponent;
the code Loop to infinite ?? why
if i stop with break point >>name = '_2978422' , etc, etc
I still problème , if i execute this code>> no execption but infinite blocking !!
try
LoadTreeFromFile(TCustomTree(Tree1),'c:\tmp2.ttr');
except
on E:exception do S:=E.message;
end;
I found in Teetree.pas where the Problème on function
TeeTreeFindGlobalComponent(const Name: string): TComponent;
the code Loop to infinite ?? why
if i stop with break point >>name = '_2978422' , etc, etc
-
- Newbie
- Posts: 4
- Joined: Wed Mar 10, 2004 5:00 am
- Location: Edmonton
- Contact:
-
- Newbie
- Posts: 4
- Joined: Wed Mar 10, 2004 5:00 am
- Location: Edmonton
- Contact: