[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[XForms] problem setting value of slider
From: |
jos |
Subject: |
[XForms] problem setting value of slider |
Date: |
Wed, 21 May 2014 23:00:33 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 |
Hi,
I'm working on a program which has a few sliders.
While setting min and max values of one of them, it crashes.
In gdb this is (part of) the backtrace I see:
Program received signal SIGSEGV, Segmentation fault.
fl_set_input (obj=0x0, str=0x8174518 "0") at input.c:1856
1856 FLI_INPUT_SPEC *sp = obj->spec;
(gdb) bt
#0 fl_set_input (obj=0x0, str=0x8174518 "0") at input.c:1856
#1 0xb7eb58ea in fl_set_input_f (obj=0x0, fmt=<optimized out>) at
input.c:1928
#2 0xb7ed3647 in fl_set_spinner_value (obj=0x81670f8,
val=219.98316955566406) at spinner.c:452
If I understand this correctly there is a spinner object 0x81670f8 (line
#2)
which is going to be set with a value 219.9831...
The call to fl_set_input however shows obj=0x0 (line #1)
which looks to me like it has no object / the object is Null.
Am I interpreting this correctly and if so, is this
happening inside the library (in input.c) or might this be
caused by some error in my code?
Best regards,
Jos