即使在关闭rpcrt4中的单个句柄后,EvtNext也会泄漏内存!Ndr64pClientUnMarshal [英] EvtNext leaking memory even after closing individual handles in rpcrt4!Ndr64pClientUnMarshal

查看:140
本文介绍了即使在关闭rpcrt4中的单个句柄后,EvtNext也会泄漏内存!Ndr64pClientUnMarshal的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows Server 2012计算机上,EvtNext正在泄漏内存。我通过调用EvtClose来关闭EvtNext返回的所有句柄。下面是通过调试工具收集的调用堆栈,用于内存泄漏。

On Windows server 2012 machine, EvtNext is leaking memory . I am closing all the handles returned by EvtNext by calling EvtClose. Below is call stack collected via Debug tool for memory leak.

推荐答案

您好,

感谢您在此发帖。

为了解决内存泄漏问题,我建议你可以使用windbg工具进行检测。以下是关于windbg的使用方法:

For solving the memory leak, I suggest that you can use the windbg tool to detect. The below is about windbg usage:

https: //www.codeproject.com/Articles/31382/Memory-Leak-Detection-Using-Windbg

https://blogs.msdn.microsoft.com/paullou/2011/06 / 28 / debugging-managed-code-memory-leak-with-memory-dump-using-windbg /

据我所知,我不认为指定的函数会导致内存泄漏,如果你认为问题是bug,那么Microsoft已提供了一个处理该问题的网站,该网站是
连接网站

As far as I know that I don't think the specified function can cause memory leak, if you think the issue is bug, The Microsoft has provided a website to handle the issue, that is connect website.

在发布问题之前,请确认功能使用情况。  

Before posting the issue, please confirm the function usage.  

对于您检索的每个事件,您可以调用
EvtCreateRenderContext

EvtRender
用于渲染事件。

For each event that you retrieve, you can then call the EvtCreateRenderContext and EvtRender functions to render the event.

你必须致电
EvtClose
您收到的每个活动句柄。 如果您忘记关闭一个活动,则会收到。该操作将导致内存泄漏。

You must call EvtClose on each event handle that you receive.  If you forget to close one event you receive. the operation will cause the memory leak.

关于如何使用该功能, 微软提供了一个演示,请参考它。

About how to use the function,  the Microsoft had provided a demo, please reference it.

参见
查询事件

订阅活动

最好的问候,

Hart


这篇关于即使在关闭rpcrt4中的单个句柄后,EvtNext也会泄漏内存!Ndr64pClientUnMarshal的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆