Re: Application Fails when executable is clicked, but runs fine in IDE
- From: kimiraikkonen <kimiraikkonen85@xxxxxxxxx>
- Date: Wed, 6 Feb 2008 09:14:23 -0800 (PST)
On Feb 6, 6:47 pm, "jr" <jriggs.remov...@xxxxxxxxxxxxx> wrote:
kimiraikkonen wrote:
On Feb 6, 5:49 pm, "jr" <jriggs.remov...@xxxxxxxxxxxxx> wrote:
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.
Also the Groupwise API is referenced through a dll which is a COM
object which I added into the project 'references'.
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%2
0Stu
dio%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__
b03f 5f7f11d50a3a/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__b77a5c561934e08
9/Sy stem.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__b
77a5 c561934e089/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__b03f5f7
f11d 50a3a/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__b
03f5 f7f11d50a3a/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__b77a5c56193
4e08 9/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
__b7 7a5c561934e089/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%2
0Stu
dio%202005/Projects/groupwise/groupwise/bin/Release/Interop.Groupwar
eTyp eLibrary.DLL ----------------------------------------
What do you mean by calling runs fine in IDE? Have you run in debug
mode?
If I open Visual Studio, open the project, and click the Green Arrow in
the top toolbar, the application will run fine. But when I build the
app and try to run the .exe in the bin directory, I get the above
error. Does that explain?
--
This green arrow does mean that the app's being"debugged". You should
be able to see the same error in debug mode if you didn't edit within
your app something unsual during runtime.
Your error message says:"Attempted to read or write protected
memory. This is often an indication that other memory is corrupt." I
have no point-idea on this message which may mean more than one thing.
Maybe you'd better Googling the message or API doumentation, faq.
.
- References:
- Prev by Date: Databinding to ToolStripCombobox fails
- Next by Date: Re: Application Fails when executable is clicked, but runs fine in IDE
- Previous by thread: Re: Application Fails when executable is clicked, but runs fine in IDE
- Next by thread: Re: Application Fails when executable is clicked, but runs fine in IDE
- Index(es):
Relevant Pages
|