> >> >
> >> > POSE Error: "...directly read from data manager data structure.."
> >> >
> >> >
> >> Is it possible that the string pointed to by RecPointer is not
> >> null-terminated? This would cause StrCopy to traipse off the end of
> >> the record and into the next record header, triggering a datamgr read
> >> error.. Or, perhaps the record pointed to by RecPtr isn't even 3 chars
> >> long?
> >
> > A couple of people have suggested this. But the error seems to
> > indicate that _any_ "direct reading of the Memory Manager Data
> > Sturcuture" would generate this error. It did not say anything about
> > reading past anything.
> >
> > I'm not even sure that the code fragment is the source of the error. I
> > am just wondering:
> >
> > 1) what the error specifically means and
> > 2) what can cause it.
> >
> >
> If another allocated memory block exists just past the end of your
> block, then reading off the end of your block would cause this error
> (because you walk off the end of your block into the header of the next).
> Most times I've had this error, it's been because I've read off one end or
> the other of a memory chunk..
Here is what the problem turned out to be. It had nothing to do with
a null terminated string. I had a field that was supposed to be a
single line. I had the properties for this field defined as multi-
line and dynamic sizing. But there was only enough room for a single
line. Then, Gremlins would queue up two newline chars occasionally.
This is what was causing the problem.
I was able to duplicate this by simply entering anything in the field
and then make sure that I entered two linefeeds. One linefeed char
did not cause the problem. Then after entering the two newline, I
would do some calculation based on this field.
Crash! The strings were always null terminated but included two
newline chars. Does this sound like it should generate this error?
Whether or not is sounds right, it in fact does.
I just made the field single line and the problem went away.
--
-----------------------------------------------------------------
Discussion Group: http://www.halcyon.com/ipscone/wwwboard/
Protect your constitutional rights. Your favorite one may be next!
-----------------------------------------------------------------