send_action_list vala



I'm using the method proxy.send_action_list():

		var in_names = new List<string> ();
		in_names.append ("InstanceID");
		in_names.append ("Channel");

		var in_values = new List<string> ();
		in_values.append ("0");
		in_values.append ("Master");

		var out_names = new List<string> ();
		var out_types = new List<string> ();
		var out_values = new List<string> ();

	try {
	   proxy.send_action_list("GetVolme",in_names,in_values,out_names,out_types,out_values);
	} catch (Error err) {
           critical (err.message);
        }	

        foreach (string element in out_values) {
	   stdout.printf ("%s\n",element);
	}


but I take the following runtime error:

CRITICAL **: gupnp_service_proxy_begin_action_list: assertion
`g_list_length (in_names) == g_list_length (in_values)' failed

out_values is empty.

Do I use correctly the method ?
Thanks for the help.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]