Autor Beitrag
cirrus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 49



BeitragVerfasst: So 02.02.03 17:06 
hallo zusammen!
ich habe 2 programme geschrieben, einen client und einen server

der client soll im LAN dem server eine Datei schicken, was auch wunderbar klappt (ich verwende TClient/ServerSocket)

Wenn der Server die Datei aber empfängt friert die Anwendung ein, ich kann das Fenster nich mehr bewegen usw. Die Datei is zwar 700mb groß aber da ich ein file sharing tool fürs lan schreiben möchte muss auch sowas gehen ;)

hat jemand sowas schon mal gemacht oder hat ne ahnung wie ich es funktioniert ohne das das Fenster einfriert?
IdAntiFreeze habe ich schon ausprobiert, ändert im grunde nix.

mfg

cirrus

_________________
Wenn die Nacht am tiefsten ist der Tag am nächsten
Raphael O.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1596


VS 2013
BeitragVerfasst: So 02.02.03 17:11 
könntest es mit Threads versuchen...

gibt dazu ein Beispiel unter "Demos" im Delphi Ordner...

Fiji-Fighter
cirrus Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 49



BeitragVerfasst: So 02.02.03 17:23 
ja daran hab ich auch schon gedacht...
hab nur keine ahung wie ich das realisieren soll...

_________________
Wenn die Nacht am tiefsten ist der Tag am nächsten
Raphael O.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1596


VS 2013
BeitragVerfasst: So 02.02.03 17:28 
haste dir das Besipiel denn mal angeschaut??

bitte konkrete Fragen dazu...

Fiji-Fighter
cirrus Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 49



BeitragVerfasst: So 02.02.03 17:33 
ja das hab ich, ich weiss aber nich wie ich die ereignisroutinen von TClient/ServerSocket in nen Thread einarbeiten soll.
so wie ich das in dem beispiel gesehen hab läuft ein thrad ja immer nur in einer funktion ab, oder?

_________________
Wenn die Nacht am tiefsten ist der Tag am nächsten
Raphael O.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1596


VS 2013
BeitragVerfasst: So 02.02.03 17:50 
hab leider auch kaum ahnung :cry:

schau dir mal dieses deutsche tut dazu an...
www.tutorials.delphi.../threads/index.shtml

Fiji-Fighter
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: So 02.02.03 18:13 
Wenn du das Programm mit Indy schreibs bringt IdAntiFreeze was.
FaTaLGuiLLoTiNe
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 200
Erhaltene Danke: 5

Windows 7, Windows 8.1
Delphi XE
BeitragVerfasst: Mi 12.02.03 15:21 
Such mal das Internet ab zum Thema "Blockierende und nicht blockierende Socket - Verbindungen" oder so, damit hat Dein Problem definitiv zu tun.

Hier mal ein evtl interessanter Link:

www.delphi-treff.de/...urs/index.php4?kat=1
lippi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 26



BeitragVerfasst: So 23.02.03 09:34 
ich habe dir eine pn geschrieben weil ich das gleiche problem habe und auch froh um eine lösung wäre. ich hoffe du kannst mir helfen.