Opened 17 years ago

Closed 17 years ago

#2287 closed defect (fixed)

msDebug causes a crash with VS2005

Reported by: tamas Owned by: tamas
Priority: high Milestone: 5.0 release
Component: MapServer C Library Version: 5.0
Severity: normal Keywords:
Cc: dmorissette

Description

It seem VS2005 uses _int64 as time_t by default. In this case ctime() cause a crash when setting up the debug environment. eg MS_ERRORFILE=stderr.

More information:

In mapserver we consider time_t is 32 bit in size and we pass long* to ctime which expects _int64* there. For fixing the problem we might want to pass a time_t* to the function or use _USE_32BIT_TIME_T for falling back to the 32 version of ctime.

Change History (1)

comment:1 by tamas, 17 years ago

Resolution: fixed
Status: newclosed

It seems that _USE_32BIT_TIME_T doesn't work on _WIN64 so eventually the 'pass a time_t* to the ctime function' approach was used.

Committed in the SVN trunk r6768

Closing the bug

Note: See TracTickets for help on using tickets.