Autor Beitrag
Sors
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 47

Win XP
D7 Prof
BeitragVerfasst: Fr 14.03.08 15:37 
Hallo, ich habe einen TStringStream in den der inhalt meines JvRichEdit gespeichert werden soll.

Als erstes erzeuge ich den Stream mit

ausblenden Delphi-Quelltext
1:
Str.create('');					


Als nächstes schreibe ich die Listeneinträge in den String, mit:

ausblenden Delphi-Quelltext
1:
 JvRichEdit1.lines.savetostream(Str);					


und genau an dieser Stelle kommt eine Exception

"Zugriffsverletzung bei Adresse 0040374A in Modul 'Project1.exe'. Lesen von Adresse 0000BD0D."

Was hat das zu bedeuten und warum wird dieser Fehler ausgelöst?
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Fr 14.03.08 15:41 
Moin!

Du erzeugst die Instanz nicht richtig: :idea:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
Str := TStringStream.Create('');
try
  //...
finally
  Str.Free;
end;

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
Sors Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 47

Win XP
D7 Prof
BeitragVerfasst: Fr 14.03.08 16:05 
Titel: Thnx
Danke. Funktioniert jetzt :o)