home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!europa.asd.contel.com!howland.reston.ans.net!wupost!cs.utexas.edu!sun-barr!ames!olivea!pagesat!spssig.spss.com!jon
- From: jon@spss.com (Jon Fry)
- Newsgroups: comp.windows.x.motif
- Subject: Free value from MrmFetchLiteral?
- Message-ID: <1992Dec11.233018.5834@spss.com>
- Date: 11 Dec 92 23:30:18 GMT
- Sender: news@spss.com (Net News Admin)
- Distribution: na
- Organization: SPSS Inc.
- Lines: 30
-
-
- The code I'm debugging contains
-
- rc = MrmFetchLiteral( ..., ..., ..., value, ...);
- ...
- XtFree(value);
-
- The 4th argument to MrmFetchLiteral is documented in the OSF/Motif
- Programmer's Reference, Release 1.1, as
-
- caddr_t *value;
-
- value Returns the ID of the named literal's value.
-
- The code uses "value" as if it pointed to the literal's value after
- the call.
-
- The _Sentinel_ debugging package sometimes reports that the pointer in
- value is outside the malloc arena, and sometimes reports that it does
- not point to the beginning of an allocated block of memory. Each call
- does give a different value in "value", but it appears improper to
- free it.
-
- IBM RS/6000 AIX 3.2, Motif 1.1 from IBM.
-
- Can anybody shed any light on this?
- --
- Jonathan Fry | Any opinions expressed
- SPSS Inc. | are my own and not those
- jon@spss.com | of SPSS Inc.
-