Author Topic: help with building the windows orbiter from source  (Read 4715 times)

gadget

  • Veteran
  • ***
  • Posts: 136
    • View Profile
help with building the windows orbiter from source
« on: May 13, 2010, 03:06:33 pm »
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.

Code: [Select]
//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

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: help with building the windows orbiter from source
« Reply #1 on: May 13, 2010, 07:42:31 pm »
have you tried tracing it in the debugger?

-Thom

gadget

  • Veteran
  • ***
  • Posts: 136
    • View Profile
Re: help with building the windows orbiter from source
« Reply #2 on: May 17, 2010, 02:07:53 pm »
Hi Thom,

The offending lines of code from Logger.cpp are
Code: [Select]

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

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: help with building the windows orbiter from source
« Reply #3 on: May 17, 2010, 04:16:31 pm »
dude, you're on your own here..

-Thom