473,549 Members | 2,715 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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(t ypeof(SSHistory EntryList));

using(FileStrea m fileStream = new FileStream(file .FullName,
FileMode.Create , FileAccess.Writ e, FileShare.Read) ) {
serializer.Seri alize(fileStrea m, historyEntryLis t);
}

Nov 13 '05 #1
0 2120

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

Similar topics

1
6802
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. The problem is that I'm getting multiple processing instructions and multiple root elements in my xml file when I use a FileStream. Here is an...
3
9562
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 at ... The memory cannot be "read". this seems like a computer-local problem as I cannot reproduce the same error on any other computers I...
3
7300
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 file has one less byte than the original file (although the file itself still works fine). I was hoping someone could explain what is going on (why is...
49
64140
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 "0x62308e19" referenced memory at "0x021b38c8". They memory could not be "read" Please if anyone has any ideas of how to fix this could you please...
0
1287
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 closes the app. The text of the error is as follows: __ The instruction at "0x30cb0b97" referenced memory at "0x00000000". The memory could not be...
2
2561
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 instruction at (hexNumber) referenced memory at (hexNumber). The memory could not be read. Click on OK to terminate the program." It seems to me that the...
6
2301
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 instruction at (hexNumber) referenced memory at (hexNumber). The memory could not be read. Click on OK to terminate the program."
1
6339
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 error was logged in System Log Application Error : The instruction at "0x5f801088" referenced memory at "0x00000004". The memory could not be "read"....
0
912
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 my problem.
0
7518
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7446
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7715
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7956
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6040
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5087
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3498
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3480
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1057
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.