Error Allocating Data

Hi All,

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 ??

Awaiting !

Sincerely,
navderm
Last edited on
Why are those libraries not being able to create new data in the heap ??
I don't know. Run it in the debugger ans look at the call stack when it crashes.

What am I missing. Is there a linking problem or problem in the way the libraries are compiled ??
It sounds like the contained object isn't being copied properly. It's not your fault (I think).
navderm wrote:
Awaiting !

Sincerely,
navderm


Whay are you waiting for us to answer you - why don't you ask your colleagues??
Topic archived. No new replies allowed.