string clear()

hi there,
today i learn a new simple code:
str.clear();

but when i execute the program i get error:
out_of_range at memory location 0x002afad0..

what happened?
You have to post your code.
Topic archived. No new replies allowed.