Autor Beitrag
Dolphi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 18



BeitragVerfasst: So 01.02.04 19:57 
Was ist hier falsch:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
type
  TCheckpoint = class(TObject)
  public
    ExceptionCount : integer;
    procedure InitCheckPoint();
  end;

var
  CP : TCheckpoint;

implementation

procedure TCheckpoint.InitCheckpoint();
var
  i : integer;
begin
  ExceptionCount := 0; <span style="font-weight: bold">// << FEHLERMELDUNG: EAccessViolation ... schreiben von Adresse 14</span>
end;

end.
Raphael O.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1596


VS 2013
BeitragVerfasst: So 01.02.04 20:07 
erstellst du irgendwo CP?? :
ausblenden Delphi-Quelltext
1:
CP:=TCheckpoint.create;					
Dolphi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 18



BeitragVerfasst: So 01.02.04 20:17 
Hallo,
das ist so ziemlich das erste mal, dass ich eine eigene Klasse brauche. Ich dachte das hier reicht aus:
ausblenden Delphi-Quelltext
1:
2:
var 
  CP : TCheckpoint;

Dann mach ich das wohl am besten unten bei initialization

Danke.
Raphael O.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1596


VS 2013
BeitragVerfasst: So 01.02.04 20:24 
oder im oncreate ereignis...
jedenfalls bevor du auf ein ereignis oder eine Variable der Klasse zugreifst...
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: So 01.02.04 21:43 
Eijaijai. Kuck mal hier: www.luckie-online.de/files/beta-area/ Ist zwar noch nicht fertig und in der Version sind noch ein paar peinliche Tippfehler, aber für dich sollte es erstmal reichen.
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Mo 02.02.04 13:00 
Alternativ gibts von mir auch noch eine Ausarbeitung über OOP: www.x-spy.net/personal bzw falls die Domain nicht geht probier mal die Subdomain motzi.fs-tools.de/personal

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!