Logging calls? Process Explorer?

Discussion in 'other software & services' started by Agrajag, Jun 22, 2009.

Thread Status:
Not open for further replies.
  1. Agrajag

    Agrajag Registered Member

    Joined:
    May 25, 2007
    Posts:
    29
    I have a program that crashes on load. The author, who doesn't speak very good English, said it would help if I could log the calls it's making with "a tool like sysinternals" to see what the last call is before it crashes.

    I'm assuming he means Process Explorer.

    First, can anyone tell me if my guess is right on this?

    Second, how do you go about logging a program that crashes and thus, doesn't appear in the list of processes when you run such a tool?

    Any help would be greatly appreciated.
     
  2. BlueZannetti

    BlueZannetti Registered Member

    Joined:
    Oct 19, 2003
    Posts:
    6,590
    I would have said Process Monitor.

    Blue
     
  3. Agrajag

    Agrajag Registered Member

    Joined:
    May 25, 2007
    Posts:
    29
    Okay, thanks but same questions then....
     
  4. BlueZannetti

    BlueZannetti Registered Member

    Joined:
    Oct 19, 2003
    Posts:
    6,590
    Download the application, read the help file (look at boot logging for example), and that should get you started unless I'm missing something.

    Blue
     
  5. Agrajag

    Agrajag Registered Member

    Joined:
    May 25, 2007
    Posts:
    29
    Thanks Blue. The problem is that, for example, this is all that is said about "Logging":

    ---------------------------
    Logging
    By default, Process Monitor uses virtual memory to store captured data. Use the Backing Files dialog, which you access from the File menu, to configure Process Monitor to store captured data in files on disk. Enabling this option has Process Monitor log data to the disk in its native PML format as it captures it.

    The Backing Files dialog also displays diagnostic information, including the number of events captured, processes defined and the capture thread's load status.
    ---------------------------

    Not exactly a font of information there to tell me how to capture calls from a program that isn't even in the list itself. I was hoping someone with first-hand experience might be on Wilder's and be willing to provide a solid example of how this is done.
     
  6. Windchild

    Windchild Registered Member

    Joined:
    Jun 16, 2009
    Posts:
    571
    Just execute Process Monitor and enable "Capture Events" (it's there on the toolbar, and in the File menu too) if it isn't already enabled (if it is enabled, you'll immediately start seeing a long list of stuff in the Process Monitor window). It will start capturing them, so leave it running. Then execute the program that crashes on load. If it crashes, good. Then return to the Process Monitor window and stop capturing events. Tada, there's your log, and it's probably about 150 000 lines long, too. At that point, you might want to save the log file (use the PML format so you can reload the data in Process Monitor later if you feel like it).

    Then, you can play with the data, using filter/highlight to look for the processes of your crashing program to see what it's doing and ignoring the "noise" from other processes.
     
  7. Agrajag

    Agrajag Registered Member

    Joined:
    May 25, 2007
    Posts:
    29
    Thanks Wind. Much appreciated.
     
Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.