Debug error, I don't have a clue what it means...

This is the error I get when I try to run a program of mine:

In __cxa_throw () ()


the application (.exe) just stops and the debugger spits this out... I don't know what it means, and when I do a google, all I get is "catch/Throw" stuff that has nothing to do with this error. What does this mean?

I have just started using header files, so I'll post some of the code. Also, when I click on the "Next Instruction" in the CB window, it gives me this:

Project title : ProjectName
Project path : C:\Users\username\Desktop\C++\ProgramImWriting\ProgramProjectFolder\

Frame function: __cxa_throw
Frame address : 0022F9B0
--------------------------------------------------------------------------------
00405CB8 push %ebp
00405CB9 mov %esp,%ebp
00405CBB push %ebx
00405CBC sub $0x14,%esp
00405CBF mov 0x8(%ebp),%ebx
00405CC2 lea -0x60(%ebx),%eax
00405CC5 movl $0x1,-0x60(%ebx)
00405CCC mov 0xc(%ebp),%edx
00405CCF mov %edx,0x10(%eax)
00405CD2 mov 0x10(%ebp),%edx
00405CD5 mov %edx,0x14(%eax)
00405CD8 mov 0x47c068,%edx
00405CDE mov (%edx),%edx
00405CE0 mov %edx,0x18(%eax)
00405CE3 mov 0x47c064,%edx
00405CE9 mov (%edx),%edx
00405CEB mov %edx,0x1c(%eax)
00405CEE movl $0x432b2b00,0x40(%eax)
00405CF5 movl $0x474e5543,0x44(%eax)
00405CFC movl $0x405d1c,0x48(%eax)
00405D03 sub $0x20,%ebx
00405D06 mov %ebx,(%esp)
00405D09 call 0x414ecc <_Unwind_SjLj_RaiseException>
00405D0E mov %ebx,(%esp)
00405D11 call 0x405b80 <__cxa_begin_catch>
00405D16 call 0x40b3c4 <std::terminate()>
00405D1B nop


I can't decipher this and I doubt it is "google-able", so I'm asking you guys.

If you need to see some of the code, just ask and I will post the lines where the errors occur, but I would like a good reason before doing so. Thank you for your time and I appreciate your help.

Any other "debugging" information you need will be posted on request provided a short explanation of why you need it.
I've never seen this particular error before. Or at least I don't recall seeing it.

To diagnose I'd need to see code. Hard to say what you're doing wrong when I don't know what you're doing or how you're doing it.
What part do you request:
- File handleing (includes a vector which may have something to do with this)*
- int main()
- header file (includes functions, because I'm quite new to header files)
- the chkfl() function (also includes a vector)*

*vectors have been removed from the file handling functions and the program is working properly now. I presume there was somthing wrong with the way the program was executing the vector. it went somthing like this:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
vector<string> file_lines;
string txt;
int x = 0;
ifstream file;
file.open("a_file.dat", ios::in);
file_lines.push_back(" ")  //initializes file_lines[0] so we can start at 1 (for easier reading)
while(!file.eof())
{
    x++; //counts the number of lines the vector contains
    getline(file, txt);
    file_lines.push_back(txt);
}
//we have filled the vector with the lines of the file
file.close();
//now, we want to check the first 3 lines to confirm that there is anything in the file
for (int y = 1; y <= x; y++)
{
    while(y <= 3)
    {
        if(file_lines[y] == "");
        return 1;  //return 1 if there is nothing in the file, indicateing that we should either delete it or fill it
    }
}
return 0;


this should get the lines of a file into a vector while counting the lines, then it will recognize if there is somthing in the file, or if it isnt.
Topic archived. No new replies allowed.