Autor Beitrag
moddin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 75

WinXP Pro
Delphi 7 Enterprise ;-)
BeitragVerfasst: So 02.07.06 17:15 
wie kann bei so einem einfahc COde dauernd eine AcesssViolation kommen?!!! ? argh

ausblenden Delphi-Quelltext
1:
2:
3:
4:
for n:= 0 to ListView1.Items.Count do
  begin
    if ListView1.Items[n].Subitems[0] = 'Hallo' then Inc(n)
  end;


lol und das lustige ist ja 5 zeilen darunter steht der selbe code und dort funktioniert er

_________________
Willst du Körper an Körper pressen? Atem spüren? Gerüche wahrnehmen? Verschiedene Stellungen probieren? Rein und raus? Von hinten nach vorne? Ja? Dann nimm den Bus!
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: So 02.07.06 17:18 
Grenze wurde falsch gewählt
ausblenden Delphi-Quelltext
1:
2:
3:
4:
for n:= 0 to ListView1.Items.Count-1 do
  begin
    if ListView1.Items[n].Subitems[0] = 'Hallo' then Inc(n)
  end;

_________________
Markus Kinzler.
moddin Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 75

WinXP Pro
Delphi 7 Enterprise ;-)
BeitragVerfasst: So 02.07.06 19:18 
waaaaaaaaaaas danke!! :D :D :D :D

lol dafür hab ich 2 stunden gebraucht

_________________
Willst du Körper an Körper pressen? Atem spüren? Gerüche wahrnehmen? Verschiedene Stellungen probieren? Rein und raus? Von hinten nach vorne? Ja? Dann nimm den Bus!
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5285
Erhaltene Danke: 29

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: So 02.07.06 19:20 
ich sag nur Breakpoints und F7 :lol: