Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用大小为 200K 的 memcpy,但它卡住了!!!
destb 和 source 都已分配。
这个问题的原因可能是什么?
尝试使用一些跟踪内存访问的工具。Valgrind 是我最喜欢的一个。
如果您不能这样做,至少尝试将源和目标指针值打印到控制台,并确保它们实际上已分配、不重叠且大小正确。