View Single Post
  #2  
Old 08-04-2013, 10:21 PM
lerxst2112
Demi-God
 
Join Date: Aug 2010
Posts: 1,742
Default

Zone is shutting down and a string in NPCType is getting deleted in the NPCType destructor, but the memory it points to is bogus. I'd look for someone using memset on NPCType which is a no no since it's not a POD type. Anywhere you're tempted to use memset, use a default constructor instead, so much safer.

Did you compile for Debug specifically or RelWithDebInfo? Asserts and debug memory validation should be turned off in a release build which would keep the error message from popping up. It might still crash on shutdown, but it would do so silently and not wedge the server with a bunch of stuck processes.
Reply With Quote