home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!mcsun!sun4nl!ruuinf!markov
- From: markov@cs.ruu.nl (Mark Overmars)
- Subject: Bug in menus in FORMS LIBRARY Version 2.1
- Sender: network-news@cs.ruu.nl
- Message-ID: <1992Nov10.200057.14525@cs.ruu.nl>
- Date: Tue, 10 Nov 1992 20:00:57 GMT
- Organization: Utrecht University, Dept. of Computer Science
- Keywords: GUI FORMS
- Lines: 23
-
- I am sorry to say that there is a bug in the menu object class in the new
- release of the Forms Library that only happens under particular versions of
- the operating system (not under the release I was running). It has to do with
- malloc and free (as usual). The error is in the routine fl_clear_menu in the
- file menu.c. Please replace this routine by the following code:
-
-
- void fl_clear_menu(FL_OBJECT *ob)
- /* Clears the menu object */
- {
- int i;
- SPEC *sp = ((SPEC *)(ob->spec));
- sp->val = 0;
- for (i=1; i <= sp->numitems; i++)
- { free(sp->items[i]); free(sp->shortcut[i]); sp->mode[i] = PUP_NONE; }
- sp->numitems = 0;
- }
-
- Tomorrow on I will change the version in our archive to version 2.1a
- that corrects this bug. Sorry for this.
-
- Mark Overmars
-
-