News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

help with building the windows orbiter from source

Started by gadget, May 13, 2010, 03:06:33 PM

Previous topic - Next topic

gadget

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

tschak909

have you tried tracing it in the debugger?

-Thom

gadget

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?

tschak909