我试图将一个动态的结构数组的内容复制到另一个动态的结构数组中,但是我得到了一个错误,“无效的数组分配”,并且希望有人能给我指明正确的方向。这是我的结构:{ int idNum; char location[C_STRING_SIZE];我的职能:
Agent *copyEncryptArray(Agent *agentArr, int numOfAgents)
具体异常信息如下:Attaching to process ID 7, please wait...Error attaching to process: sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the process: ptrace(PTRACE_ATTACH, ..) failed fo