Autor Beitrag
FlameDiver
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 104

WIN XP
D6 Pers
BeitragVerfasst: Di 11.10.05 22:21 
Guten Abend,
Ich schreibe mir grade ne eigene klasse, nix großes.
nun haben ich ienen constructor aber sobald ich den aufrufe kommt einen Zugriffeverletzung. ich weiß aber ned warum.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
constructor TFormelParser.Create;
begin
  inherited Create;
end;


könnte ihr mir helfen? danke schonmal!

Moderiert von user profile iconGausi: Code- durch Delphi-Tags ersetzt

_________________
From Hell and back again
Grishnak
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 221

Windows XP Home
Delphi 7 PE, Delphi 2005 PE
BeitragVerfasst: Di 11.10.05 23:52 
Zeig doch auch mal die Stelle, wo das Objekt per Create erstellt wird.

_________________
Mach' etwas idiotensicher und irgendjemand erfindet einen besseren Idioten!
Kroko
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1284

W98 W2k WXP
Turbo D
BeitragVerfasst: Mi 12.10.05 07:45 
:dunce: Glaskugel kaputt

wie ist TFormelParser erklärt :?:

_________________
Die F1-Taste steht nicht unter Naturschutz und darf somit regelmäßig und oft benutzt werden! oder Wer lesen kann, ist klar im Vorteil!
retnyg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2754

SNES, GB, GBA, CPC, A500, 486/66, P4/3.0HT: NintendOS, AmigaOS, DoS
Delphi 5, Delphi 7
BeitragVerfasst: Mi 12.10.05 07:51 
user profile iconFlameDiver hat folgendes geschrieben:
ausblenden Quelltext
1:
2:
3:
4:
constructor TFormelParser.Create;
begin
  inherited Create;
end;


wie wärs mit constructor TFormelParser.Create(AOwner: TComponent);

_________________
es gibt leute, die sind genetisch nicht zum programmieren geschaffen.
in der regel haben diese leute die regel...
FlameDiver Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 104

WIN XP
D6 Pers
BeitragVerfasst: Mi 12.10.05 12:01 
user profile iconGrishnak hat folgendes geschrieben:
Zeig doch auch mal die Stelle, wo das Objekt per Create erstellt wird.

ok
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
var
  Form1: TForm1;
  Parser: TFormelParser;
(...)
procedure TForm1.FormCreate(Sender: TObject);
begin
  ausgabe.Caption := 'Ausgabe';
  try
    Parser.Create(Form1); // das form1 ist neu. geht aber trozdem ned oder was muss ich als TComponent da eintragen???
  except
    Application.MessageBox('Fehler bein Erstellen des Formelinterpreters!','Fehler!',64);
  end;
end;


Moderiert von user profile iconGausi: Code- durch Delphi-Tags ersetzt

_________________
From Hell and back again
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mi 12.10.05 12:20 
Es ist zwar immer noch nicht klar, was TFormelParser ist, und was in dessen Create evtl. passiert, aber probier einfach mal
ausblenden Delphi-Quelltext
1:
Parser := TFormelParser.Create(Form1);					
anstelle von
ausblenden Delphi-Quelltext
1:
Parser.Create(Form1);					

_________________
We are, we were and will not be.
FlameDiver Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 104

WIN XP
D6 Pers
BeitragVerfasst: Mi 12.10.05 12:24 
ah danke mit Parser := TFormelParser.Create(Form1); gehts.

_________________
From Hell and back again