XForms: lose_focus?

Stephen Langer (langer@cam.nist.gov)
Wed, 4 Feb 1998 15:18:28 -0500

# To subscribers of the xforms list from "Stephen Langer" <langer@cam.nist.gov> :

Hi--

I just upgraded from XForms 0.81 to 0.88, and I'm seeing something very
strange. My program is invoking spurious callback routines. The debugger says
that they're being called by an internal XForms routine called lose_focus,
which is being called by fl_hide_object. The callback being called belongs
to the object being hidden.

Is it possible that this is a bug in XForms, or do I have other problems?
The code worked fine with 0.81. When upgrading I got the lists of changes
distributed with versions 0.86 and 0.88, so I'm pretty sure that I haven't
missed any API changes. Are there more API changes that I have to check?

Here's a slightly edited stack trace from dbx:

> 0 ::FDCB_color_max(flobjs_*,long)(<no name> = 0x102b1610, ptr = 271244616)
[ the spurious callback! ]

1 lose_focus(0x102b1610, 0x102add48, 0x0, 0x0, 0x0, 0x0, 0x102589b8, 0x0)
["/usr2/xx/xforms/FORMS/objects.c":1909, 0x101a4b34]

2 fl_hide_object(0x102b1610, 0x102add48, 0x0, 0x0, 0x0, 0x0, 0x102589b8,
0x0) ["/usr2/xx/xforms/FORMS/objects.c":890, 0x101a1fcc]

[ intervening routines omitted... ]

8 ::FDCB_set_current_drawer(flobjs_*,long)(<no name> = 0x102a3670, ptr =
271199016)
[ this callback is ok ]

9 fl_object_qread(0x102b1610, 0x102add48, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
["/usr2/xx/xforms/FORMS/events.c":176, 0x101bfc24]
10 fl_do_forms(0x102b1610, 0x102add48, 0x0, 0x0, 0x0, 0x0, 0x102589b8,
0x0) ["/usr2/xx/xforms/FORMS/forms.c":1989, 0x10194a38]
11 FormWaiter::order(Menu*)(this = 0x102687d8, menu = 0x1027d028)
["/hosts/lurch/vol0/home2/langer/FE/XOOF/menu.C":584, 0x10159b40]
12 ::main(argc = 1, argv = 0x7fff2e64)
["/hosts/lurch/vol0/home2/langer/FE/XOOF/main.C":192, 0x10088f18]
13 __start()
["/vince/6.2-mar09/work/irix/lib/libc/libc_n32_M3/csu/crt1text.s":166,
0x10041538]

I see the same behavior with both the 5.3 and 6.2-n32 SGI versions.

Thanks for any suggestions!

-- Steve

-- 
-- EMail: stephen.langer@nist.gov                    Phone: (301) 975-5423 --
-- WWW:  http://math.nist.gov/mcsd/Staff/SLanger/    Fax:   (301) 990-4127 --
-- Mail: Building 820 Room 365; NIST; Gaithersburg, Md          20899-0001 --
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil   or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bloch.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/