Forum posts for dllhost.exe

PrintTicket DllHost.exe Memory Climbs

I'm using PrintTickets to print a large number of WPF objects and things are printing fine. We do have a situation that has been reported where the program is using a ton of the dllhost.exe memory and climbs until the machine eventually crashes. I've narrowed it down to creating a PrintTicket and the printqueue.getprintcapabilitiesasxml(). Each time these are called it jumps the memory usage of the dllhost.exe each time by sometimes 3+ MB. Can anyone tell me either how to avoid this if possible or if there is a way to clear it after i know it is being used?

Update: I've created a project with simple this code.

for (int i = 0; i < 100; i++)
{
using (System.Printing.PrintQueue pQueuePrnt =
new LocalPrintServer().GetPrintQueue('HP LaserJet 9050 PCL 5'))
{
using (MemoryStream printerCapXmlStream = pQueuePrnt.GetPrintCapabilitiesAsXml())
{
Console.WriteLine(printerCapXmlStream.Length);
}
}
}


This will result in almost 60 MB in the dllhost.exe that will never go away.

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 &ldquo;dllhost.exe&rdquo;?
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&hellip;
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.