Click here to Skip to main content
15,888,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have an application which was connecting to ms access database and list out the data in to the grid.

it's working in fine 32 bit and 32bit version in windows 7 64 bit and it's access jet drives 4.0

But now the issue in 64 bit version in windows 64 bit and it's connecting with ace 12.0 using MS access 2010.

I have few function which was connect to database(ms access 2010 in 64 bit) in the form_load. after that while opening the Open dialog box, i facing the below issue. but i don't know why it's throwing error on while opening the open dialog box ... please help me

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

at System.Windows.Forms.FileDialogNative.IFileDialog.Show(IntPtr parent)

at System.Windows.Forms.FileDialog.RunDialogVista(IntPtr hWndOwner)

at System.Windows.Forms.CommonDialog.ShowDialog(IWin32Window owner)

at iSAP2.GroundMaster.btnBrowse_Click(Object sender, EventArgs e)
Posted
Comments
Bernhard Hiller 29-Mar-12 2:12am    
How do you call the OpenFileDialog's ShowDialog method - with a parameter or without a parameter? Which other properties of the OpenFileDialog were set? Please provide their values also.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900