Hi,
while memory debugging an app I found the following in fselector. This was
checked in a minimal executable that just shows an fselector. Code is attached
below. Tested against xforms lib version 0.88.1 and 0.89.2 using Solaris 2.5.1
1. A leak return error is generated the only first time the fselector is called.
Memory leaked by ignoring return value.
Lost block : 0x000465e0 thru 0x00046a07 (1064 bytes)
block allocated at:
opendir()
tc_scandir()
scandir_get_entries()
fl_get_dirlist()
fill_entries()
fl_show_fselector()
browse()
Stack trace where the error occurred:
realloc()
tc_scandir()
scandir_get_entries()
fl_get_dirlist()
fill_entries()
fl_show_fselector()
browse()
fl_object_qread()
fl_do_forms()
main()
2. non-NULL second parameter in call to gettimeofday()
The man page to gettimeofday() says:
The second argument to gettimeofday() and settimeofday()
should be a pointer to NULL.
Just to make it clear. I haven't had any strange behaviour using the fselector.
Just these memory debugging messages. Hope this is of some use...
Dirk
--- Dirk Evers / AG-PI / Technische Fakultaet Office: M3-120 Universitaet Bielefeld Tel: +49 521 106-2905 Postfach 100 131 FAX: +49 521 106-6411 D-33501 Bielefeld EMail: mailto:dirk@TechFak.Uni-Bielefeld.DE Germany URL: http://www.TechFak.Uni-Bielefeld.DE/techfak/persons/dirk/
This archive was generated by hypermail 2b29 : Mon Feb 28 2000 - 12:21:23 EST