home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / next / programm / 7375 < prev    next >
Encoding:
Text File  |  1992-11-23  |  1.6 KB  |  54 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!cs.utexas.edu!sdd.hp.com!think.com!spool.mu.edu!agate!usenet.ins.cwru.edu!ukma!mont!mizzou1.missouri.edu!C471040
  3. From: C471040@mizzou1.missouri.edu (Toejam)
  4. Subject: Help: memory access error message.
  5. Message-ID: <168A87D9D.C471040@mizzou1.missouri.edu>
  6. Sender: news@mont.cs.missouri.edu
  7. Nntp-Posting-Host: mizzou1.missouri.edu
  8. Organization: University of Missouri
  9. Date: Mon, 23 Nov 92 08:55:56 CST
  10. Lines: 42
  11.  
  12. Aloha.
  13.  
  14. I have a simple program which parses some reports.  The user can
  15. select the order in which the data is parsed.  For each field
  16. to be parsed a separate function handles the specifics of how to
  17. parse that data.
  18.  
  19. I have a switch statement which goes like:
  20.  
  21. switch (parsefield)
  22. {
  23.   case afield:
  24.      [self parseafield];
  25.      break;
  26.  
  27.   case bfield:
  28.      [self parsebfield];
  29.      break;
  30.  
  31.    .
  32.    .
  33.    .
  34. }
  35.  
  36. The interface has blocks of fields: a header data block, a mean data
  37. block, a standard deviation block, and a summary block.
  38. The program parses the header data block fine.
  39. When it gets to any field outside of the header block I get the
  40. following message:
  41.  
  42. Program generated(1): Memory access exception on address 0xfff734 (invalid
  43. address).
  44. -[ReportParser parsemcallperiod] (self=0xb6ad0,
  45. _cmd=Cannot access memory: address 0xfff748 out of bounds.
  46.  
  47. I am clueless as to why the program is trying to call on address
  48. 0xfff734.  I am clueless as to why the program will parse all the data
  49. in the first block but not any of the other blocks.
  50.  
  51. Any help you guys can pass my way would be most appreciated.
  52.  
  53. Toejam
  54.