如何监控exe和dll的交互? [英] how to monitor exe and dll interactions?

查看:261
本文介绍了如何监控exe和dll的交互?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

是否有任何工具或其他方法可用于监控哪些
类/方法exe正在访问DLL?


现在我遇到了一个问题,当我提供我开发的DLL到第三个

parth应用程序时,它有时会崩溃我怀疑第三方

应用程序正在调用一些我没有实现DLL的类/方法。我有
有DLL的完整源代码,但没有exe的源代码所以

我想知道是否有一些方法来监控交互 -

例如我可以监视exe调用哪个类/方法,并且在我的DLL没有实现的同时

时间。


我正在使用Visual Studio 2005开发原生(非托管)C ++ DLL,我和
通过COM接口将DLL接口暴露给exe。

提前感谢,

George

Hello everyone,
Are there any tool or other methods which could be used to monitor which
class/method exe is accessing a DLL?

Now I met with an issue that when I provide the DLL I developed to a 3rd
parth application, it will crash sometimes and I suspect the 3rd party
application is invoking some class/method which I do not implement the DLL. I
have the full source codes of the DLL, but has no source codes of the exe so
I am wondering whether there are some methods to monitor the interactions --
e.g. I can monitor which class/method the exe is invoking and at the same
time my DLL has not implemented.

I am using Visual Studio 2005 to develop native (unmanaged) C++ DLL, and I
expose the interface of the DLL to exe through COM interface.
thanks in advance,
George

推荐答案

>是否有任何工具或其他方法可用于监控哪个
>Are there any tool or other methods which could be used to monitor which

> class / method exe正在访问DLL?
>class/method exe is accessing a DLL?



调试器。


SysInternals Process Explorer工具可以告诉你哪些进程

有一个DLL加载。

A debugger.

The SysInternals Process Explorer tool can tell you which processes
have a DLL loaded.


>现在我遇到了一个问题,当我提供我开发的DLL到第三个部分应用程序时,它会崩溃
>Now I met with an issue that when I provide the DLL I developed to a 3rd
parth application, it will crash sometimes



什么样的崩溃?

What sort of crash?


>我想知道是否有一些方法来监控互动 -
例如我可以监视exe调用哪个类/方法,并且在我的DLL没有实现的同一时间。
我正在使用Visual Studio 2005来开发本机(非托管)C ++ DLL,而我通过COM接口将DLL的接口暴露给exe。
>I am wondering whether there are some methods to monitor the interactions --
e.g. I can monitor which class/method the exe is invoking and at the same
time my DLL has not implemented.
I am using Visual Studio 2005 to develop native (unmanaged) C++ DLL, and I
expose the interface of the DLL to exe through COM interface.



如果您有其他应用程序调用的虚拟方法,请添加一些诊断日志记录,以便您拥有更好的

想法发生了什么。


Dave

If you''ve got dummy methods that you fear are being called by the
other application, add some diagnostic logging so you have a better
idea what''s going on.

Dave


嗨David,

你是什么意思*调试器*和* SysInternals Process Explorer工具*?

Visual Studio 2005中的东西?

问候,

George


" David Lowndes"写道:
Hi David,
What do you mean *debugger* and *The SysInternals Process Explorer tool*?
Something in Visual Studio 2005?
regards,
George

"David Lowndes" wrote:

是否有任何工具或其他方法可用于监控哪些

类/方法exe访问DLL?
Are there any tool or other methods which could be used to monitor which
class/method exe is accessing a DLL?



调试器。


SysInternals Process Explorer工具可以告诉你

有哪些进程一个DLL加载。


A debugger.

The SysInternals Process Explorer tool can tell you which processes
have a DLL loaded.


现在我遇到了一个问题,当我提供我开发的DLL到第三个

parth应用程序时,它会有时崩溃
Now I met with an issue that when I provide the DLL I developed to a 3rd
parth application, it will crash sometimes



什么样的崩溃?


What sort of crash?


我想知道是否有一些方法来监控互动 -

例如我可以监视exe调用哪个类/方法,并且我的DLL没有实现同样的时间。

我使用Visual Studio 2005来开发本机(非托管) C ++ DLL,我和
通过COM接口公开DLL的接口到exe。
I am wondering whether there are some methods to monitor the interactions --
e.g. I can monitor which class/method the exe is invoking and at the same
time my DLL has not implemented.
I am using Visual Studio 2005 to develop native (unmanaged) C++ DLL, and I
expose the interface of the DLL to exe through COM interface.



如果您有其他应用程序调用的虚拟方法,请添加一些诊断日志记录,以便您拥有更好的

想法发生了什么。


Dave


If you''ve got dummy methods that you fear are being called by the
other application, add some diagnostic logging so you have a better
idea what''s going on.

Dave


>你是什么意思*调试器*和* SysInternals Process Explorer工具*?
>What do you mean *debugger* and *The SysInternals Process Explorer tool*?

> Visual Studio 2005中有什么东西?
>Something in Visual Studio 2005?



VS2005集成了调试器 - 只需按F5即可在调试器下运行程序




Process Explorer是由

SysInternals(现为MS的一部分)提供的宝贵的免费工具之一。

http://www.microsoft.com/technet/sys...s/default.mspx


Dave

VS2005 has the debugger integrated - just press F5 to run your program
under the debugger.

Process Explorer is one of the invaluable free tools supplied by
SysInternals (now part of MS).

http://www.microsoft.com/technet/sys...s/default.mspx

Dave


这篇关于如何监控exe和dll的交互?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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