Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 31st, 2009, 02:10 AM
Registered User
 
Join Date: Mar 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error During Binary Deserialize - URGENT

Hi All ,

When I attempt to deserialize a stream , I receive the error stating " No map for object 67108864 " .

The Code:

Serialize:

list<String> m_QueryList = new list<string>
string str = "some Text";

Stream stream = File.Open(e.FullPath, FileMode.Open);
m_QueryList.Add(str);
binFormater.Serialize(stream, m_QueryList);
stream.Close();


Deserialize :

Stream stream = File.Open(e.FullPath, FileMode.OpenOrCreate);
m_recvdList = (List<string>)binFormater.Deserialize(stream);
stream.Close();


Could someone kindly help me fix this error .



Thanks and Regards,
Prashanth.
  #2 (permalink)  
Old April 3rd, 2009, 10:11 AM
Authorized User
 
Join Date: Nov 2006
Location: Valparaiso, IN, USA.
Posts: 93
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Prashanthks,

It would be hard for me to duplicate your problem here as some key parts of your code are missing. Most notably, what class is "binFormater"?

On the other hand, there are other ways to read and write to a text file if that is what you are trying to do. For instance try using the StreamReader and StreamWriter classes.
__________________
What you don\'t know can hurt you!
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deserialize from method information in .NET C# DGallo C# 1 September 13th, 2007 09:56 PM
Urgent...need help fixing this error! riki_gill ASP.NET 1.x and 2.0 Application Design 0 October 27th, 2006 08:23 AM
Urgent getting Error while using SqlDataReader hums ADO.NET 2 September 29th, 2004 10:03 AM
Urgent Error in sending mail qazi_nomi Classic ASP Components 1 June 11th, 2004 02:49 AM



All times are GMT -4. The time now is 10:04 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.