You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Henrik Nordberg (JIRA)" <ax...@ws.apache.org> on 2006/08/21 19:28:14 UTC
[jira] Created: (AXISCPP-993) #undef _DEBUG in
AxisConfiguration.hpp can lead to problems
#undef _DEBUG in AxisConfiguration.hpp can lead to problems
-----------------------------------------------------------
Key: AXISCPP-993
URL: http://issues.apache.org/jira/browse/AXISCPP-993
Project: Axis-C++
Issue Type: Bug
Components: Configuration, Server - General
Affects Versions: current (nightly)
Reporter: Henrik Nordberg
In configuration/AxisConfiguration.hpp we have
#undef _DEBUG
What is the reason for this?
This does not compile with VS 2005 with the following error:
[cc] FileFunctions.cpp
[cc] C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\use_ansi.h(49) : fatal error C1189: #error : You have included some C++/C library header files with _DEBUG defined and some with _DEBUG not defined. This will not work correctly. Please have _DEBUG set or clear consistently.
I think one reason it is dangerous to use _DEBUG in some headers and not others is that it will bring in different versions of operator new and delete. This will then lead to crashes, if we are lucky (and memory corruption and wrong results if we aren't).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org
[jira] Closed: (AXISCPP-993) #undef _DEBUG in AxisConfiguration.hpp
can lead to problems
Posted by "nadir amra (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXISCPP-993?page=all ]
nadir amra closed AXISCPP-993.
------------------------------
Fix Version/s: 1.6 Beta
Resolution: Fixed
Not sure why it is in there....but since no one has made any comments I have removed the statement.
> #undef _DEBUG in AxisConfiguration.hpp can lead to problems
> -----------------------------------------------------------
>
> Key: AXISCPP-993
> URL: http://issues.apache.org/jira/browse/AXISCPP-993
> Project: Axis-C++
> Issue Type: Bug
> Components: Configuration, Server - General
> Affects Versions: current (nightly)
> Reporter: Henrik Nordberg
> Fix For: 1.6 Beta
>
>
> In configuration/AxisConfiguration.hpp we have
> #undef _DEBUG
> What is the reason for this?
> This does not compile with VS 2005 with the following error:
> [cc] FileFunctions.cpp
> [cc] C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\use_ansi.h(49) : fatal error C1189: #error : You have included some C++/C library header files with _DEBUG defined and some with _DEBUG not defined. This will not work correctly. Please have _DEBUG set or clear consistently.
> I think one reason it is dangerous to use _DEBUG in some headers and not others is that it will bring in different versions of operator new and delete. This will then lead to crashes, if we are lucky (and memory corruption and wrong results if we aren't).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org