stoi makes abort has been called error

Hi. I can't understand debug errors so. I wrote a beep sounds loader from file. I don't want use mp3 or wavs beacuse they have big file sizes. I tried to create load beeps from file.
But my code is not works.
says abort(); has been called i dont know what is abort.
So i start to look into web but i can't find any helpful resource even a stackoverflow answer.
So i come here.

sorry about variable names they are turkish you can use google translate.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  void Bip(const char * dosya_konumi, string muzik_kaydi)
{

	int muzik_kaydiint = stoi(muzik_kaydi);

	ifstream muzikdosya(dosya_konumi);
	if (muzikdosya.is_open())
	{
		while (getline(muzikdosya, muzik_kaydi))
		{
			muzikdosya >> muzik_kaydi;
			
			Beep(muzik_kaydiint, 100);

		}
		muzikdosya.close();
	}

}





My bip.txt file was including:
128
247

i just randomized frequences they are for just testing

Last edited on
i fixed it by changin position of int muzik_kaydiint = stoi(muzik_kaydi);
Topic archived. No new replies allowed.