Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

System.Ace.Oledb.12.0 Attempted to read or write protected memory.

$
0
0

Hi,

I am reading information from a Microsoft Access database using the oledb dataprovider.

Sometimes there is a  error "Attempted to read or write protected memory." and my application is ended.

Using Visual studio 2010, installed office 2010 drivers, under windows7 64bit.
problem is there under framework 4 and 4.5.
Application is set to run in 32bit mode.

Is this a bug????

Dim Dbf = DbProviderFactories.GetFactory("System.Data.OleDb")
Dim Con = Dbf.CreateConnection

Con.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & File


Con.Open()  '====>>>sometimes access violation error



Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>