Autor Beitrag
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mi 03.12.03 19:14 
Hallo !!!

Ich bekomme immer folgende Fehlermeldung:
Ein ausgehender Aufruf kann nciht ausgeführt werden,da die Anwendung einen Eingabe-syncronisierten Aufruf weiterleitet.
Kann mire jemand sagen was die Fehlermeldung zu bedeuten hat ?

Der Code dier sie auslößt sieht wie folgt aus:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
var outmessage:string;

...

procedure TForm1.IdHTTPServer1CommandGet(AThread: TIdPeerThread;
  ARequestInfo: TIdHTTPRequestInfo; AResponseInfo: TIdHTTPResponseInfo);
begin

     if Arequestinfo.Params.values ['action'] = 'msg' then begin
        outmessage := Arequestinfo.Params.values ['msg'];
        aresponseinfo.ContentText := 'Meldung ausgegeben';
        Aresponseinfo.WriteContent;
        AThread.Connection.Disconnect;
        athread.synchronize(threatsave_showmessage);
     end;
...
end;


procedure TForm1.threatsave_showmessage;
begin
     outmessage := Stringreplace ( outmessage , '<br>' , #13 , [rfReplaceAll]);;
     if outmessage <> '' then
        application.MessageBox (PChaR(outmessage),'',MB_SYSTEMMODAL);
        outmessage := '';
end;

_________________
In the beginning was the word.
And the word was content-type: text/plain.