Autor Beitrag
kiwicht
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1021

Win 7, MacOS
Delphi x, VBA, PHP, ...
BeitragVerfasst: Do 12.05.05 13:12 
Salut :)

Und ja, ich hab bereits im FOrum gesucht, und bezüglich den Indys und dieser Fehlermeldung nix gefunden :)

ALso, die Fehlermeldung lautet wie folgt:
"Systemfehler: Code 1400 - Ungültiges Fensterhandle"

Und bei folgenden Procs bin ich der Meinung, dass die damit was zu tun haben:
1. Button OnClick
ausblenden Delphi-Quelltext
1:
2:
3:
4:
  tcpserver.Bindings.Clear;
  Binding := tcpServer.Bindings.Add;
  Binding.Port := 5001;
  TcpServer.Active := True;


2. Button OnClick
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
var
  s_db : String;
  s_port : String;
  s_fname : String;
  s_path : String;
  s_param : String;

begin
  s_fname := 'psexec.exe';
  s_path := 'y:\mysqlimporter\test\';
  s_param := '\\server -i -w y:\mysqlimporter\test\ -d y:\mysqlimporter\test\import.exe ';

        s_db := ' J:\test\test.dbf p_test Ja ';
        s_port := ' 5001';
    ShellExecute(
      f_main.handle, 'open',
      PChar(s_fname), PChar(s_param + s_db + f_main.getIPs[0] + s_port), PChar(s_path),
      SW_SHOW);
end;


3. Button OnClick
ausblenden Delphi-Quelltext
1:
    TcpServer.Active := False;					


Die BUtton klicke ich in ihrer Reiehnfolge, und hier das Ereigniss "ONExecute" von meinem TCPServer:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
  s := AThread.Connection.ReadLn;
  Client := Pointer(AThread.Data);

  if s = 'BEGIN' then
    Progress.Visible := True
  else if s = 'EOF' then
    Progress.Visible := False
  else if StrToInt(s) > Progress.Max then
    Progress.Max := StrToInt(s)
  else
    Progress.Position := StrToInt(s);


Wenn ich dann das Programm schliesse, erhalte ich die o.g. Fehlermeldung.

Hat jemand ne Idee? Ich kämpfe jetzt schon über 4 Tage damit, und seh einfach keine Sonne ^^


Danke euch!

ki

Moderiert von user profile iconraziel: Delphi-Tags repariert.