我从phonegap.com/start完成了部署到Windows手机的所有步骤。当我在我的模拟器上调试默认cordoba-1.7.0-Start项目时只有黑色背景当我运行这个应用程序时没有任何东西可见,但在控制台输出中我有应用程序启动和终止的信息:(有什么问题?
'UI Task' (Managed): Loaded 'C:\Program Files\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE\mscorlib.dll'
'UI Task' (Managed): Loaded 'System.Windows.RuntimeHost.dll'
'UI Task' (Managed): Loaded 'System.dll'
'UI Task' (Managed): Loaded 'System.Windows.dll'
'UI Task' (Managed): Loaded 'System.Net.dll'
'UI Task' (Managed): Loaded 'System.Core.dll'
'UI Task' (Managed): Loaded 'System.Xml.dll'
'UI Task' (Managed): Loaded '\Applications\Install\3B9113DD-7B84-4DC5-B767-33D200A5DC5B\Install\Cordova-1.7.0-Starter1.dll', Symbols loaded.
'UI Task' (Managed): Loaded 'Microsoft.Phone.dll'
'UI Task' (Managed): Loaded 'Microsoft.Phone.Interop.dll'
'UI Task' (Managed): Loaded '\Applications\Install\3B9113DD-7B84-4DC5-B767-33D200A5DC5B\Install\WP7CordovaClassLib.dll'
'UI Task' (Managed): Loaded 'System.Xml.Linq.dll'
'UI Task' (Managed): Loaded 'System.Runtime.Serialization.dll'
Updating IsolatedStorage for APP:DeviceID :: 000348be-f5cf-45c6-a4c0-7e6dce0244c6
Writing data for /app/www\cordova-1.7.0.js and length = 117960
Writing data for /app/www\index.html and length = 1100
Writing data for /app/www\master.css and length = 322
GapBrowser_Navigating to :: /app/www/index.html
GapBrowser_Navigated :: /app/www/index.html
'UI Task' (Managed): Loaded 'System.ServiceModel.Web.dll'
'UI Task' (Managed): Loaded 'System.ServiceModel.dll'
ScriptNotify :: Info:document.addEventListener event named DOMContentLoaded
ScriptNotify :: Info:document.addEventListener event named deviceready
ScriptNotify :: Info:Installing capture
The thread '' (0xfcd0042) has exited with code 0 (0x0).
Log:"GotDeviceInfo :: 7.10.7720"
The thread '' (0xf1a0046) has exited with code 0 (0x0).
The thread '' (0xe010036) has exited with code 0 (0x0).
Log:"onDeviceReady. You should see this message in Visual Studio's output window."
The thread '' (0xf6a005e) has exited with code 0 (0x0).
答案 0 :(得分:1)
Windows Phone模拟器需要具有WDDM 1.1驱动程序的DirectX 10或更高版本的显卡。我假设您在模拟器的第一次启动时收到错误消息,表明您的图形适配器不能用于模拟器的所有功能
如果您的图形适配器不完全支持DirectX 10或没有WDDM 1.1驱动程序,您将只看到黑屏而不是渲染的网页。这也会影响使用MultiScaleImage的所有控件,包括webbrowser控件。据我所知,目前还没有解决方案。
答案 1 :(得分:0)
该应用似乎正在加载,您可以发布您正在运行的HTML吗?
BTW:这样的消息:线程''(0xf6a005e)退出了代码0(0x0)。 实际上并不意味着应用退出,这些是退出的线程,您可以在Visual Studio的设置中隐藏这些消息。