[protobuf] Possible Memory Leaks

2010-10-25 Thread rthompson.dtisoft....@gmail.com
I ran Valgrind on our application and found quite a few "possibly lost" bytes traces. Here is an example of one ==1473==at 0x40263A0: operator new(unsigned int) (vg_replace_malloc.c:214) ==1473==by 0x4370EB8: google::protobuf::DescriptorPool::DescriptorPool(google::protobuf::DescriptorDat

[protobuf] Mixing Message Factory and Compiled Messages

2010-05-26 Thread rthompson.dtisoft....@gmail.com
const google::protobuf::Descriptor* pDescriptorResponse = m_pFileDescriptor->FindMessageTypeByName( "SomeMessage" ); const google::protobuf::Message* pConstMessageResponse = m_pMessageFactory->GetPrototype( pDescriptorResponse ); SomeMessage* pSomeMess

[protobuf] DynamicServiceFactory

2010-03-15 Thread rthompson.dtisoft....@gmail.com
DynamicServiceFactory->New(MyRpcOne,MyRpcTwo,...) This type of functionality doesn't appear to exist. Is there an alternate way to implement this type of functionality? -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group,

Re: Service Factory?

2009-07-01 Thread rthompson.dtisoft....@gmail.com
That worked! Thanks! On Jun 30, 5:06 pm, Kenton Varda wrote: > On Tue, Jun 30, 2009 at 4:28 PM, rthompson.dtisoft....@gmail.com < > > rthompson.dtisoft....@gmail.com> wrote: > > > I'm confused. Shouldn't I just create a class called > > DynamicSer

Re: Service Factory?

2009-06-30 Thread rthompson.dtisoft....@gmail.com
l > interface.  Have GetRequestPrototype() and GetResponsePrototype() return > DynamicMessages, and have CallMethod() just call the RpcChannel's > CallMethod(). > On Tue, Jun 30, 2009 at 2:03 PM, rthompson.dtisoft@gmail.com < > > > > rthompson.dtisoft@gmail.com&

Re: Service Factory?

2009-06-30 Thread rthompson.dtisoft....@gmail.com
s. > But this is not an RPC implementation.  You still have to add your own > networking layer. > > On Tue, Jun 30, 2009 at 9:26 AM, rthompson.dtisoft....@gmail.com < > > > > rthompson.dtisoft@gmail.com> wrote: > > > Is there a C++ equivalent to > >

Re: Service Factory?

2009-06-30 Thread rthompson.dtisoft....@gmail.com
More specifically the service_reflection class. On Jun 30, 9:26 am, "rthompson.dtisoft@gmail.com" wrote: > Is there a C++ equivalent to > > http://code.google.com/apis/protocolbuffers/docs/reference/python/goo... > ? > > which is used to create protocol service a

Re: Service Factory?

2009-06-30 Thread rthompson.dtisoft....@gmail.com
not provide RPC. > > On Mon, Jun 29, 2009 at 10:15 AM, rthompson.dtisoft@gmail.com < > > > > rthompson.dtisoft@gmail.com> wrote: > > > What can you do with a ServiceDescriptor?  Is there a > > DynamicServiceFactory similar to the DynamicMessageFactor

Service Factory?

2009-06-29 Thread rthompson.dtisoft....@gmail.com
What can you do with a ServiceDescriptor? Is there a DynamicServiceFactory similar to the DynamicMessageFactory where you can instantiate a service when all you have is a ServiceDescriptor, or some other equivalent way of doing it? Thanks! --~--~-~--~~~---~--~~ Yo

JavaScript

2009-06-25 Thread rthompson.dtisoft....@gmail.com
Is there anything in the works that would allow us to output JavaScript along with C++, Java, and Python? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to

Descriptors Practical Example

2009-06-03 Thread rthompson.dtisoft....@gmail.com
Does anyone have a good practical use of descriptors? I'm trying to figure out why these would be useful. It seems to me that when you access the descriptor class, you're using the very class that defines the methods described by the descriptor. --~--~-~--~~~---~--~--