Memory could not be read and XmlSerializer.

  • Thread starter Thread starter antsays
  • Start date Start date
A

antsays

I am trying to serialize a collection to disk using the code provided.


This works just fine but when I try do copy and past the xml file to
another location or sometimes even just click on the file it gives me
the error: The instruction at "0x635e0719" referenced memory at
"0x00000000". The momory could not be "read.


Could anyone please help out with this


I also tried putting the code in a try catch finally and closed the
filestream.


Here is the code in the simplest form


XmlSerializer serializer = new
XmlSerializer(typeof(SSHistoryEntryList));


using(FileStream fileStream = new FileStream(file.FullName,
FileMode.Create, FileAccess.Write, FileShare.Read)) {
serializer.Serialize(fileStream, historyEntryList);
 
Are you using the MSN Search Toolbar with desktop search?

You error message is the exact same message that I had been receiving with
the earlier versions of the toolbar.

To correct the problem if this is the case download the latest version. It
seems to be working well so far.
 
Back
Top