http://bugs.winehq.org/show_bug.cgi?id=24461 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |focht(a)gmx.net Component|-unknown |wmi&wbemprox --- Comment #1 from Anastasius Focht <focht(a)gmx.net> 2010-09-19 07:08:06 CDT --- Hello, dupe of bug 20651 Your snippet is too short, missing the interesting bits (e.g. managed backtrace). --- snip --- Unhandled Exception: System.Management.ManagementException: Generic failure at System.Management.ManagementScope.Initialize() at System.Management.ManagementObjectSearcher.Initialize() at System.Management.ManagementObjectSearcher.Get() at BmLauncher.Program.GetProcessOwner(Int32 processId) at BmLauncher.Program.GetPrevInstance() at BmLauncher.Program.Main() wine: Unhandled exception 0xe0434f4d at address 0x7b837272 (thread 0009), starting debugger... ... --- snip --- The app code doesn't guard WMI queries with exception handler hence the crash (never expects WMI to fail). --- snip managed code --- ManagementObjectSearcher searcher = new ManagementObjectSearcher("Select *
From Win32_Process Where ProcessID = " + ((int) processId)); foreach (ManagementObject obj2 in searcher.Get()) { string[] strArray = new string[] { string.Empty }; if (Convert.ToInt32(obj2.InvokeMethod("GetOwner", strArray)) == 0) { return strArray[0]; } }
--- snip managed code --- Please research bugzilla more carefully before reporting WMI failures ... there already exist bugs targeting WMI. Regards -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.