Login  
Search All Forums
Dart Home | PowerTCP Telnet for .NET | Custom Development Reply | PowerTCP Telnet for .NET Topics | Forums   
AuthorForum: PowerTCP Telnet for .NET
Topic: System.AccessViolationException with Vista
khochschild
keith.hochschild@getronics.com

From: Minneapolis, MN USA
Posts: 1
Member Since: 08/18/08
posted August 18, 2008 2:11 PM

I have come across this problem with the Telnet Tool after upgrading to Vista.


An unhandled exception of type 'System.AccessViolationException' occurred in AxInterop.DartTelnet.dll

Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.


I am using Visual Studio 2005 standard to build the applications. I have had no problems until I changed to Microsoft Vista. Any suggestions?
ja928

From: Canton, OH USA
Posts: 17
Member Since: 03/31/04
posted October 24, 2008 5:32 PM

Can you provide more detail about OS and development environment? I am getting a similar problem with adding a Telnet Tool for ActiveX version 1.0 to a Windows Form. My application will run, but I cannot view the form in the Visual Studio 2008 designer on Vista.

I was thinking that it may be a version problem. Can anyone shed light on which versions run on Vista?
Jason Farrar (Admin)

From: Oneida, NY USA
Posts: 223
Member Since: 07/24/07

Extra Support Options
Custom Application Development

posted October 24, 2008 5:53 PM

This is related to the enhanced DEP functionality in Vista and XP SP3. What you need to do is set the NXCOMPAT bit to Not compatible in your project settings. Basically what is going on is that old versions of ATL (2003 and under) use non compatible "thunks" that is it writes executable code into memory that isn't labeled executable, when this happens in Vista or XP SP3 it can cause the errors you are experiencing. Note that we have not been able to replicate the issue in our testing environment and can't vouch for any fix but are fairly confident that this is the cause of the problem.

Here are a couple of blog posts about this:
http://blogs.msdn.com/gauravb/archive/2008/09/23/disable-dep-on-applications.aspx
http://blogs.msdn.com/ed_maurer/archive/2007/12/14/nxcompat-and-the-c-compiler.aspx
http://blogs.microsoft.co.il/blogs/sasha/archive/2007/12/21/dep-nxcompat-net-2-0-sp1.aspx

------
-Non-current subscribers must contact sales@dart.com to update subscription and receive continued support as needed.
------

Reply | PowerTCP Telnet for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX