- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
yesterday I got this exception while working with a concurrent vector and some std::vectors inside a task:
terminate called after throwing an instance of 'tbb::captured_exception'
what(): vector::_M_range_check
My question is: was the exception raised because I tried to access a position out of bounds in the concurrent vector, or could it be throw by the std::vector too but it was captured by the task scheduler?
Thanks.
yesterday I got this exception while working with a concurrent vector and some std::vectors inside a task:
terminate called after throwing an instance of 'tbb::captured_exception'
what(): vector::_M_range_check
My question is: was the exception raised because I tried to access a position out of bounds in the concurrent vector, or could it be throw by the std::vector too but it was captured by the task scheduler?
Thanks.
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting morle
...
My question is: was the exception raised because I tried to access a position out of bounds in the concurrent vector,
[SergeyK] That is possible. Would you be able to provide a Test-Case?
or could it be throw by the std::vector too but it was captured by the task scheduler?
...
what(): vector::_M_range_check
...
[SergeyK]Ithink Yes. STL vector exception messages have a'vector::' part. Check
these STLheaders:
stl_vector.h
stl_bvector.h
stl_deque.h
for more technical details.
My question is: was the exception raised because I tried to access a position out of bounds in the concurrent vector,
[SergeyK] That is possible. Would you be able to provide a Test-Case?
or could it be throw by the std::vector too but it was captured by the task scheduler?
...
what(): vector::_M_range_check
...
[SergeyK]Ithink Yes. STL vector exception messages have a'vector::' part. Check
these STLheaders:
stl_vector.h
stl_bvector.h
stl_deque.h
for more technical details.
Best regards,
Sergey
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting morle
...
My question is: was the exception raised because I tried to access a position out of bounds in the concurrent vector,
[SergeyK] That is possible. Would you be able to provide a Test-Case?
or could it be throw by the std::vector too but it was captured by the task scheduler?
...
what(): vector::_M_range_check
...
[SergeyK]Ithink Yes. STL vector exception messages have a'vector::' part. Check
these STLheaders:
stl_vector.h
stl_bvector.h
stl_deque.h
for more technical details.
My question is: was the exception raised because I tried to access a position out of bounds in the concurrent vector,
[SergeyK] That is possible. Would you be able to provide a Test-Case?
or could it be throw by the std::vector too but it was captured by the task scheduler?
...
what(): vector::_M_range_check
...
[SergeyK]Ithink Yes. STL vector exception messages have a'vector::' part. Check
these STLheaders:
stl_vector.h
stl_bvector.h
stl_deque.h
for more technical details.
Best regards,
Sergey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Thanks a lot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks!!
It was a STL vector!
It was a STL vector!

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page