0
我試圖運行在Pocket PC模擬器VC2005這個代碼,但它給了我一個win32unhandled例外未處理的異常呼籲Pocket PC模擬器應用程序.exe文件
private void button1_Click(object sender, EventArgs e)
{
System.Diagnostics.Process Proc = new System.Diagnostics.Process();
Proc.StartInfo.FileName = @"WM_flowm.exe";
Proc.Start();
}
的WM_flowm.exe是FLITE它可以在Windows Mobile上運行,沒有問題,但我需要在我的C#代碼中調用它。
調用堆棧
System.dll!System.Diagnostics.Process.StartWithShellExecuteEx(System.Diagnostics.ProcessStartInfo startInfo = {System.Diagnostics.ProcessStartInfo}) + 0xcb bytes
System.dll!System.Diagnostics.Process.Start() + 0x3f bytes
停在這裏===
try_DLL.exe!try_DLL.Form1.button1_Click(對象發件人= {文本= 「Button1的」},System.EventArgs發送= {System.EventArgs})第29行+ 0x6從字節C#
System.Windows.Forms.dll!System.Windows.Forms.Control.OnClick(System.EventArgs e = {System.EventArgs}) + 0x15 bytes
System.Windows.Forms.dll!System.Windows.Forms.Button.OnClick(System.EventArgs e = {System.EventArgs}) + 0x32 bytes
System.Windows.Forms.dll!System.Windows.Forms.ButtonBase.WnProc(Microsoft.AGL.Forms.WM wm = WM_BUTTON_NOTIFYCLICKED, int wParam = 0, int lParam = 0) + 0x17 bytes
System.Windows.Forms.dll!System.Windows.Forms.Control._InternalWnProc(Microsoft.AGL.Forms.WM wm = WM_BUTTON_NOTIFYCLICKED, int wParam = 0, int lParam = 0) + 0x9 bytes
System.Windows.Forms.dll!Microsoft.AGL.Forms.EVL.EnterMainLoop(System.IntPtr hwnMain = 1114117)
System.Windows.Forms.dll!System.Windows.Forms.Application.Run(System.Windows.Forms.Form fm = {try_DLL.Form1}) + 0x1a bytes
try_DLL.exe!try_DLL.Program.Main() Line 15 + 0xa bytes C#
在我們可以幫助您之前,您需要提供有關您收到的例外情況的更多信息。 – 2011-05-15 22:28:19
你可以發佈堆棧跟蹤嗎? – 2011-05-15 22:37:40
我添加了調用堆棧,並且沒有更多信息,只是爲了知道.exe文件僅適用於小型設備。 – emykindman 2011-05-16 02:51:11