Is there maximum number of arguments

Havoc Pennington hp at pobox.com
Mon Aug 25 05:56:17 PDT 2008


Hi,

On Mon, Aug 25, 2008 at 8:42 AM, Jukka Mähönen <jukka.mahonen at gmail.com> wrote:
> I am writing a program where I need to send as much arguments as
> possible in one D-Bus message. When the count of arguments exceeds 255
> my program crashes. It only says "Memory overflow". After that I have
> sent only 255 arguments in one message, but even now I get the same
> error sometimes when I send messages in a loop.
>

I think there is a max, yes. I would suggest using an array, that is,
make the dbus call:

 myMethod(String[])

instead of

 myMethod(String, String, String, String, String, String, ...)

Havoc


More information about the dbus mailing list