[Mono-dev] mono-service again (BUG FIX)

Jörg Rosenkranz joerg.rosenkranz at gmail.com
Wed Jun 7 07:41:12 EDT 2006


Hi Pablo,

Thanks for spotting this bug. I don't have a test environment here so
could you please test if the following change works for you too?

    entry.Invoke (null, null);

I have attached a patch to change this line.
How is the entry point of your service defined? My services always
worked with this implementation of mono-service. The Main function
looks like:

    static void Main()

Joerg.


2006/6/7, pablosantosluac at terra.es <pablosantosluac at terra.es>:
> Anyway, 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 I posted in a previous email.
>
> Doing the following:
>
> string [] service_args = new string [0];
>
> object[] obj = new object[1];
>
> obj[0] = service_args;
>
> entry.Invoke(null, obj);
>
>
> return 0;
>
>
>
> The problem seems to be solved.
>
> I replaced the mono-service.exe on my Fedora4/mono-1.1.15 and now it works.
>
> Regards,
>
>
>
> pablo
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mono-service.patch
Type: application/octet-stream
Size: 350 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060607/ff6b80fb/attachment.obj 


More information about the Mono-devel-list mailing list