recently in my project when I call ShowDialog method of OpenFileDialog I get this error:
ShowDialog
OpenFileDialog
\"Attempted to read or write protected memory. Thi
This is solved my problem. In Connection string add the OLE DB Services=-1 then its working.
OLE DB Services=-1
Like this:
Provider=Microsoft.ACE.OLEDB.12.0; Data Source=C:\DbTest\Test.accdb; OLE DB Services=-1
Or as shown in this link