purify里面的PAR:Both Debug and non-Debug versions of CRT are active 的警告的解决办法
2006-09-08 12:00
691 查看
We are developing some application in Visual Studio. In this
application we are using some third-party libraries,
for. ex.. oci.lib (Oracle Call Interface) for which we have release
version and Rogue Wave C++ libraries (which can
be build in both debug and release versions). When I try to run the
debug build of my application under purify,
it gives me the following warning.
"PAR:Both Debug and non-Debug versions of CRT(C Run Time Library) are
active."
This warning comes because I am using the release version of oci.lib,
which will be using non-debug version of CRT, i.e.
MSVCRT.lib. While my application and Rogue Wave library is build using
DEBUG options, so it uses debug version of CRT.
This usage of both Debug and non-Debug versions of CRT may result in
heap corruption.
To remove this PAR I build the debug version of my application and
linked it with the release version of CRT and Rogue Wave
libraries. After this I no-longer get the PAR:warning, but now I will
not be able to debug the Rogue Wave Library code.
Is there any way to use the release version of the third-party
libraries such as (oci.lib) with the debug build of our
application and still not get PAR. Or what is the right way link the
debug version of our application with release version
of third-party libraries, so that we don't get PAR and are able to
debug Rogue Wave library also.
Please help us out.
Thanks
--
application we are using some third-party libraries,
for. ex.. oci.lib (Oracle Call Interface) for which we have release
version and Rogue Wave C++ libraries (which can
be build in both debug and release versions). When I try to run the
debug build of my application under purify,
it gives me the following warning.
"PAR:Both Debug and non-Debug versions of CRT(C Run Time Library) are
active."
This warning comes because I am using the release version of oci.lib,
which will be using non-debug version of CRT, i.e.
MSVCRT.lib. While my application and Rogue Wave library is build using
DEBUG options, so it uses debug version of CRT.
This usage of both Debug and non-Debug versions of CRT may result in
heap corruption.
To remove this PAR I build the debug version of my application and
linked it with the release version of CRT and Rogue Wave
libraries. After this I no-longer get the PAR:warning, but now I will
not be able to debug the Rogue Wave Library code.
Is there any way to use the release version of the third-party
libraries such as (oci.lib) with the debug build of our
application and still not get PAR. Or what is the right way link the
debug version of our application with release version
of third-party libraries, so that we don't get PAR and are able to
debug Rogue Wave library also.
Please help us out.
Thanks
--
相关文章推荐
- 编译vlc-android 提示错误:libavcodec versions 56 and later are not supported yet解决办法
- SpringMVC conflicts with existing, non-compatible bean definition of same name and class 的解决办法,sprin
- SpringMVC conflicts with existing, non-compatible bean definition of same name and class 的解决办法 问题起因
- none of the 1 split apks are compatible with the current device with density "-1" and ABIs "". 解决办法
- SpringMVC conflicts with existing, non-compatible bean definition of same name and class 的解决办法
- SpringMVC conflicts with existing, non-compatible bean definition of same name and class 的解决办法
- SpringMVC conflicts with existing, non-compatible bean definition of same name and class 的解决办法
- Command line error D2016 : '/ZI' and '/O2' command-line options are incompatible 解决办法
- Android Studio添加AAR文件报错:the versions of the android gradle plugin and gradle are not compatible,plea
- 避免"This page contains both secure and nonsecure items"警告信息
- Illegal mix of collations (latin1_swedish_ci,COERCIBLE) and (gbk_chinese_ci,COERCIBLE) for operation '=' 一个解决办法
- 在Eclipse中运行Android程序报 Failed to write core dump. Minidumps are not enabled by default on client versions of Windows 解决方法
- qt出现警告 Unescaped backslashes are deprecated!解决办法
- mysql错误提示Illegal mix of collations (gbk_chinese_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE)的一个解决办法
- KEIL 警告last line of file ends without a newline解决办法
- [Err] 1267 - Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '=' 解决办法
- Implicit declaration of function ‘xxxx’ is invalid in C99” 警告的解决办法
- qt出现警告 Unescaped backslashes are deprecated!解决办法
- Debug:This kind of launch is configured to openthe debug perspective when it解决办法
- Can I get rid of the "This page contains both secure and nonsecure items" warning?