sábado, 26 de maio de 2018

UWP: System.Exception: 'The application called an interface that was marshalled for a different thread. (Exception from HRESULT: 0x8001010E (RPC_E_WRONG_THREAD))'


System.Exception: 'O aplicativo chamou uma interface marshalled para um outro thread. (Exception from HRESULT: 0x8001010E (RPC_E_WRONG_THREAD))'

System.Exception: 'The application called an interface that was marshalled for a different thread. (Exception from HRESULT: 0x8001010E (RPC_E_WRONG_THREAD))'



            await this.Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
            {
                textbox1.Header = e;
            }
            );

Nenhum comentário :