Forum posts for WmiPrvSE.exe

Why is a WPF TextBox sending wmiprvse.exe out of control?

I have been working on an application, and was trying to figure out why my CPU usage was hitting 80-100%.

I narrowed it down to the TextBox controls in my WPF page. It turns out that if I put focus on them it would start hammering the wmiprvse.exe process. This sent my overall CPU usage up to 100%.

I then created a test WPF application to see whether it may have been underlying code, or whether it is just the TextBox that is the culprit. Turns out, IT IS!

My test form only one text box, but as soon as I put focus on it to start editing some text, my CPU rockets to 100%.

Has anyone else experienced this problem, and do you know of any workaround?

Update

Well I have figured it out.

In another application I was using a ManagementEventWatcher. I was querying every second so I may have been creating a backlog somehow.

Here is a little sample of what I removed:

private ManagementEventWatcher processCreateWatcher = new ManagementEventWatcher();
processCreateWatcher.Query = new WqlEventQuery('__InstanceCreationEvent', interval, 'TargetInstance isa 'Win32_Process'');
processCreateWatcher.EventArrived += new EventArrivedEventHandler(processCreateWatcher_EventArrived);
processCreateWatcher.Start();


Next time I better be careful when using the Management id!

View complete forum thread with replies

Other posts related to WmiPrvSE.exe

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

Pipe answer from tasklist to check mem usage of process and kill if exceeding threshold
SQL Server 2008 R2 - Can't open a connection
Want to script Windows WMI (wmiprvse.exe) to release handle on file
Parse a task list
WMIPRVSE needs to be run under network services by default
Why is a WPF TextBox sending wmiprvse.exe out of control?
CSV formatting in batch files

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.