Memory couldn't be read at.....
GCC Consulting
gcc at optonline.net
Tue Jun 1 17:57:55 PDT 2004
I ran into this error today after making some changes in a program I have been
working on.
The program passed the syntax check and didn't have any runtime error messages
appear when the program started.
After a bit of tracking and the use of the debugger, I finally found what was
causing the crash.
I had changed a standard browse lookup statement created by the lookup wizard to
its component parts.
ba="(brw=15 xkey=XSUDFA show=pkeep pop=ERN mlen=8 fill=asc,top)"
bb=bb="[\b5Ord# Item# DESCRIPTION Quant Order Shipped
\a-"
bc= bc="*1 *2 *3 *4 *5"
Lookup foobar k=1 i=d -nxm b=(ba&bb&bc)
The only problem was the I had left off the closing ] on bb=. As the actual
line was wider the 80 characters, I didn't notice the missing close bracket.
The program ran fine until it hit this browse lookup and then crashed with the
memory read error. When I narrowed down where the crash was taking place, I
placed a debug just before this browse was executed and was able to locate the
problem.
Although this is my error, and Ken will most likely disagree with me, I would
think that either the syntax check or the normal runtime check would have found
this error. Or at least find a better way to handle this error without crashing
the program with a memory read error.
This is one reason why I posted to the wish list, a request to have the browse
lookup wizard have an option to create these code lines, if wanted or when the
browse lookup being created would exceed the 2 line maximum.
Richard Kreiss
GCC Consulting
More information about the Filepro-list
mailing list