heweitykc / protobuf-net

Automatically exported from code.google.com/p/protobuf-net
0 stars 0 forks source link

Missing Properties using Memory Stream #308

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Please include an e-mail address if this might need a dialogue!
anlibra25@gmail.com
==============

What steps will reproduce the problem?
1. Using the example provided at the Getting Start section
2. Change the Serializing and Deserializing From File To Memory Stream
3.

What is the expected output? What do you see instead?
Deserializing is completed but with missing properties(name properties is 
empty, and address properties get the null reference when call it.

What version of the product are you using? On what operating system?
version r480 Framework 3,5 on Window XP Service Pack 3

Please provide any additional information below.

Original issue reported on code.google.com by AnLibr...@gmail.com on 31 Jul 2012 at 8:35

GoogleCodeExporter commented 9 years ago
I'm guessing you didn't rewind the stream? (i.e. set Position = 0 between write 
and read). Do you have a code example?

Original comment by marc.gravell on 31 Jul 2012 at 8:44

GoogleCodeExporter commented 9 years ago
yeah, you are right. i forgot it. thanks for the help.

Original comment by AnLibr...@gmail.com on 31 Jul 2012 at 9:36

GoogleCodeExporter commented 9 years ago
and thanks for the quick reply. this project is awesome.

Original comment by AnLibr...@gmail.com on 31 Jul 2012 at 9:37

GoogleCodeExporter commented 9 years ago

Original comment by marc.gravell on 31 Jul 2012 at 9:47