By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,524 Members | 1,593 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,524 IT Pros & Developers. It's quick & easy.

System.AccessViolationException

P: 1
I get this error when I use a c++ dll in my project.

I import the dll function with the following code
Declare Function B_C113_initial Lib "C113.dll" Alias "_C113_initial" (ByVal existobj As Integer, ByVal DeviceTb As Long) As Integer

when I call the function,
it prompt this error

An unhandled exception of type 'System.AccessViolationException' occurred in *.exe

Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Mar 22 '12 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.