Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

连接多次开关报错Attempted to read or write protected memory. This is often an indication that other memory is corrupt. #26

Open
zgahxxwht opened this issue Aug 17, 2022 · 2 comments
Assignees

Comments

@zgahxxwht
Copy link

e8a32ccadf1c79e0505a4d98f38e16d3dc960305411e60460146aeb85a661b7dQzpcVXNlcnNcQWRtaW5pc3RyYXRvclxBcHBEYXRhXFJvYW1pbmdcRGluZ1RhbGtcNTE5MDQ0NTgwX3YyXEltYWdlRmlsZXNcMTY2MDc3OTIxODg3NV84Q0M2MjFENS0xQUY4LTQxYzgtODE0MS05MTRBNjIzMzBBQTIucG5n
第一次调用该接口正常运行,之后调用接口 TDengine.Connect( 处报错:Attempted to read or write protected memory. This is often an indication that other memory is corrupt. 请问怎么解决?

@xleili xleili self-assigned this Aug 22, 2022
@xleili
Copy link
Contributor

xleili commented Aug 22, 2022

使用完TDengine.Query() 返回的RES 之后,需要使用
static extern public void FreeResult(IntPtr res);
释放内存。

@penghl
Copy link

penghl commented May 26, 2023

使用完TDengine.Query() 返回的RES 之后,需要使用 static extern public void FreeResult(IntPtr res); 释放内存。

我测试用的是 Stmt 那套 API,就算最后调用 StmtClose 后也会报这个错误。不知道怎么解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants