473,395 Members | 1,666 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,395 software developers and data experts.

Found BUG of compiler VC++.NET 7.0 ?

Environment:
VS.NET 7.0
VC++

- Application multithread (imported from VS6.0 version)
- compiling in ReleaseMinDependency

My application creahsed only in deploy machine so I inserted trace point to understand where was mistake.
So I see that if I compile application in debug mode trace point logged correct information. Instead if I compile in ReleaseMinDependency trace point refer other point of code differente from where exception was raised !!
the code:

******************************************
................

sm.insert(SicMap::value_type(string(tCode), string(tDescr)));

tracePoint = 21;

ssic.insert(tCode);

tracePoint = 22;

...........

tracePoint = 23;

pri = NULL; //--> so I force exception on next line

TCHAR *tRow = new TCHAR[pri->sici.OutputSICSize];

...............
catch (...)

{

char msg[500];

sprintf(msg, " - Error ProcessSIC - tracePoint = %d", tracePoint);

spLog->Write(CComBSTR(msg));

throw;

}

***********************************

So, only in ReleaseMinDependency system log tracePoint = 21 instead of 23

And the cause seems the compiler optimization:

- disabled (Debug) -> /Od -> log is ok

- Maximize speed (ReleaseMinDependency) -> /O2 -> log is not ok

may be a bug of compiler ?

thanks a lot

bye

Alek

Nov 16 '05 #1
0 761

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: | last post by:
I first thought I had some compiler setting wrong in VC# 2003 but it turns out that it has something to do with .NET framework v1.1 itself. If I understand correctly, .NET installer also installs a...
5
by: Mark | last post by:
The following code works with gnu compilers (ISO compliant declaration of the variable "i") void foo() { for (int i = 0; i < length; i++) { loop code.... } for (int i = 0; i < length; ...
5
by: Robert A Riedel | last post by:
I have a class that is intended to be exported in a DLL that uses another class that is in a static library. All clients that use the DLL will also link with the same static library. In summary,...
5
by: Hari | last post by:
Guys please help me to solve this strange problem what Iam getting as follows.. Trying to instantiate a global instance of a template class as follows :- when i build this code with debug and...
2
by: Brian | last post by:
In particular, this question goes out to the Microsoft C++ development team. Back in June, Ronald Laeremans posted the following message. Has the optimizing compiler been included with the...
12
by: nicdude | last post by:
There is a Comeau C++ compiler special offer at http://www.comeaucomputing.com Is it really as compliant as it seems to imply? In terms of Standard C++, what is it missing? Can it handle...
9
by: Richard Lionheart | last post by:
Hi All, I've got Visual Studio .Net installed, but I don't know it very well. So I tried to create a plain old Win32 using the command-line complier. I tried to compile: ************...
48
by: meyer | last post by:
Hi everyone, which compiler will Python 2.5 on Windows (Intel) be built with? I notice that Python 2.4 apparently has been built with the VS2003 toolkit compiler, and I read a post from Scott...
41
by: Miroslaw Makowiecki | last post by:
Where can I download Comeau compiler as a trial version? Thanks in advice.
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:
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...
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.