Status: New
Owner: liuj...@google.com
Labels: Type-Defect Priority-Medium

New issue 527 by guillaum...@gmail.com: C++: Descriptor is set to null when loading more than one file.
http://code.google.com/p/protobuf/issues/detail?id=527

What steps will reproduce the problem?
1. Using Message.ParseFromIstream() on File1.
2. Looking at the Descriptor fields, they are set correctly.
3. Using Message.ParseFromIstream() on File2 (or File1 again).
4. Looking at the Descriptor fields, descriptor is not set(stays null).
5. Close the application and restart it.
6. Using Message.ParseFromIstream() on File2 (or File1 again).
7. Looking at the Descriptor fields, they are set correctly.

What is the expected output? What do you see instead?
Descriptor should always be initialized. The first parse that is executed returns the right descriptor, but the next parses keep returning a null Descriptor instead.

What version of the product are you using? On what operating system?
2.4.0 - windows7 64

Please provide any additional information below.
Not using "option optimize_for = XXXX;".
I get the same results using a read write with SharedMemory.

Thank you.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to