Autor Beitrag
rokdd
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 329

Win XP
D6
BeitragVerfasst: Do 19.02.04 19:03 
Hallo,

als erstes deklariere ich meine tidmessage:
ausblenden Delphi-Quelltext
1:
  mess:tidmessage;					


das problem tritt aber erst im hauptprogramm auf:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
     try
        try
        if pop.Connected=false then pop.Connect
        else begin ShowMessage('Es besteht schon eine Verbindung zum Server!');
        pop.Disconnect;
        pop.Connect;
        end;
        pop.KeepAlive;
        except
              Showmessage('Could not connect!');
              exit;
        end;
     finally
       Showmessage('Connected!');
      txt.clear;
      mess.clear;


Bei mess.clear kommt eine zugriffsverletzung und nach Debugger ist mess nil! Natürlich funzt kein anderer Zugriff auf mess! Könnt ihr mir helfen?

Rokdd


Zuletzt bearbeitet von rokdd am Do 19.02.04 19:50, insgesamt 1-mal bearbeitet
KidPaddle
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 351

WinXP,Linux
D7 Prof, XE7
BeitragVerfasst: Do 19.02.04 19:33 
Wo hast Du den TidMessage deklartiet? Als Komponente im Published - Abschnitt oder als Variable in Protected/Privat/Public? Wenn nicht als Komponente, dann hast Du vergessen TidMessage zu instanzieeren, d. h. mit mess := TidMessage.Create(Self) irgendwo das Objekt zu erstellen.

Gruß
KidPaddle
rokdd Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 329

Win XP
D6
BeitragVerfasst: Do 19.02.04 19:50 
Oh stimmt! :oops:

Naja gut danke für deine hilfe!

rokdd