tags:

views:

106

answers:

1

I am trying to use a memcpy for a size of 200K, and it stucks!!!

Both destb and source are allocated.

What could be the reason for this issue?

A: 

Try using some tool that traces memory accesses. Valgrind is my favourite one.

If you're not able to do so, at least try printing out the source and dest pointer values to the console, and make sure they are in fact allocated, non-overlapping and of the right size.

qdot