Ive searched on this error plenty, and have tried all the fixes i found.
Im making a document management system. And i have no prior vb experience, just figuring it out as i go. I have run into this problem now and i have no idea what the heck to do to fix it. I have narrowed it down to whats causing it but again not sure how i would change the root to solve the problem.
I have a showdialog that allows for documents to be added to the system. This works perfectly as long as i dont do any sql on the access database. As soon as I run a command on the access database (eg cmd.ExecuteNonQuery()
or
Dim da As New OleDbDataAdapter(StrSQL, cnn)
)
the program will error on showdialog and give me this error
da.Fill(ds, TableName)
dt = ds.Tables(TableName)
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Ive tried recreating the form, i havnt yet tried reinstalling visual studio as it didnt make any difference in all the posts ive read, ive tried to recode the showdialog as well as the sql parts with no difference, ive changed compiler settings and set my .net framework to 4 (not client profile).
Nothing seems to work. Any help would be much appreciated thanks.
I can provide code if neccessary although im sure its quite ugly :)