Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!rutgers!labrea!decwrl!sun!pepper!cmcmanis From: cmcmanis%pepper@Sun.COM (Chuck McManis) Newsgroups: comp.sys.amiga Subject: Re: Need Intuition Help Message-ID: <27908@sun.uucp> Date: Mon, 14-Sep-87 14:53:48 EDT Article-I.D.: sun.27908 Posted: Mon Sep 14 14:53:48 1987 Date-Received: Tue, 15-Sep-87 07:13:31 EDT References: <86@softie.UUCP> Sender: news@sun.uucp Reply-To: cmcmanis@sun.UUCP (Chuck McManis) Organization: Sun Microsystems, Mountain View Lines: 27 Keywords: menus,NextSelect,gadgets In article <86@softie.UUCP> mrr@softie.UUCP (Mark Rinfret) writes: >Next question: Do the AddGList, RemoveGList functions require fullword >alignment of the Gadget structures? I modified some code to use these and >all hell broke loose. I know for a fact that my data structures are NOT >fullword aligned (checked with db). Reverting to AddGadget, RemoveGadget, >RefreshGadgets (vs. ..GList) corrected the problem. If fullword alignment >is necessary, is there a way to coerce Aztec C to do this for static or >global preset data structures? AddGlist() and RemoveGlist() should not have any different alignment require- ments than AddGadget() or RemGadget() do. The only difference being a numeric parameter to indicate the number of gadgets to add or remove. Since you are using Aztec C my first guess would be that you are not casting the number of gadgets to a long and thus the number it adds or removes is probably several thousand. So change : AddGlist(&window,&gadget,4); -to- AddGlist(&window,&gadget,(long) 4); [Note I can't remember off the top of my head if the Glist functions can also be used on a requester, which would add an addition NULL pointer to a requester struct in their somewhere] --Chuck McManis uucp: {anywhere}!sun!cmcmanis BIX: cmcmanis ARPAnet: cmcmanis@sun.com These opinions are my own and no one elses, but you knew that didn't you.