Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Using C++ Protocol Buffers built 64 bit with visual studio 2010. Problem occurs when message contains more than 24 fields. At the 25th field the set_ and has_ methods contain the incorrect bitmaps.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dave  
View profile   Translate to Translated (View Original)
 More options Aug 24 2012, 4:33 pm
From: Dave <dmiss...@gmail.com>
Date: Fri, 24 Aug 2012 13:33:56 -0700 (PDT)
Local: Fri, Aug 24 2012 4:33 pm
Subject: Using C++ Protocol Buffers built 64 bit with visual studio 2010. Problem occurs when message contains more than 24 fields. At the 25th field the set_ and has_ methods contain the incorrect bitmaps.

On field 24 in the message:

// optional double ExecFee = 24;
inline bool Order::has_execfee() const {
  return (_has_bits_[0] & 0x00800000u) != 0;

}

inline void Order::set_has_execfee() {
  _has_bits_[0] |= 0x00800000u;
}

inline void Order::clear_has_execfee() {
  _has_bits_[0] &= ~0x00800000u;

}

Then on field 25 in the message:

// optional double BuyPowerUsed = 25;
inline bool Order::has_buypowerused() const {
  return (_has_bits_[0] & 0x11000000u) != 0;

}

inline void Order::set_has_buypowerused() {
  _has_bits_[0] |= 0x11000000u;
}

inline void Order::clear_has_buypowerused() {
  _has_bits_[0] &= ~0x11000000u;

}

by the time you get to field 29 in the message you can no longer serialize fields beyond field number 28 into your message:

// optional .OXObjects.OrderStates OrderState = 29;
inline bool Order::has_orderstate() const {
  return (_has_bits_[0] & 0x00000000u) != 0;

}

inline void Order::set_has_orderstate() {
  _has_bits_[0] |= 0x00000000u;
}

inline void Order::clear_has_orderstate() {
  _has_bits_[0] &= ~0x00000000u;

}

Something is wrong with the protc.exe that's building the protocol buffers generated classes.  Has anyone seen this or fixed this issue?  I would love a fix for this.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dave  
View profile  
 More options Aug 27 2012, 3:48 pm
From: Dave <dmiss...@gmail.com>
Date: Mon, 27 Aug 2012 12:48:35 -0700 (PDT)
Local: Mon, Aug 27 2012 3:48 pm
Subject: Re: Using C++ Protocol Buffers built 64 bit with visual studio 2010. Problem occurs when message contains more than 24 fields. At the 25th field the set_ and has_ methods contain the incorrect bitmaps.

This is caused by a bug in protoc.exe not generating code correctly.  Oddly
enough if I use the debug build of protoc.exe it does generate the code
correctly.  So I'm using that until someone can figure out what's wrong
with protoc.exe.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »