M
Michael P
I am using vb.Net 2008, SQL Server Compact 3.5, and a DataGridView control. This is an occassionally connected application. I am populating the DataGridView control from a DataTable that is filled with SqlServerCe.SqlCeDataAdapter.
The grid fills fine. I can click a few rows, scroll, filter, sort, etc. The events that are programmed all fire and work. Then, out of the blue, after maybe 5 or 6 row changes, I get an unhandled exception:
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
System.AccessViolationException was unhandled
Message="Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
Source="System.Data.SqlServerCe"
StackTrace:
at System.Data.SqlServerCe.NativeMethods.SafeRelease(IntPtr& ppUnknown)
at System.Data.SqlServerCe.SqlCeDataReader.ReleaseNativeInterfaces()
at System.Data.SqlServerCe.SqlCeDataReader.Dispose(Boolean disposing)
at System.Data.SqlServerCe.SqlCeDataReader.Finalize()
InnerException:
Can anybody explain this? From what I have read, it could be tied to any of the pieces I am playing with, that is why this is cross-posted. I am really stuck.
Thanks.
Mike
The grid fills fine. I can click a few rows, scroll, filter, sort, etc. The events that are programmed all fire and work. Then, out of the blue, after maybe 5 or 6 row changes, I get an unhandled exception:
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
System.AccessViolationException was unhandled
Message="Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
Source="System.Data.SqlServerCe"
StackTrace:
at System.Data.SqlServerCe.NativeMethods.SafeRelease(IntPtr& ppUnknown)
at System.Data.SqlServerCe.SqlCeDataReader.ReleaseNativeInterfaces()
at System.Data.SqlServerCe.SqlCeDataReader.Dispose(Boolean disposing)
at System.Data.SqlServerCe.SqlCeDataReader.Finalize()
InnerException:
Can anybody explain this? From what I have read, it could be tied to any of the pieces I am playing with, that is why this is cross-posted. I am really stuck.
Thanks.
Mike