unexpected behaviour?
- From: Remco van de Meent <remco dnd utwente nl>
- To: gtk-list gnome org
- Subject: unexpected behaviour?
- Date: Fri, 14 Jul 2000 18:22:36 +0200
Hi,
If I output this in GDB:
(gdb) print *(struct _GtkEntry *)list->data
$12 = {editable = {widget = {object = {klass = 0x8088350, flags = 69576,
ref_count = 1, object_data = 0x809c3f8}, private_flags = 0,
state = 0 '\000', saved_state = 0 '\000', name = 0x0, style = 0x80899e8,
requisition = {width = 158, height = 20}, allocation = {x = 186, y = 24,
width = 268, height = 20}, window = 0x80bc6d0, parent = 0x80b4810},
current_pos = 9, selection_start_pos = 0, selection_end_pos = 0,
has_selection = 0, editable = 1, visible = 1, ic = 0x80bc288,
ic_attr = 0x80bc740, clipboard_text = 0x0}, text_area = 0x80bc708,
backing_pixmap = 0x80bd4f0, cursor = 0x80bc278, text = 0x80b4b88,
text_size = 128, text_length = 52, text_max_length = 0, scroll_offset = 4,
visible = 1, timer = 0, button = 0, char_offset = 0x80b4d90,
text_mb = 0x80bea28 "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
text_mb_dirty = 0, use_wchar = 0}
where list is a GList * and list->data pointing to a
struct _GtkEntry *
why is gtk_entry_get_text() failing in this case:
(gdb) print gtk_entry_get_text((struct _GtkEntry *)list->data)
$13 = (gchar *) 0xb315 <Address 0xb315 out of bounds>
The program is segfaulting at this point in time (at this call:
gtk_entry_get_text(GTK_ENTRY(list->data)) ).
Am I missing something, or did I hit some unexpected behaviour?
Thanks,
Remco.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]