Article View: comp.sys.next.programmer
Article #1892Help: memory access error message.
From: Toejam
Date: Mon, 23 Nov 1992 14:55
Date: Mon, 23 Nov 1992 14:55
42 lines
1644 bytes
1644 bytes
Aloha.
I have a simple program which parses some reports. The user can
select the order in which the data is parsed. For each field
to be parsed a separate function handles the specifics of how to
parse that data.
I have a switch statement which goes like:
switch (parsefield)
{
case afield:
[self parseafield];
break;
case bfield:
[self parsebfield];
break;
.
.
.
}
The interface has blocks of fields: a header data block, a mean data
block, a standard deviation block, and a summary block.
The program parses the header data block fine.
When it gets to any field outside of the header block I get the
following message:
Program generated(1): Memory access exception on address 0xfff734 (invalid
address).
-[ReportParser parsemcallperiod] (self=0xb6ad0,
_cmd=Cannot access memory: address 0xfff748 out of bounds.
I am clueless as to why the program is trying to call on address
0xfff734. I am clueless as to why the program will parse all the data
in the first block but not any of the other blocks.
Any help you guys can pass my way would be most appreciated.
Toejam
Technical Details
Message-ID:
<168A87D9D.C471040@mizzou1.missouri.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!sdd.hp.com!think.com!spool.mu.edu!agate!usenet.ins.cwru.edu!ukma!mont!mizzou1.missouri.edu!C471040Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!sdd.hp.com!think.com!spool.mu.edu!agate!usenet.ins.cwru.edu!ukma!mont!mizzou1.missouri.edu!C471040 From: C471040@mizzou1.missouri.edu (Toejam) Subject: Help: memory access error message. Message-ID: <168A87D9D.C471040@mizzou1.missouri.edu> Sender: news@mont.cs.missouri.edu Nntp-Posting-Host: mizzou1.missouri.edu Organization: University of Missouri Date: Mon, 23 Nov 92 08:55:56 CST Lines: 42