[bugfix] backtrace_enable_ is modified abnormally #134
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
close #133
OS: win10
编译器: MSVC 2022
Qt版本: 6.5.0
backtrace_enable_
默认是false,但是在进入函数GParam::addBacktrace
里进行条件判断时,backtrace_enable_
变为一个非零的值。且在每次运行时是随机的。当不引入Qt的库即将下面的注释,上述现象又会消失。
判断可能是编译器将
backtrace_enable_
内存位置修改。所以将该变量的声明修改位置。在进行多次的清除和编译运行后正常运行。具体原因还是需要进一步排查。