473,378 Members | 1,447 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Using FileStream and XmlSerializer: Gives me the error:The instruction at "0x635e0719" referenced memory at "0x00000000". The momory could not be "read

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);
}

Nov 13 '05 #1
0 2094

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Shawn | last post by:
Hi. I'm using a FileStream (instead of just the path to the xml file) to load an XmlDocument. I'm doing this because I need to be able to prevent other processes to update the file I'm working on....
3
by: Justin To via AccessMonster.com | last post by:
I just distributed a FE mde file throught my department, and while stress testing on the performance of the new release, 3 users got the following error: The instruction at ... referenced memory...
3
by: Terry | last post by:
In the code below, I open a file using filestream, copy it to a byte array, and the write that array out to a new file. But when I check the size of the original file and the new file, the new...
49
by: Rocks8138 | last post by:
I have worked on this for sometime.......and I am so lost now........could someone please tell me how to look for or fix a message I keep getting......this is what I get::: The instruction at...
0
by: =?Utf-8?B?VHlwaG9pZE1hcnR5?= | last post by:
Hi all, I am working on an windows application that has been in production internally for my company for about a year. My business analyst informed me that she is getting an error when she...
2
by: gwell | last post by:
Hi, I have a C# assembly that is calling directly into C++ unmanaged code. Everything is working fine but at the very end of the process I get an application error, which says: "The...
6
by: gwell | last post by:
Hi, I have a C# assembly that is calling directly into C++ unmanaged code. Everything is working fine but at the very end of the process I get an application error, which says: "The...
1
by: Nilam2477 | last post by:
While running my application i got following error in Application log Faulting application .exe, version , faulting module mfc42u.dll, version 6.2.8071.0, fault address 0x0000239d. Corresponding...
0
by: zeb noon | last post by:
I create Setup file of my VB6 project .when i run this file the following error occurred "The Instruction at 0x660349be referenced memory at 0x660349be.the memory could not be read". Plz solve...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.