Autor Beitrag
Krefti
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 164

Win XP/Vista/Win7/ubuntu
Delphi 7/2006/2009 Pro
BeitragVerfasst: Fr 04.11.05 12:00 
Dann hab ich noch eine andere Frage... kennt sich jemand mit Zugriffsverletzungen aus??

Bekomm wenn ich auf meinen rechnen button klicke die Fehlermeldung:

Zugriffsverletzung bie Adresse 00451412 in Modul 'Project1.exe'.Lesen von Adresse 019760CC
chrisw
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 439
Erhaltene Danke: 3

W2K
D7
BeitragVerfasst: Fr 04.11.05 12:18 
Zeig doch mal den ganzen code ! Klingt nach Aufruf eines nicht initialisierten Objects .

_________________
Man sollte keine Dummheit zweimal begehen, die Auswahl ist schließlich groß genug.
Krefti Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 164

Win XP/Vista/Win7/ubuntu
Delphi 7/2006/2009 Pro
BeitragVerfasst: Fr 04.11.05 12:28 
Da die Frage schon beantwortet ist, hab ich den Code wieder rausgelöscht.. muss ja net jeder sehe*gggg*


Zuletzt bearbeitet von Krefti am Fr 04.11.05 12:52, insgesamt 1-mal bearbeitet
BattleFrog
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 53

WIN 2000
Delphi 7 Ent.
BeitragVerfasst: Fr 04.11.05 12:47 
Geh doch einfach mal mit den F8 und F7 Tasten per Einzelschritt durch, dann siehst du in welcher Zeile der Fehler auftritt.


Zuletzt bearbeitet von BattleFrog am Fr 04.11.05 12:49, insgesamt 1-mal bearbeitet
chrisw
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 439
Erhaltene Danke: 3

W2K
D7
BeitragVerfasst: Fr 04.11.05 12:47 
in Zeile 466 steht
ausblenden Delphi-Quelltext
1:
If not StrToExtended(TarrMaxEdit[i].Text,maximalerschwingungswert					


i ist zu diesem Zeitpunkt noch nicht initialisiert !!


soll wohl heissen If not StrToExtended(TarrMaxEdit[0].Text,maximalerschwingungswert


Übrigens ein interessanter Programmierstil

_________________
Man sollte keine Dummheit zweimal begehen, die Auswahl ist schließlich groß genug.
Krefti Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 164

Win XP/Vista/Win7/ubuntu
Delphi 7/2006/2009 Pro
BeitragVerfasst: Fr 04.11.05 12:51 
ChrisW hast recht des war der Fehler. hab jetzt ne for-schleife ausenrumgmacht, damit jetzt alle TEdits abgfragt werden!
DANKE!!!

Was is an meinem Programmierstil so interessant?? :D
chrisw
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 439
Erhaltene Danke: 3

W2K
D7
BeitragVerfasst: Fr 04.11.05 12:55 
na z.Bsp benutzt du (wenn ich mich recht erinnere) 10 for schleifen bei der function NeuClick jeweils mit den parametern for i:= 0 to MaxMaschinen -1 do begin.....



Warum ??


Hatte noch mehr Beispiele, aber der code ist ja nicht mehr da !!


CU

Chris

_________________
Man sollte keine Dummheit zweimal begehen, die Auswahl ist schließlich groß genug.
Krefti Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 164

Win XP/Vista/Win7/ubuntu
Delphi 7/2006/2009 Pro
BeitragVerfasst: Fr 04.11.05 13:00 
naja, hatte ja au 10 arrays mit edits, die beim anklicken vom button neu geleert werden müssen, wüsst net wie des sonst gehen sollte*ggg* der code is weg, weil des was von der arbeit ist*gggg*
chrisw
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 439
Erhaltene Danke: 3

W2K
D7
BeitragVerfasst: Fr 04.11.05 13:07 
wie wärs mit
ausblenden Delphi-Quelltext
1:
2:
3:
4:
for i := 0 to ....
begin
//  alle 10 arrays löschen
end;

_________________
Man sollte keine Dummheit zweimal begehen, die Auswahl ist schließlich groß genug.
Krefti Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 164

Win XP/Vista/Win7/ubuntu
Delphi 7/2006/2009 Pro
BeitragVerfasst: Fr 04.11.05 13:12 
oh stimmt shit...! hab ich gar net dran gedacht... bin als bissle verpeilt*ggg*