I am trying to run a GUI test using pytest and pywinauto. When I run the code normally, it does not complain. However, when I am doing it via pytest, it throws a bunch of errors: Windows fatal exception: code 0x8001010d Note that the code still executes without problems and [...] read more
I have this piece of code: var searcher = new ManagementObjectSearcher("root\\CIMV2", "SELECT * FROM Win32_DiskDrive"); foreach (var queryObj in searcher.Get().Cast<ManagementObject>()) //Error points to this line Basically what this code does is, it runs through a list of connected devices and looks if the one i want is connected. If I [...] read more
I am trying to get Automation Element using: var automationElement = AutomationElement.FromPoint(location); And I am geting error. COM exception was unhandled: An outgoing call cannot be made since the application is dispatching an input-synchronous call. (Exception from HRESULT: 0x8001010D (RPC_E_CANTCALLOUT_ININPUTSYNCCALL)) Can any one help me out with this please..... read more
Cordova UAP app on Windows 10 crashes when minimizing and maximizing it. REPRODUCE STEPS 1. Build cordova app using version 6.3.1 and windows engine version 4.4.3 2. Install the appx on Windows 10 (having store Version 11610.1001.23.0) 3. Open the app 4. Minimize and Maximize the app 5. Repeat step [...] read more
I am trying to query attached USB devices as follows (C#, .NET 4.5, Win10) using (ManagementObjectSearcher mos = new ManagementObjectSearcher("select DeviceID, Model from Win32_DiskDrive where InterfaceType='USB'")) { ManagementObjectCollection coll = mos.Get(); foreach (ManagementObject drive in coll) { } } The interesting part is that I get an InvalidCastException on the [...] read more
I am getting the following error whenever I open my package: =================================== An outgoing call cannot be made since the application is dispatching an input-synchronous call. (Exception from HRESULT: 0x8001010D (RPC_E_CANTCALLOUT_ININPUTSYNCCALL)) (Microsoft Visual Studio) ------------------------------ Program Location: at Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSComponentMetaData100.get_Name() at Microsoft.SqlServer.IntegrationServices.Designer.View.Automation.GraphElementControlAutomationPeer.GetNameCore() at System.Windows.Automation.Peers.AutomationPeer.GetName() at System.Windows.Automation.Peers.ItemAutomationPeer.GetNameCore() at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree() at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree() at [...] read more
I'm building an application in C# that has a static class which initiate a COM class and handles some event handlers of another class that hooks keyboard. When I call a method of the COM class from a button event handler in my WPF window, the method works without any [...] read more
While running my C# application i have an error containing the following exception text: System.Data.OleDb.Exception (0x8001010D): An outgoing call cannot be made since the application is dispatching an input-synchronous call. at System.Data.OleDb.OleDbServicesWrapper.GetDataSource(OleDbConnectionString constr, DataSourceWrapper& datasrcWrapper) at ... Note: the computer i used to write application code installed Access 2013, and [...] read more
I am using WebBrowser control on a WinForm. When my form is minimized the control throws an exception, > An outgoing call cannot be made since the application is dispatching an > input-synchronous call. (Exception from HRESULT: 0x8001010D > (RPC_E_CANTCALLOUT_ININPUTSYNCCALL)) I have stated windowstate as, this.WindowState = FormWindowState.Minimized; Does anyone [...] read more
I have an application wherein I am hosting multiple types of content (images, PowerPoint presentations, videos etc) in a kiosk-type app. The user has to be able to page back and forth between these bits of content, preferably using gestures of the touchscreen on the kiosk, i.e. tap one side [...] read more
I have an app Winform which hooks the keyboard with a global hook to catch the Ctrl+Win+left or Ctrl+Win+right keystrokes private void SetHook() { // Set system-wide hook. _hookHandle = SetWindowsHookEx( Constants.WHKEYBOARDLL, KbHookProc, (IntPtr)0, 0); } then from KBHookProc I call another procedure in which I call the property Desktop.Count [...] read more
When I try to get all running processes inside mouse event handler it throws an exception. First I thought that the problem persists because I put async keyword before mouse event handler, but it was not the case, as the exception is thrown also for non-asynchronous methods. I'm using MouseKeyHook [...] read more
I am developing a program that uses a hardware (I am using Arduino) to collect data and then store the data in the database. As there is no way to get assured that the serialport is receiving the data, I am trying to implement some code snippet to declare hardware [...] read more
I'm creating add-in for Microsoft office products and just want to execute time consumable tasks on background. In my situation more contents office program has, more time add-in requires to done its job. So I need to execute a such job in background while user is doing other tasks or [...] read more
I have created a WinForms application which uses BackgroundWorker. The methods in BackgroundWorer displays messages on a RichTextBox. The _TextChanged event handler scrolls to the end of the RichTextBox. Now the problem is that, I get an > UnHandled COMException : 0x8001010D (RPC_E_CANTCALLOUT_ININPUTSYNCCALL) when RichTextBox.ScrollToCaret() is called from the _TextChanged [...] read more
I wrote a VB.NET Windows Forms app that requests a string from an out-of-process COM object every time the activate event fires. My form has two tabs, so I need to programmatically flip to the correct tab every time my window gains focus. Works fine, until... By chance, someone ran [...] read more
I have some code that I found on this site which seems to work great most of the time. Here is the code : Private Function GetProcessOwner(processId As Integer) As String Try Dim query = "Select * From Win32_Process Where ProcessID = " & processId Dim searcher = New ManagementObjectSearcher(query) [...] read more
I posted a question some time ago on MSDN forum involving the following code. It creates on a new thread, reads thumbnail from a file and displays it through Dispatcher. private void Button_Click_1(object sender, RoutedEventArgs e) { Task.Factory.StartNew(async()=>{ var localFolder = Windows.Storage.ApplicationData.Current.LocalFolder; ; var file = await localFolder.CreateFileAsync(".txt", Windows.Storage.CreationCollisionOption.OpenIfExists); var [...] read more
I have a two ActiveX servers I need to handle it's events. the first one I got to work with no problems but with the second one I get a error once I try to assign a new event. The one that works the code is below: public delegate void [...] read more