Sign in to follow this  
Followers 0
dcunited

AccessViolationException found when using in C#.Net

2 posts in this topic

Sample Code:

private static AutoItX3Class autoIT = new AutoITXClass();

autoIT.WinExists(locCurTitle, locCurText);

This code works fine if an application meets these criteria, if it does not, it throws the AccessViolationException. The expected result is of course that it would return a 0 meaning it did not find the application. Any ideas what I can do to fix this?

Share this post


Link to post
Share on other sites



Hi,

Maybe it's not relevant, but just in case.

I encountered lots of access violation exception in some third parties applications (at least one coded in c#) and Autoit scripts of my own on some of my computers running xp sp2.

After a few checks and some googling on the web I found a way to get rid of all these errors. Please take a look at http://support.microsoft.com/kb/918165

Despite it was not listed, removing MS KB908531 fixed all problems for my scripts and other applications.

Hope it will at least give you an idea...


registry victim

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0