From: Andreas V. <li...@br...> - 2009-03-28 12:55:29
|
Am Thu, 19 Mar 2009 23:24:47 +0100 (CET) schrieb David Kozub: Hello David, ==> Fixed in gitorious branch I tested many combinations of single and multiple in and out parameters. I tested also simple types, complex types and object types. It seems to generate good code. I've not yet tested the functionality itself. Hint for me: Write unit tests! :-) Thanks for reporting that bug! regards Andreas > Hi, > > I grabbed dbus-c++ from the gitorious branch and started playing with > the examples. I actually stopped right at the simplest example - > examples/echo. > > Invoking the Hello method as mentioned in README results in an empty > string. When I looked into the issue, it seems to be a bug in the > server glue (generated by dbusxx-xml2cpp), specifically, the > marshaller: > > ::DBus::Message _Hello_stub(const ::DBus::CallMessage &call) > { > ::DBus::MessageIter ri = call.reader(); > > std::string argin1; > ri >> argin1; > std::string argout1; > Hello(argin1); > ::DBus::ReturnMessage reply(call); > ::DBus::MessageIter wi = reply.writer(); > wi << argout1; > return reply; > } > > changing the Hello() invocation into "argout1 = Hello(argin1)" fixes > the issue. > > Looking at the stub (and at the generator), this is a general > problem. Being all new to this... I see where in generator is this > code output, but I don't really know how to fix this. > > Best regards, > > David Kozub > zu...@li... > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) > are powering Web 2.0 with engaging, cross-platform capabilities. > Quickly and easily build your RIAs with Flex Builder, the > Eclipse(TM)based development software that enables intelligent coding > and step-through debugging. Download the free 60 day trial. > http://p.sf.net/sfu/www-adobe-com > _______________________________________________ dbus-cplusplus-devel > mailing list dbu...@li... > https://lists.sourceforge.net/lists/listinfo/dbus-cplusplus-devel > |