[SDL] Not really SDL related. C++ problem.
Stephen Anthony
sa666666 at gmail.com
Thu Mar 8 13:42:09 PST 2007
On March 8, 2007 04:58:44 pm Chris Rajula wrote:
> Hello there. I can compile my program, but when I run it, it crashes
> at a specific point it the program with this error:
> terminate called after throwing an instance of 'std::out_of_range'
> what(): basic_string::substr
> Aborted
I don't know which specific line of code is causing this, but I've
generally seen it when one attempts to store return values from some
C++ string methods. The appropriate return type is 'size_type', but I
see you're attempting to store in 'char' and 'unsigned int', both of
which might be too small.
Steve
More information about the SDL
mailing list