Hi, there is the following code in fgjs.cxx line 112:
fstream *xfs = new fstream[ jss->getNumJoysticks() ]; and in line 121 xfs[ jss->getCurrentJoystickId() ].open(filename, ios::out); In my case jss->getNumJoysticks() returns 1 and jss->getCurrentJoystickId() returns 2. This leads to a segfault. This might be uncommon but obvious it can happen. I hardcorded both to 7 but there shoud be a better way to handle this. The same one line later: SGPropertyNode_ptr *jstree = new SGPropertyNode_ptr[ jss->getNumJoysticks()]; I am using FlightGear-1.9.1 with FreeBSD 7.2. js_demo returns the following output: Joystick test program. ~~~~~~~~~~~~~~~~~~~~~~ Joystick 0 not detected Joystick 1 not detected Joystick 2: "Logitech Logitech Extreme 3D" Joystick 3 not detected Joystick 4 not detected Joystick 5 not detected Joystick 6 not detected Joystick 7 not detected If you have further questions please contact me directly via i...@martinlaabs.de since I am not subscribed to that mailing list. Greetings, Martin Laabs ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel