Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Hey leute,

habe nen echt doofe Problem, welches ich nicht verstehe :/

und zwar meint das Programm folgendes:

Unbehandelte Ausnahme bei 0x008d803b in TW-Projekt Vokabeltrainer.exe: 0xC0000005: Zugriffsverletzung beim Schreiben an Position 0x01e35000.

und zwar wird sich auf folgende Zeile bezogen:

Zeileninhalt[k] = j;
while(1)

		{

			if((counter + ((windowsize("X") * X10/X01) - (windowsize("X") *X20/X02) + 2) *(-1)) <= strlen(Text))

			{

				for(int j = strlen(Text) - Zeilenedit * ((windowsize("X") * X10/X01) - (windowsize("X") *X20/X02) + 2) *(-1) - Textstrlen - rest;;j--)

				{

					if(Text[j] == 32 || Text[j] == 44 || Text[j] == 46 || Text[j] == 33)

					{


						Zeileninhalt[k] = j;

						counter = j;

						counter2 = counter + 46;

						k++;

						break;

					}

					rest++;

				}		


			}

			else

			{

				Zeileninhalt[k] = strlen(Text) - counter;

			}

		}
Deklariert wird Zeileninhalt hier:
int* Zeileninhalt = NULL;

Zeileninhalt = new int [YE10-Y10+1];

es ist auch kein Problem vorher was in Zeileninhalt[k] zu schreiben und auch bei einer anderen version der Schleife hat es schon funktioniert, nur wieso geht es jetzt auf einmal nicht mehr??

Ich hoffe ihr könnt mir helfen, da es vorher ging und jetzt auf einmal nicht mehr :'(

Ich habe im Vergleich zu vorher nur den Aufbau der Schleife geändert...

MfG Artery

  • Autor

Jo daran lags :P

Hatte, einmal nen test gemacht, indem die Schleife ständig durchlief. Nur ich hatte davon irritieren lassen, das er meinte "Zugriffsverletzung" anstatt array overloaded oder so :/

:D

Tortzdem danke!

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.