how to monitor exe and dll interactions?

This is a discussion on how to monitor exe and dll interactions? within the C Programming forums, part of the General Programming Boards category; Hello everyone, Are there any tool or other methods which could be used to monitor which class/method exe is accessing ...

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    1,579

    how to monitor exe and dll interactions?

    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

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    If you don't have a function in your DLL, then it shouldn't be crashing - at least if the app is written correctly.

    If you use the debugger, what's on the stack when it fails? If it's CALLING a null-pointer [function not in the DLL] then it should be fairly obvious that this is happening.

    I personally think it's more likely that the failure is that you are returning/producting something "bad" in your DLL - since this is a much harder case to check in the calling code - detecting that an exported function doesn't exist is basic good practice [not that ALL programmers do that sort of thing, of course].

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. non-MFC DLL with MFC app question.
    By Kempelen in forum Windows Programming
    Replies: 10
    Last Post: 08-20-2008, 07:11 AM
  2. dll communicating between each other
    By cloudy in forum C++ Programming
    Replies: 5
    Last Post: 06-17-2005, 02:20 AM
  3. DLL compiling question
    By Noose in forum Windows Programming
    Replies: 2
    Last Post: 12-16-2004, 06:16 AM
  4. DLL and std::string woes!
    By Magos in forum C++ Programming
    Replies: 7
    Last Post: 09-08-2004, 12:34 PM
  5. .lib vs .h vs .dll
    By Shadow12345 in forum C++ Programming
    Replies: 13
    Last Post: 01-01-2003, 04:29 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21