Strange error when filling a data adapter.
- by Tim C
I am receiving the following error in my code (c#, .Net 3.5, VS2008) when I try to connect to an Excel sheet and fill a OleDbDataAdapter with the results of a query. First the error:
Attempted to read or write protected memory. This is often an
indication that other memory is
corrupt.
And here is the code, which is honestly pretty simple:…