473,853 Members | 1,839 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 2144

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

Similar topics

1
6829
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 example: test_1.xml contains: <?xml version="1.0" encoding="utf-8"?> <root>
3
9603
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 tried running Dr. Watson (win2k) and it says "Exception number: c0000005
3
7316
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 there a byte missing, and what might that byte be). string originalFile =...
49
64185
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 tell me. I'm at the point where if I can't find out myself how to fix it I'll have to put computer in...
0
1303
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 "written".
2
2571
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 .Net CLR is trying to unload the C++ dll but
6
2309
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
6357
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". Could you let me know when can the above errors occur and what is the cause?
0
923
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
11020
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10670
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10735
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10358
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9506
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7907
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5736
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4549
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.