VS2010 upgrade Neuz Crash
I've upgraded my Source to VS2010 and all Server run fine, but the neuz crashes when start the debug shows mee findf64.c _loctotime64 and in the stack is f.e. dayofweek 59054...
Ich habe nicht winnt.h oder sonstige microsoft dateien geandert.
Code:
__time64_t __cdecl __time64_t_from_ft(FILETIME * pft)
{
SYSTEMTIME st;
FILETIME lft;
/* 0 FILETIME returns a -1 time_t */
if (!pft->dwLowDateTime && !pft->dwHighDateTime) {
return ((__time64_t)-1);
}
/*
* Convert to a broken down local time value
*/
if ( !FileTimeToLocalFileTime(pft, &lft) ||
!FileTimeToSystemTime(&lft, &st) )
{
return ((__time64_t)-1);
}
return ( __loctotime64_t(st.wYear,
st.wMonth,
st.wDay,
st.wHour,
st.wMinute,
st.wSecond,
0) ); // <------ Crash
}
seems that it crash when read resource
Re: VS2010 upgrade Neuz Crash
Re: VS2010 upgrade Neuz Crash
Quote:
Originally Posted by
caja
_use_32bit_time_t
havn't worked..
now i get the same just from 32bit time
Code:
__time32_t __cdecl __timet_from_ft(FILETIME * pft)
{
SYSTEMTIME st;
FILETIME lft;
/* 0 FILETIME returns a -1 time_t */
if (!pft->dwLowDateTime && !pft->dwHighDateTime) {
return (-1L);
}
/*
* Convert to a broken down local time value
*/
if ( !FileTimeToLocalFileTime(pft, &lft) ||
!FileTimeToSystemTime(&lft, &st) )
{
return (-1L);
}
return ( __loctotime32_t(st.wYear,
st.wMonth,
st.wDay,
st.wHour,
st.wMinute,
st.wSecond,
0) );<-----crash
}
Re: VS2010 upgrade Neuz Crash
It worked for me...
Did you add this in the pre-processor? And use capitals _USE_32BIT_TIME_T