[Mono-dev] mono-service possible bug fix
pablosantosluac at terra.es
pablosantosluac at terra.es
Wed Jun 7 07:05:18 EDT 2006
Hi all,
Sorry for my previous thread hijacking. Didn't realize about it.
Well, it seems there is a bug in mono-service. Whenever it tries to
launch a service application it raises an exception in mono-service.cs
at method StartService.
The code is doing something like:
string [] service_args = new string [0];
entry.Invoke(null, service_args);
return 0;
And it raises the exception "Number of parameter does not match expected
count"
Doing the following changes the problem seems to be solved.
string [] service_args = new string [0];
object[] obj = new object[1];
obj[0] = service_args;
entry.Invoke(null, obj);
return 0;
I replaced the mono-service.exe on my Fedora4/mono-1.1.15 and now it works.
Regards,
pablo
More information about the Mono-devel-list
mailing list