开发者

memcpy seems to be stuck

I am trying to use a memcpy for a size of 200K, and it stucks!!开发者_如何学Go!

Both destb and source are allocated.

What could be the reason for this issue?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜