I have been using two different libraries that were created by my colleagues. Now the problem is that there are a few new (cv::Mat) and reserve (in std::vector) commands in those libraries. I have tried compiling those libraries as dynamic as well as static libraries. There is always a seg fault happens when i push a new element in the vector or copy an image in cv::Mat. I fixed the cv::Mat's problem by specifying the right size of image in my constructor but with vector there is no way I can know.
Why are those libraries not being able to create new data in the heap ??
What am I missing. Is there a linking problem or problem in the way the libraries are compiled ??