Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!sdd.hp.com!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!bagate!cbmvax!peter From: peter@cbmvax.commodore.com (Peter Cherna) Newsgroups: comp.sys.amiga.programmer Subject: Re: Refresh GList hang... Message-ID: <18554@cbmvax.commodore.com> Date: 4 Feb 91 21:01:06 GMT References: Reply-To: peter@cbmvax.commodore.com (Peter Cherna) Organization: Commodore, West Chester, PA Lines: 36 In article halcyon!elf@sumax.seattleu.edu (Elf Sternberg) writes: > > I've been trying to get this damn program to run for two days >now. It's the first one I've written using AddGList (or AddGadget, I've >tried both) and yet every time I get to RefreshGList (or RefreshGadgets) >the system hangs. Once, I was about to get a SYSTEM_REQUEST but the >system froze before the text could be printed. Are you sure you have the right parameters? RefreshGList( gadgets, window, requester, numgad ); Gadgets points to the first gadget to refresh, window to the window the gadgets are in, requester points to the requester, or use NULL if the gadgets are in a window proper, and numgad is the number of gadgets to refresh (or ~0 to refresh them all). If you're using Aztec with 16-bit integers, make sure that numgad is followed by an L, eg. RefreshGList( gad, win, NULL, 3L ); Make sure you've added the gadgets successfully before you call RefreshGList(). AddGList( Window, Gadget, Position, Numgad, Requester ) Again, be sure that position and numgad have an L at the end, if you're using Aztec with 16-bit ints. >Elf Sternberg | Nuke: To destroy, obliterate, demolish, wipe out, Peter -- Peter Cherna, Software Engineer, Commodore-Amiga, Inc. {uunet|rutgers}!cbmvax!peter peter@cbmvax.commodore.com My opinions do not necessarily represent the opinions of my employer. "Oh, PIN-compatible! I thought you wanted me to make it IN-compatible!"