Autor Beitrag
kuhlthomas
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 35



BeitragVerfasst: Di 19.08.03 22:19 
hallo

beim compilieren von einem project das opengl nuzt bekomme ich keine richtige fehlermeldung vom compiler sondern eine Debugger Exception Notification poppt auf. woran kann das liegen?
Aya
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: Di 19.08.03 23:04 
Hi,

ne AccessViolation kann wahnsinnig viele gründe haben... deswegen wird dir hier auch niemand wirklich sagen können was du falsch machst ;)

Am besten du setzt mal ein paar Haltepunkte in deinem Code an der stelle wo der Fehler auftritt und gehst dann zeile für zeile durch um zu schauen wo genau der Fehler kommt.

Au'revoir,
Aya~

_________________
Aya
I aim for my endless dreams and I know they will come true!
kuhlthomas Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 35



BeitragVerfasst: Mi 20.08.03 20:09 
der compiler stoppt immer da wo einen array werte zugewiesen werden
Aya
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: Mi 20.08.03 20:12 
Hi,

dann wirst du wohl auf ein Feld des Arrays zugreifen welches es nicht gibt... (Btw... dynamische Arrays fangen bei Delphi bei 0 an, nicht bei 1!)

Au'revoir,
Aya~

_________________
Aya
I aim for my endless dreams and I know they will come true!
derDoc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 623

Win Vista Prof
D2007 Prof
BeitragVerfasst: Mi 20.08.03 20:13 
Ist das Array dynamisch?
Wenn ja kann es sein, dass die Länge nicht stimmt.

Der Quelltext für das Array und diese Stelle könnte bei der Lösung sehr hilfreich sein.

_________________
MfG derDoc
There are only 10 types of people: those who understand binary and those who don't.
kuhlthomas Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 35



BeitragVerfasst: Mi 20.08.03 22:40 
das array umfasst 1296x3 stellen und wurde so deklariert A :Array of Array of Integer (ist das dynamisch?) wenn ich nicht alle stellen des arrays belege bekomme ich keine fehlermeldung
Aya
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: Mi 20.08.03 22:54 
Hi,

wie gesagt... wenn dein Array 1296 Felder hat, ist das erste Feld 0 und das letzte 1295. Ich denke mal da liegt dein Fehler (weil du versuchst auf Feld Nr. 1296 zuzugreifen, welches aber nicht existiert)

Au'revoir,
Aya~

_________________
Aya
I aim for my endless dreams and I know they will come true!
G-McKree
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 178



BeitragVerfasst: Sa 23.08.03 16:44 
ausblenden Quelltext
1:
A :Array of Array of Integer					

is dynamisch sonst wäre es ja
ausblenden Quelltext
1:
A :Array[0..1295] of Array[0..3] of Integer					

hast du vieleicht ''setlength()'' vergessen?
DaRkFiRe
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 526

WinXP Home & Professional
C, C++, Delphi
BeitragVerfasst: So 24.08.03 16:20 
Eine EAccessViolation tritt immer dann auf, wenn ein Programm seinen zugewiesenen Speicherbereich "überspringt." Wenn es in einen Speicherbereich lesen oder schreiben will, der nicht dem Programm zugewiesen wurde - demnach nicht "gehört" - tritt diese Vio auf.

_________________
Lang ist der Weg durch Lehren - kurz und wirksam durch Beispiele! Seneca