Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Potential problems on Windows due to conflicting CRT libraries

未关闭
#23,713 1 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@bellenot 已经在做这个了。

开始于 2026年10月14日。

评估

这个 Issue 还没有评估数据。

描述

improvement in:Core Libraries
Explain what you would like to see improved and how.

As we found in https://github.com/root-project/root/issues/22449, on Windows we can end up with different C Runtime (CRT) libraries loaded concurrently (https://github.com/root-project/root/pull/22986#issuecomment-5318274672).

One problem is that allocated objects cannot (at least sometimes) be transferred between compiled and interpreted code because the heap manager freeing the object is different from the one allocating it. For RVec, this is fixed/hidden in https://github.com/root-project/root/pull/22986 by using the C++ new/delete.

As Microsoft points out (https://learn.microsoft.com/en-us/cpp/c-runtime-library/potential-errors-passing-crt-objects-across-dll-boundaries) in principle also new/delete can be affected as well as other objects, e.g. file handles. Requires further investigation.

ROOT version

master

Installation method

From sources

Operating system

Windows

Additional context

No response

主要语言
C++
星标
3.3k
派生
1.6k
平均合并
2 天 14 小时
30 天内合并 PR
198

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

root-project/root 的其他 Issue

查看 root-project/root 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。