PrinterQueueWatch on x64 windows

Oct 1, 2009 at 12:43 AM

Hello guys, anyone knows if this component has issues on 64 bits operating system?

I'm getting a strange message after i install windows vista home premium 64 bits and tried to compile this component on my application:

System.InvalidOperationException was unhandled

Source="monitor"

StackTrace:

em WindowsApplication1.My.MyProject.MyForms.Create__Instance__[T](T Instance) na 17d14f5c-a337-4978-8281-53493378c1071.vb:linha 190

em WindowsApplication1.My.MyProject.MyForms.get_PrintingMonitor()

em WindowsApplication1.My.MyApplication.OnCreateMainForm() na C:\Users\Pereira\Documents\Visual Studio 2008\Projects\monitor\monitor\My Project\Application.Designer.vb:linha 35

em Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()

em Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()

em Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)

em WindowsApplication1.My.MyApplication.Main(String[] Args) na 17d14f5c-a337-4978-8281-53493378c1071.vb:linha 81

em System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)

em Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()

em System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

em System.Threading.ThreadHelper.ThreadStart()

InnerException: System.AccessViolationException

Source="PrinterQueueWatch"

StackTrace:

em PrinterQueueWatch.SpoolerApi.OpenPrinter(String pPrinterName, Int32& phPrinter, PRINTER_DEFAULTS pDefault)

em PrinterQueueWatch.PrinterInformation..ctor(String DeviceName, PrinterAccessRights DesiredAccess, Boolean GetSecurityInfo, Boolean GetJobs)

em PrinterQueueWatch.PrinterInformation..ctor(String DeviceName, PrinterAccessRights DesiredAccess, Boolean GetJobs)

em PrinterQueueWatch.PrinterInformationCollection..ctor()

em WindowsApplication1.PrintingMonitor..ctor() na C:\Users\Pereira\Documents\Visual Studio 2008\Projects\monitor\monitor\PrintingMonitor.vb:linha 109

anyone can helpme?

 

Coordinator
Oct 19, 2009 at 8:09 PM

It does not currently work on 64 bit Windows.

There is a thread a few down on this site that has a possible solution but I don't have a test rig on which to try it.