Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!mips!apple!oliveb!orc!decwrl!wsl.dec.com!klee From: klee@wsl.dec.com (Ken Lee) Newsgroups: comp.windows.x Subject: Re: Multiple Parameters to a Callback Function Keywords: XtAddCallback ClientData Mutiple X11R4 Message-ID: <2983@bacchus.dec.com> Date: 9 Mar 90 00:51:40 GMT References: <186@ria.ccs.uwo.ca> Sender: news@decwrl.dec.com Reply-To: klee@decwrl.dec.com Organization: DEC Western Software Laboratory Lines: 12 In article <186@ria.ccs.uwo.ca>, brown@csd.uwo.ca (Mike Brown) writes: > We've tried passing a pointer to an array of parameters (cast to XtPointer), > but that failed - the contents are scrambled. This should work. Make sure you don't deallocate the structure before the callback is called. Ken Lee DEC Western Software Laboratory, Palo Alto, Calif. Internet: klee@wsl.dec.com uucp: uunet!decwrl!klee