windows 8 app Share charm hangs on “Getting info from {AppName}”

我们两清 提交于 2019-12-10 13:14:06

问题


var dataTransferManager = Windows.ApplicationModel.DataTransfer.DataTransferManager.getForCurrentView();
dataTransferManager.addEventListener("datarequested", function (e) {
  var request = e.request;
  request.data.properties.title = "Share Link Example";
  request.data.properties.description = "A demonstration that shows how to add a link (URI) to share.";
  request.data.setUri(new Windows.Foundation.Uri("http://www.google.com"));
});

For some reason, if I click on the Share charm, it just hangs on "Getting info from GodVine" (GodVine is the name of my app). It used to work, then all the sudden stopped working. Am I doing something wrong?


回答1:


I suspect you stopped a debug session while on a breakpoint inside the datarequested handler. If you stop a debug session inside of the datarequested handler, there is a bug that breaks the Share Broker. The "easiest" way to reset thing is use Task Manager to stop and restart explorer.exe.




回答2:


on an elevated command prompt - taskkill also comes handy.

- taskkill /F /IM explorer.exe
- start explorer.exe


来源:https://stackoverflow.com/questions/13847730/windows-8-app-share-charm-hangs-on-getting-info-from-appname

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!