Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Keyboard settings lost
12-06-2006, 07:56 PM,
#16
 
In file gui/wheel.h at line ~174

Code:
    void Wheel<wheel_t>::Save()
    {
        default_option = cur_option;
        if( saved )
->        settings.Set( setting, value_list[cur_option] );
    }

Problem is in "value_list[cur_option]" for -> parameter deadzone

With old option.config my trace is
Code:
[New Thread 1112157104 (LWP 7624)]
setting -joystick.type
current op -0
value_list cur_option -joystick
setting -joystick.deadzone
current op -0
value_list cur_option -off


With new option.config my trace is
Code:
[New Thread 1112021936 (LWP 7622)]
setting -joystick.type
current op -0
value_list cur_option -joystick
setting -joystick.deadzone
current op -0

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1087352800 (LWP 7619)]
0x402aea69 in std::operator<< <char, std::char_traits<char>, std::allocator<char> > () from /usr/lib/libstdc++.so.5

My code for trace.
Code:
        if( saved )
        {
cout << "setting -" << setting << "\n";
cout << "current op -" << cur_option  << "\n";
cout << "value_list cur_option -" << value_list[cur_option] << "\n";
            settings.Set( setting, value_list[cur_option] );
        }

Seems to be something wrong initialized.
Is it not possible that the method believe that still exist parameter
deadzone (old option-27) into option.config file?

pwp71

P.S. What are the file VDrift.pot and nl.po?
Reply


Messages In This Thread
Keyboard settings lost - by reece146 - 12-03-2006, 12:43 AM
[No subject] - by joevenzon_phpbb2_import3 - 12-03-2006, 12:39 PM
[No subject] - by alex25 - 12-03-2006, 03:39 PM
[No subject] - by reece146 - 12-04-2006, 10:17 AM
[No subject] - by pwp71 - 12-04-2006, 08:41 PM
[No subject] - by joevenzon_phpbb2_import3 - 12-04-2006, 10:31 PM
[No subject] - by alex25 - 12-04-2006, 11:47 PM
[No subject] - by joevenzon_phpbb2_import3 - 12-05-2006, 10:55 AM
[No subject] - by joevenzon_phpbb2_import3 - 12-05-2006, 11:06 AM
[No subject] - by alex25 - 12-05-2006, 12:14 PM
[No subject] - by pwp71 - 12-05-2006, 05:32 PM
[No subject] - by reece146 - 12-06-2006, 12:26 AM
[No subject] - by joevenzon_phpbb2_import3 - 12-06-2006, 11:03 AM
[No subject] - by reece146 - 12-06-2006, 11:39 AM
[No subject] - by pwp71 - 12-06-2006, 05:16 PM
[No subject] - by pwp71 - 12-06-2006, 07:56 PM
[No subject] - by pwp71 - 12-06-2006, 08:33 PM
[No subject] - by reece146 - 12-06-2006, 09:42 PM
[No subject] - by joevenzon_phpbb2_import3 - 12-07-2006, 10:23 PM
[No subject] - by ams76 - 12-09-2006, 02:48 AM
[No subject] - by joevenzon_phpbb2_import3 - 12-09-2006, 07:53 PM
[No subject] - by pwp71 - 12-11-2006, 06:27 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)