PC Review


Reply
Thread Tools Rate Thread

Query Win32_PrintJob causes spoolsv.exe to grow and brings down system?

 
 
F. C.
Guest
Posts: n/a
 
      14th Apr 2006
Is this causing spoolsv.exe to grow in memory? Any workaround?
==================
SELECT * FROM __InstanceCreationEvent WITHIN 1 WHERE TargetInstance ISA
'Win32_PrintJob'
==================


Finally narrow down to this -

Why the follwing few lines of codes cause spoolsv.exe keep growing / eating
memory? It checks Win32_PrintJob once every second and I guess that has
something to do with spoolsv.exe. It keeps growing and eventually bring
down
my systems (WinServer 2003 and XP home in my case)

How can I stop it from growing? Any best practice sample codes of doing
this?

Thanks

==========
Imports System
Imports System.Management
.......

Dim watcherPrintJob As ManagementEventWatcher
Dim scope As New ManagementScope("root\CIMV2")
Dim qryPrintJob As New WqlEventQuery("SELECT * FROM
__InstanceCreationEvent WITHIN 1 WHERE TargetInstance ISA 'Win32_PrintJob'")
watcherPrintJob = New ManagementEventWatcher(scope, qryPrintJob)
watcherPrintJob.Start()
scope = Nothing
qryPrintJob = Nothing
watcherPrintJob.Dispose()
===================


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I force all fields to grow to the largest "can grow" size jasonfoz@gmail.com Microsoft Access Reports 9 1st Feb 2008 08:00 PM
Pressing Left Alt key brings up "My Computer" Right brings up Calc =?Utf-8?B?Qml0c2t5?= Windows XP General 0 4th Aug 2007 08:46 PM
Grow a range by # of lines by right click on grow tool & type num =?Utf-8?B?RGF2aWQgVGh5ZXI=?= Microsoft Excel Misc 12 15th Aug 2006 11:31 PM
FYI - PaperSize information in Win32_PrintJob, MSDN library F. C. Windows XP WMI 0 15th Apr 2006 01:08 AM
WMI Win32_PrintJob and windows service =?Utf-8?B?TWF4QmljaQ==?= Microsoft C# .NET 0 25th May 2005 08:05 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:55 AM.