A
Andy
Hi,
I'm doing a nested pass by reference of a vector. I'm in Vis Studio 2003.
Example:
vector <unsigned long long> vect;
func1(vect);
where func1 calls func2(vect);
which calls ONLY "vect.push_back(0);"
where func1 is defined as func1(vector <unsigned long long> & vect)
and func2 is defined as func2(vector <unsigned long long> & vect).
The first two times I call func2(vect), it works fine, and on the third
time, I get an exception right on the push_back( ) call, but only when I'm
in Debug mode. Else, it works fine.
The exception is: "Unhandled exception: User breakpoint."
I can keep stepping through, and it keeps going. I get another exception of
the same type right after the last call of a function returning void. I have
breakpoints in both these spots. I can step through to the end, and the
results are fine.
Why is it throwing exceptions? What's this mean?
Thanks,
Andy
I'm doing a nested pass by reference of a vector. I'm in Vis Studio 2003.
Example:
vector <unsigned long long> vect;
func1(vect);
where func1 calls func2(vect);
which calls ONLY "vect.push_back(0);"
where func1 is defined as func1(vector <unsigned long long> & vect)
and func2 is defined as func2(vector <unsigned long long> & vect).
The first two times I call func2(vect), it works fine, and on the third
time, I get an exception right on the push_back( ) call, but only when I'm
in Debug mode. Else, it works fine.
The exception is: "Unhandled exception: User breakpoint."
I can keep stepping through, and it keeps going. I get another exception of
the same type right after the last call of a function returning void. I have
breakpoints in both these spots. I can step through to the end, and the
results are fine.
Why is it throwing exceptions? What's this mean?
Thanks,
Andy