I have finally managed to get a development environment up using VS2010 and have successfully built the windows Orbiter in the base Orbiter folder and Win32_Pocketfrog version.
Both of them start the orbiter but generate an exception in main.cpp at the same point.
//It's safe now to use the logger
LoggerWrapper::GetInstance()->Write(LV_STATUS, "Device: %d starting. Connecting to: %s",CmdLineParams.PK_Device,
CmdLineParams.sRouter_IP.c_str());
I am new to c++ so some pointers at where to look would be appreciated.
gadget
have you tried tracing it in the debugger?
-Thom
Hi Thom,
The offending lines of code from Logger.cpp are
void WinOrbiterLogger::WriteEntry( Entry& entry )
{
PLUTO_SAFETY_LOCK_LOGGER( sSM, m_Lock ); // Don't log anything but failures
struct tm *t = localtime((time_t *)&entry.m_TimeStamp.tv_sec);
char acBuff[50];
double dwSec = (double)(entry.m_TimeStamp.tv_usec/1E6) + t->tm_sec;
An access violation is thrown at "double dwSec" but the struct tm *t has errors which seems to be defined in CommonIncludes.h.
where to next please?
dude, you're on your own here..
-Thom