🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #37852

Re: Multiple Parameters to a Callback Function

#37852
From: Ken Lee
Date: Fri, 09 Mar 1990 00:51
12 lines
946 bytes
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
Technical Details
Message-ID: <2983@bacchus.dec.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!mips!apple!oliveb!orc!decwrl!wsl.dec.com!klee
References: <186@ria.ccs.uwo.ca>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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