Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6355318C4D for ; Mon, 25 May 2015 07:03:24 +0000 (UTC) Received: (qmail 64338 invoked by uid 500); 25 May 2015 07:03:18 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 64310 invoked by uid 500); 25 May 2015 07:03:18 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 64295 invoked by uid 99); 25 May 2015 07:03:18 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 May 2015 07:03:18 +0000 Date: Mon, 25 May 2015 07:03:17 +0000 (UTC) From: "Sergey Grebnov (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CB-8758) WP8: splashscreen.hide() causes exception to be thrown MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-8758?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sergey Grebnov resolved CB-8758. -------------------------------- Resolution: Fixed Assignee: Sergey Grebnov (was: Jesse MacFadyen) > WP8: splashscreen.hide() causes exception to be thrown > ------------------------------------------------------ > > Key: CB-8758 > URL: https://issues.apache.org/jira/browse/CB-8758 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin SplashScreen, WP8 > Reporter: Dan Polivy > Assignee: Sergey Grebnov > > When calling the hide() method on splashscreen, on WP8, the call to Popup.IsOpen throws a TargetInvocationException due to invalid cross-thread access. > I don't know the specifics, but most likely the threading model for how plugins are executed has changed over time, exposing this exception. > + [System.Reflection.TargetInvocationException] {System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.UnauthorizedAccessException: Invalid cross-thread access. > at MS.Internal.XcpImports.CheckThread() > at System.Windows.DependencyObject.GetValueInternal(DependencyProperty dp) > at System.Windows.FrameworkElement.GetValueInternal(DependencyProperty dp) > at System.Windows.Controls.Primitives.Popup.get_IsOpen() > at WPCordovaClassLib.Cordova.Commands.SplashScreen.hide(String options) > --- End of inner exception stack trace --- > at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) > at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) > at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) > at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) > at WPCordovaClassLib.Cordova.Commands.BaseCommand.InvokeMethodNamed(String methodName, Object[] args) > at WPCordovaClassLib.Cordova.Commands.BaseCommand.InvokeMethodNamed(String callbackId, String methodName, Object[] args) > at WPCordovaClassLib.Cordova.NativeExecution.<>c__DisplayClass6.b__2()} System.Reflection.TargetInvocationException -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org