× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



From: Gene Burns

I see that I should have added more documentation with the code.

No, not really. I don't actually care what the rest of the program is
doing, because there is only one line of code where your hypothesis can be
correct. That is, after the CHAIN where the record is locked. At that
point, the data in the mstrDS data structure MUST match the data in the
file.

Anything else is probably a logic error, and what you need to do is start at
a known bad point and walk backwards until you discover the point where your
data changes incorrectly.

So at what exact point in the code does a data structure contain data that
doesn't match your expectations, and why? Tell me the exact sequence of
events of I/O instructions and moves to the data structure, and then tell me
what you expect and what you see, and exactly where in the code you are.


Deletes are not allowed on this file, so there was no need to check the
found condition. If you got this far the record is known to exist.

Uh. Yeah. That's an awfully big hole to drive logic trucks through. But
again, answer my previous question.

Joe


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.