Yes probably so. The only other thing I can suggest is I have had very odd problems happen on new release recompiles of code that previously 'worked just fine' when there is a memory handling error somewhere (anywhere) in the program. The error could in fact be in a totally unrelated part of the code.
On the old release when it compiled, you may have gotten 'lucky' and the spaces that were allocated to the variables where there was a memory overrun just never overlapped, and on the new release when it compiles, there is memory stepped on somewhere, causing a bizarre error which seems to defy logic. But I have to say the fact that with equals or not equals being evaluated the same way, it is suspicious as an operating system issue. On the other hand, there is nothing very special about that if statement so I would do a serious analysis of the handling of memory everywhere.
----- Original Message ----
From: "c400-l-request@xxxxxxxxxxxx" <c400-l-request@xxxxxxxxxxxx>
Sent: Sat, October 3, 2009 7:00:08 PM
Subject: C400-L Digest, Vol 7, Issue 50
Note: Forwarded message is attached.
Send C400-L mailing list submissions to
To subscribe or unsubscribe via the World Wide Web, visit
or, via email, send a message with subject or body 'help' to
You can reach the person managing the list at
When replying, please edit your Subject line so it is more specific
than "Re: Contents of C400-L digest..."
1. 6.1 issue (Erik Olsson)
After being unable to get a successful compile on a 6.1 machine due to ccsid
issues I used trigraphs for curly braces etc. The compilation then went
I have the following code.
fb = _Rreadf(fp, &buf, sizeof(buf), __NO_LOCK);
if (fb->num_bytes != sizeof(buf))
cout << "That did not work" << endl;
The bizarre thing is that the if statement always evaluates to true (even if
the read finds a record, and even if i change the comparison to "==". That
truly defies the rules of logic).
Other if statements in the same program work as expected. It's created with
I have tried the program successfully on a V5R4 machine.
Guess it's time to check this with IBM?
This is the C programming iSeries / AS400 (C400-L) digest list
To post a message email: C400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: C400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
As an Amazon Associate we earn from qualifying purchases.