Autor Beitrag
stratege15
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 58



BeitragVerfasst: Sa 01.11.03 16:53 
hier mein quelltext:

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
procedure TForm1.Button2Click(Sender: TObject);
begin
// verbindung wird zuvor erstellt
idtcpclient1.WriteFile('C:\test.bmp');  
end;

procedure TForm1.IdTCPServer1Connect(AThread: TIdPeerThread);
var bit: tbitmap;
    s: tstream;
begin
athread.Connection.ReadStream(s);
bit:=tbitmap.create;
bit.LoadFromStream(s);
bit.free;
end;


bei klicken von button2 wird eine fehlermeldung ausgegeben:
"zugriffsverletzung bei blabla.." warum funktioniert das nicht (könnt ihr mir sonst sagen wie man dateien übers netzwerk verschicken kann)?
achterburg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 50



BeitragVerfasst: Sa 01.11.03 17:24 
Wie ist das mit deiner Server Procedure.
Muss das nciht bei OnExecute rein??

Aber sonst kp, sorry
stratege15 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 58



BeitragVerfasst: So 02.11.03 00:04 
ne .. da ich kurz vorm versenden der bmp-datei erst connecte, kann das auch in der onconnect-procedure stehen...
mhm hat sonst jemand eine idee?
barfuesser
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 324



BeitragVerfasst: Mo 03.11.03 16:59 
An welcher Stelle kommt denn die Zugriffsverletzung?
Hast Du schon mal debuggt und dabei Deine Werte überprüft?

barfuesser