home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / next / programm / 7895 < prev    next >
Encoding:
Internet Message Format  |  1992-12-23  |  1.0 KB

  1. Path: sparky!uunet!olivea!decwrl!deccrl!news.crl.dec.com!rdg.dec.com!uproar.enet.dec.com!jacksonc
  2. From: jacksonc@uproar.enet.dec.com (Chris Jackson @ IME)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: NXWriteTypes() of 'char *'
  5. Keywords: NXWriteTypes
  6. Message-ID: <1992Dec23.131946.14537@rdg.dec.com>
  7. Date: 23 Dec 92 13:19:46 GMT
  8. Sender: news@rdg.dec.com (Mr News)
  9. Reply-To: jacksonc@uproar.enet.dec.com (Chris Jackson @ IME)
  10. Organization: Digital Equipment Service Industries Solutions Company Ltd
  11. Lines: 15
  12.  
  13.  
  14. My experience seems to suggest that using NXWriteTypes() to archive a 'char *'
  15. only works if the 'char *' is not NULL.  If it *is* NULL, then a memory
  16. violation results in 'strlen()' in NeXT code when the object concerned is read
  17. from the archive.
  18.  
  19. Can anyone out there confirm that this is the case and whether or not it is the
  20. expected behaviour ?  If it is the expected behaviour, I presume I have to
  21. explicitly code around it ?  Next question - is there a recommended way of
  22. doing
  23. so ?
  24.  
  25. Thanks, in anticipation,
  26.  
  27. Chris.
  28.