Autor Beitrag
rochus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 416

Win XP Prof, Fedora Core 4, SuSE 7.0
D7 Ent, D2005 Pers
BeitragVerfasst: Mo 17.10.05 11:28 
Hallo,
wollt mal wissen, ob das schon jemand hatte:

Formular mit einem richedit (mmo), einem edit (edtLoadText) und einem Button (Button4), die prozedur Button4Click sieht so aus:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
procedure TForm1.Button4Click(Sender: TObject);
var
  st: TStringStream;
begin
  st := TStringStream.Create(edtLoadText.Text);
  try
    st.Position := 0;
    mmo.Lines.LoadFromStream(st);
  finally
    FreeAndNil(st);
  end;
end;


so, wenn man da jetzt normales zeug eingibt (z.B. 'abc') dann klappt das auch. fängt man aber an, den RTF header zu tippen und drückt nach \{rtf: auf den button, gibt's ne Access Violation die das gesamte Programm hängt.

Gruß

_________________
Im Nachhinein ist man immer ein Schlauch!
"Dream as if you'll live forever, live as if you'll die today!" James Dean
rochus Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 416

Win XP Prof, Fedora Core 4, SuSE 7.0
D7 Ent, D2005 Pers
BeitragVerfasst: Mo 17.10.05 11:35 
Es reicht, wenn man \* eintippt, wobei * irgendein beliebiges Zeichen ist!

_________________
Im Nachhinein ist man immer ein Schlauch!
"Dream as if you'll live forever, live as if you'll die today!" James Dean