dnks's recent timeline updates
dnks

dnks

落花人独立,微雨燕双飞。
V2EX member #492851, joined on 2020-06-02 22:20:12 +08:00
Per dnks's settings, the topics list is hidden
Deals info, including closed deals, is not hidden
dnks's recent replies
Mar 26, 2025
Replied to a topic by dnks Visual Studio Code VSCode 主题
@Livid 好的好的
这段代码可能会导致崩溃的原因是在 SetModuleIdentities 函数中,使用了一个 std::vector 容器来存储 ModuleConfig 结构体对象。在每次循环迭代中,都会向 testVec 容器中添加一个新的 ModuleConfig 对象。

然而,ModuleConfig 结构体中包含一个 std::string 类型的成员变量 pdoMapName ,而在默认构造函数中,并没有对 pdoMapName 进行初始化。这会导致在每次循环迭代时,都会创建一个新的 ModuleConfig 对象,并使用默认构造函数进行初始化,但由于 pdoMapName 没有被正确初始化,可能会导致悬空指针或访问未定义的内存区域,从而引发崩溃。

为了解决这个问题,你可以在 ModuleConfig 结构体的默认构造函数中对 pdoMapName 进行初始化。
---By ChatGPT
你不是输给了 AI ,而是输给了创造 AI 的那群人。
Jan 1, 2023
Replied to a topic by CREEPERDCH 程序员 这下 zlib 真的寿终正寝了
所以这就是要说全称的重要性了
Oct 24, 2022
Replied to a topic by stimw 程序员 1024 都准备买啥
屯点便宜固态和内存条
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2647 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 03:38 · PVG 11:38 · LAX 20:38 · JFK 23:38
♥ Do have faith in what you're doing.