Submitted by Anonymous (not verified) on Fri, 06/15/2012 - 12:07
I'm using RHEL4.0 on an x86_64 box.
Following code when given to uil, causes uil to dump core (SIGSEGV). Its a sample pulled out of a bigger uil code base. Could someone help with what exactly is wrong or if its a genuine UIL bug and/or if a fix to this is available.
The behavior is the same when tried on a RHEL3.0 x86 box.
Any info on this would help.
Thanx,
Rohit
module printwgt
version = 'V3.0'
names = case_sensitive
objects =
{
XmSeparator=gadget;
XmToggleButton=gadget;
XmLabel=gadget;
}
value
default_label : compound_string("Default");
vms_output_tray_UI_table: exported compound_string_table
(
default_label
);
vms_output_tray_OS_table: exported compound_string_table
(
compound_string("LCOS")
);
ultrix_output_tray_UI_table: exported compound_string_table
(
default_label
);
end module;
‹ callbacks in uil... XmList and wchar_t ›
Thu, 10/13/2005 - 03:09#1
UIL dumps core for unknown reason
According to the UIL documentation, the strings in a COMPOUND_STRING_TABLE must be simple strings which the function will convert to compound strings. Change your code as follows and it will compile:
value
default_label : "Default";
vms_output_tray_UI_table: exported compound_string_table
(
default_label
);
vms_output_tray_OS_table: exported compound_string_table
(
"LCOS"
);
ultrix_output_tray_UI_table: exported compound_string_table
(
default_label
);