LinuxMCE Forums
May 25, 2013, 12:22:00 pm GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
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
 
   Home   Help Search Chat Login Register  
Pages: [1]
  Print  
Author Topic: help with building the windows orbiter from source  (Read 998 times)
gadget
Veteran
***
Posts: 136


View Profile
« on: May 13, 2010, 02: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:
//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
Logged
tschak909
LinuxMCE God
****
Posts: 5101

DOES work for LinuxMCE.


View Profile
« Reply #1 on: May 13, 2010, 06:42:31 pm »

have you tried tracing it in the debugger?

-Thom
Logged
gadget
Veteran
***
Posts: 136


View Profile
« Reply #2 on: May 17, 2010, 01:07:53 pm »

Hi Thom,

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

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?
Logged
tschak909
LinuxMCE God
****
Posts: 5101

DOES work for LinuxMCE.


View Profile
« Reply #3 on: May 17, 2010, 03:16:31 pm »

dude, you're on your own here..

-Thom
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!