Forum posts for dllhost.exe

How to monitor a process that launches “dllhost.exe”?

updated

I have a problem related to Process.Start();
My program launches files as processes, like so:

Process processMonitor = new Process();
processMonitor.StartInfo.FileName = filePath; // Example: @'C: est.txt'
processMonitor.StartInfo.CreateNoWindow = true;
processMonitor.Exited += new EventHandler(Process_Exited);
processMonitor.EnableRaisingEvents = true;
processMonitor.Start();

// Handle Exited event and display process information.
private void Process_Exited(object sender, EventArgs e)
{
// This code is called on every exit, except images: (Windows Photo Viewer, *jpg, *png, *bmp etc.)
}


This successfully launches a process, notepad.exe with the correct file.
Catching the Exited event also works so basically i have everything in place to monitor the close event for the process.

Now for the problem...

When doing exactly the same, but now for an image:

processMonitor.StartInfo.FileName = filePath; // Example: @'C: est.jpg'


This is not successfull.. The process launches perfectly, But i can not detect if the process is ever closed. A little research shows me that a process called:


DLLHOST.EXE (COM Surrogate)


Is launched and i cannot detect the Exited event for this process.

Can anybody help me, or at least point me in the right direction?

View complete forum thread with replies

Other posts related to dllhost.exe

See Related Forum Messages: Follow the Links Below to View Complete Thread

Why cant I profile using vsperfmon by attaching to dllhost.exe?
How to monitor a process that launches “dllhost.exe”?
Out-of-Proc-COM-Server (x86): dllhost.exe looks in wrong registry path
generating dmp files from an inproc com dll running in dllhost.exe
dllhost.exe not available for debugging
Why do inetinfo.exe, dllhost.exe and aspnet_wp.exe all start under debugger on themselves an…
How to programmatically recycle a dllhost.exe process in COM+?
Debugging COM+ in Delphi 2009 : the dllhost.exe /ProcessID does not work
Dllhost.exe*32 is unable to release 32-bit resources during uninstallation on a 64 bit machine
debugging an inproc com server running in dllhost.exe
PrintTicket DllHost.exe Memory Climbs
How to launch COM server in separate dllhost process?

What is the carbon footprint of your coffee?

Is it low? Is it high? Can this things really kill the planet Earth? Maybe the answer will surprise you. Maybe not.