单击可执行文件时,应用程序失败,但在IDE中运行正常 [英] Application Fails when executable is clicked, but runs fine in IDE

查看:122
本文介绍了单击可执行文件时,应用程序失败,但在IDE中运行正常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我已经构建了一个使用Groupwise(电子邮件客户端)API的应用程序.当我按F5时,它将按预期执行,一切都很好,当我使用ctrl + F5时,它将失败并出现访问冲突(请参阅下文).我尝试使用JIT调试,但是我从没看到源代码,只有程序集.在IDE中运行时,应用程序永不"失败并显示此错误.分组文档很少.怎么办,我该如何克服?让我知道是否还有其他我可以发布的信息.非常感谢-

**************异常文本**************
System.AccessViolationException:尝试读取或写受保护的内存.这通常表明其他内存已损坏.
在groupwise.Form1.Form1_Load(Object sender,EventArgs e)在C:\ Documents and Settings \ jriggs \ My Documents \ Visual Studio 2005 \ Projects \ groupwise \ groupwise \ Form1.vb:第22行在System.EventHandler.Invoke(对象发件人,EventArgs e)在System.Windows.Forms.Form.OnLoad(EventArgs e)在System.Windows.Forms.Form .OnCreateControl()
在System.Windows.Forms.Control.CreateControl(布尔值fIgnoreVisible)
在System.Windows.Forms.Control.CreateControl()在System.Windows.Forms.Control.WmShowWindow(在System.Windows.Forms.Control.WndProc(Message& m)
中的Message& m)
在System.Windows.Forms中的System.Windows.Forms.ScrollableControl.WndProc(Message& m)
中. System.Windows.Forms.Form.WmShowWindow(Message& m)
的ContainerControl.WndProc(Message& m)
,System.Windows.Forms.Form.WndProc(Message& m)
的ContainerControl. Windows.Forms.Control.ControlNativeWindow.OnMessage (邮件和m)
在System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
在System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd,Int32 msg,IntPtr wparam,IntPtr lparam)


**************已加载的程序集**************
mscorlib
程序集版本:2.0.0.0
Win32版本:2.0.50727.42(RTM.050727-4200)
代码库:file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
- -------------------------------------
groupwise
程序集版本:1.0.0.0
Win32版本:1.0.0.0
代码库:file:///C:/Documents%20and%20Settings/jriggs/My%20Documents/Visual%20Studio%202005/Projects/groupwise/groupwise/bin/Release/groupwise.exe
----------------------------------------
Microsoft .VisualBasic
程序集版本:8.0.0.0
Win32版本:8.0.50727.42(RTM.050727-4200)
代码库:file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
------- ---------------------------------
系统
程序集版本:2.0.0.0
Win32版本:2.0.50727.42(RTM.050727-4200)
代码库:file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
------ ----------------------------------
System.Windows.Forms
程序集版本:2.0. 0.0
Win32版本:2.0.50727.42(RTM.050727-4200)
代码库:file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows .Forms.dll
----------------------------------------
System.Drawing
程序集版本:2.0.0.0
Win32版本:2.0.50727.42(RTM.050727-4200)
代码库:file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing /2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
------------------------------------ ----
System.Configuration
程序集版本:2.0.0.0
Win32版本:2.0.50727.42(RTM.050727-4200)
代码库:file:///C:/WINDOWS/程序集/GAC_MSIL/System.Configuration/2 .0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
------------------------------------- ---
System.Xml
程序集版本:2.0.0.0
Win32版本:2.0.50727.42(RTM.050727-4200)
代码库:file:///C:/WINDOWS/assembly /GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
------------------------------ ----------
System.Runtime.Remoting
程序集版本:2.0.0.0
Win32版本:2.0.50727.42(RTM.050727-4200)
CodeBase:文件: ///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------- -----------------------
Interop.GroupwareTypeLibrary
程序集版本:1.0.0.0
Win32版本:1.0.0.0
代码库:file:///C:/Documents%20and%20Settings/jriggs/My%20Documents/Visual%20Studio%202005/Projects/groupwise/groupwise/bin/Release/Interop.GroupwareTypeLibrary.DLL
---- ------------------------------------


I've built an app that uses the Groupwise (email client) API. It will perform as expected when I hit F5, everything is good, when I use ctrl+F5 it fails with an access violation (see below). I tried to used JIT debugging, but I never get to see the source code, just the assembly. The app *never* fails with this error when run in the IDE. Groupwise documentation is sparse. What gives, how can I get past this? Let me know if there's any other info I can post. Many Thanks-

************** Exception Text **************
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at groupwise.Form1.Form1_Load(Object sender, EventArgs e) in C:\Documents and Settings\jriggs\My Documents\Visual Studio 2005\Projects\groupwise\groupwise\Form1.vb:line 22
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
groupwise
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Documents%20and%20Settings/jriggs/My%20Documents/Visual%20Studio%202005/Projects/groupwise/groupwise/bin/Release/groupwise.exe
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Runtime.Remoting
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
Interop.GroupwareTypeLibrary
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Documents%20and%20Settings/jriggs/My%20Documents/Visual%20Studio%202005/Projects/groupwise/groupwise/bin/Release/Interop.GroupwareTypeLibrary.DLL
----------------------------------------

推荐答案

<身体> jriggs写道: <身体>

**************异常文本**************
System.AccessViolationException:尝试读取或写入受保护的内存.这通常表明其他内存已损坏.
在groupwise.Form1.Form1_Load(Object sender,EventArgs e)在C:\ Documents and Settings \ jriggs \ My Documents \ Visual Studio 2005 \ Projects \ groupwise \ groupwise \ Form1.vb:第22行
 jriggs wrote:

************** Exception Text **************
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at groupwise.Form1.Form1_Load(Object sender, EventArgs e) in C:\Documents and Settings\jriggs\My Documents\Visual Studio 2005\Projects\groupwise\groupwise\Form1.vb:line 22


这篇关于单击可执行文件时,应用程序失败,但在IDE中运行正常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆