S
silverburgh.meryl
I have the following piece of code, but it causes a segmentation fault.
I appreciate if someone can tell me why it crashes in bdl.end():
Line 55 of RectUtils.cpp:
void buildContainerRegion(vector<Rect*>& bdl) {
// thjis is line 55:
do_buildContainerRegion rtnValue = for_each (bdl.begin(),
bdl.end(), do_buildContainerRegion());
}
#0 0x014153e4 in __normal_iterator (this=0x4, __i=@0x4) at
stl_iterator.h:603
RectUtils.cpp:55
Thank you.
I appreciate if someone can tell me why it crashes in bdl.end():
Line 55 of RectUtils.cpp:
void buildContainerRegion(vector<Rect*>& bdl) {
// thjis is line 55:
do_buildContainerRegion rtnValue = for_each (bdl.begin(),
bdl.end(), do_buildContainerRegion());
}
#0 0x014153e4 in __normal_iterator (this=0x4, __i=@0x4) at
stl_iterator.h:603
#2 0x01447583 in buildContainerRegion (bdl=@0x0, r=@0xbff0e434) at#1 0x0144117a in std::vector said:::end (this=0x0) at stl_vector.h:352
RectUtils.cpp:55
Thank you.