View Single Post
  #10  
Old 05-19-2015, 09:36 PM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default

I honestly don't see what's causing the crash...


Code:
memcpy(npc_type, npc_type_to_copy, sizeof(NPCType));
should not be reached if 'npc_type_to_copy' is nullptr - which I verified a valid or nullptr reference should be returned.


And since
Code:
NPCType* npc_type = new NPCType;
memset(npc_type, 0, sizeof(NPCType));
don't appear to be causing issues, I don't see 'src' as being nullptr.


Since we're actually getting into the memcpy() routine, it doesn't look like server code at this point.

Unfortunately, that's an asm sub-routine and tracing code flow doesn't appear possible :(


I did find a few obscure references to memcpy and VS2013..but, nothing to validate the problems posted in the dump log...


(Still digging...)


EDIT: If you're building on 'debug', try switching to 'release' - also, make sure that you clean your solution before building again.
__________________
Uleat of Bertoxxulous

Compilin' Dirty

Last edited by Uleat; 05-19-2015 at 11:05 PM..
Reply With Quote