After the castle siege event, the server crash.
If anyone has this problem, here the fix:
if(bSetRemainMsec != FALSE)
{
time_t ttSTime; // old code = long ttSTime
time_t ttETime; // old code = long ttETime
tm tmETime;
double dResultSecond;
memset(&tmETime,0x00,sizeof(tmETime))...