VS2015 ATL 在XP 系统下无法注册
来源:互联网 发布:格力空调代码含义 知乎 编辑:程序博客网 时间:2024/04/30 04:52
Link the CRT statically - in Config Properties / C/C++ / Code Generation / Runtime Library select the non-DLL multi-threaded option, for example
/MT
in the release build.Add
/Zc:threadSafeInit-
(n.b. the trailing-
is part of the switch) to the compiler options under Config Properties / C/C++ / Command Line / Additional Options.
Workaround #2 comes from the open case at https://connect.microsoft.com/VisualStudio/feedback/details/1907257.
Windows Server 2003 and Windows XP have problems with dynamically loading a DLL (via LoadLibrary) that uses thread-local storage, which is what thread-safe statics use internally to provide efficient execution when the static local has already been initialized. As these systems are out of support, it is extremely unlikely for a patch to be created for those systems to add this support as is present in Vista and newer OSes, and we are reluctant to penalize the performance on in-support OSes to provide this functionality to the old out-of-support ones.
To work around the issue you can use /Zc:threadSafeInit- to disable the thread-safe initialization code and this will avoid the thread-local variable. Of course by doing so the initialization code reverts back to the VS2013 mode and is not thread-safe, so this option is only viable if you don't rely on the thread-safety of local statics.
使用VS2015 ATL 制作的ACTIVEX控件在XP下无法注册。注册时提示 内存分配不成功。按上述两步更改重新生成后,可在XP内注册成功。
- VS2015 ATL 在XP 系统下无法注册
- 解决VS2012/VS2013/VS2015下编译的程序无法在XP下运行的问题
- 解决VS2012/VS2013/VS2015下编译的程序无法在XP下运行的问题
- 【USB设备在XP系统无法下掉怎么办】
- 在XP系统下创建无法删除、无法访问的文件夹
- vs2012下开发的程序无法在xp系统下运行的解决办法
- XP系统下安装ubuntu10.04无法启动xp
- 在xp下,无法切换用户。
- flann在VS2015 x64环境下无法编译的问题解决
- 透明窗体程序在XP系统下任务栏无法右键关闭程序
- OPCDAAuto.dll无法在64位系统下注册的解决方法
- ArcGIS 9在WIN XP 和 WIN 2003 系统下安装部分动态库不能注册的解决办法
- 在vista操作下安装XP系统
- 如何锁定计算机(在XP系统下)
- 在win7下安装xp系统
- 如何在win7下安装XP系统?
- 在linux下安装xp系统
- win10 vs2015 jsoncpp编译 支持xp系统
- 正宗四川红油
- ViewPager无法更新View的问题
- Oracle RMAN 映像备份(Image copies)基本原理与方案
- Swift学习(持续更新)
- win10下详细配置nodejs+express4开发环境
- VS2015 ATL 在XP 系统下无法注册
- Android Context完全解析,你所不知道的Context的各种细节
- Javascript中Event属性大全
- gettid 和pthread_self的区别
- VGA接口时序练习之图像动态显示
- JSON中JObject和JArray,JValue序列化(Linq)
- 如何打造一个可以无限注册账号的手机
- linux编译boost
- 互联网推送服务原理:长连接+心跳机制(MQTT协议)