473,387 Members | 1,585 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

VB5 Optimization Compiler Errors

I am using VB5 with speed optimization and have run into a sitution that the compiled code generates an incorrect result. The problem is with the '<' operation. The following code does not compile correctly:

If FLD(NR) < FLD2(NR) THEN
DO THIS
ELSE
DO THAT
END IF

IF FLD(NR) IS FOR EXAMPLE 600 AND FLD2(NR) IS 3000 YOU WOULD EXPECT 'DO THIS' TO EXECUTE, BUT "DO THAT" IS BEING EXECUTED.

This is a different result than if the program is run in development environment where correct result occurs. Also correct without optimization. The code also seems to work if <= is used, but that's not what I'm thying to test.

Has anyone run into this problem and is there a solution other than changing all the code in a very large system?
Dec 19 '13 #1
0 926

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: jon morgan | last post by:
Hi, I get random errors raised when compiling a multi-project application. For example the compiler will claim that a class has no constructor when it does. If I replace the first line of the...
8
by: jon morgan | last post by:
OK, I'm going to be brave. There is a bug in VS.Net 1.1 that causes random compiler errors. I have raised this issue in posts at least three time in the past couple of months without attracting...
1
by: Hafeez | last post by:
I am having real trouble compiling this code http://www.cs.wisc.edu/~vganti/birchcode/codeHier/AttrProj.tgz The attachment shows errors when compiled using the current version of g++ in a...
6
by: deanfamily11 | last post by:
When I run the following code through my compiler, I get C2065 and C2145 errors. Can someone help? #include <iostream> using namespace std; int main () {
1
by: lucho | last post by:
Hi everyone, I have the same problem as described under Q316317 (http://support.microsoft.com/default.aspx?scid=kb;en- us;316317) ie a compiler error saying c:\Program Files\Microsoft Visual...
0
by: Charles Law | last post by:
I thought I would pass this on, as I have oft' seen this problem reported, with no solution. The problem is that in a solution containing several projects, the compiler will sometimes report a...
2
by: Just Me | last post by:
I beleive it is because I have some projects in more than one solution that I develope the following type of errors. Can anyone tell me how to avoid this or what to do when it happens? Thanks...
2
by: Samuel R. Neff | last post by:
Within the past few weeks we've been getting a lot of compiler errors in two classes when no errors actually exist. The error always reports as Name '_stepResizeRelocator' is not declared. ...
6
by: Russ | last post by:
This really is the worst Microsoft product I have ever had the misfortune to work with. After the excellent feattures and stability of VS.NET 2002 and 2003, I was confident enough to start a...
5
kiseitai2
by: kiseitai2 | last post by:
Hi, I'm in a Windows Vista machine and, when I try to compile my program's code, I get compiler errors that are not related to my app. I'm using Code::Blocks 10.05 with the MinGW (gcc) compiler...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.