Login | Register
My pages Projects Community openCollabNet

Discussions > users > Sin.Control on Mono on Windows problem

sin
Discussion topic

Hide all messages in topic

All messages in topic

RE: Sin.Control on Mono on Windows problem

Reply

Author Casper Hornstrup <ch at csh-consult dot dk>
Full name Casper Hornstrup <ch at csh-consult dot dk>
Date 2005-09-17 06:30:01 PDT
Message Hi Anders.

There is also a dev at sin dot tigris dot org mailing list available.

Are you able to build Sin from sources? Build.txt will explain how to do it.

In Sin.Library\Platform.cs there is:

    int p = (int) Environment.OSVersion.Platform;
           if ((p == 4) || (p == 128))
        return NETPlatformID.Mono;
    else
        return NETPlatformID.NET;

Mono must be returning something other than 4 or 128 on Windows.
Maybe you can add:

System.IO.Console.Wr​iteLine("Environment​.OSVersion.Platform:​" + Environment.OSVersio​n.Platform.ToString(​));

to see what number it is.

If not, then please put the issue in the issue tracker and I'll take a look
at it later.

Regards,
Casper

> -----Original Message-----
> From: Anders Hedberg [mailto:anders.hedbe​rg at factorycode dot com]
> Sent: 17. september 2005 15:00
> To: users at sin dot tigris dot org
> Subject: Sin.Control on Mono on Windows problem
>
> Might not be a user question, where should I send these kind of mails?
>
> Anyway, I'm doing this and it does not work:
> C:\PROGRA~1\Sin​>\mono\bin\mono --debug --trace sin.control.exe start
> ---
> In the file Main.cs, StartIntegrator() checks if we are running mono or not,
> I am running Mono on Windows, but the StartIntegratorNET() is still called
> which seems to be the problem.
>
> Probably problematic if clause:
> private static void StartIntegrator()
> {
> if (Platform.ID == NETPlatformID.NET)
> StartIntegratorNET();
> else
> StartIntegratorMono();
> }
>
> ---
> Trace list:
> in <0x0001a> Sin.Control.MainClas​s:StartIntegratorNET​ ()
> in <0x0001e> Sin.Control.MainClas​s:StartIntegrator ()
> in <0x00061> Sin.Control.MainClass:Main (System.String[] args)]
> . . . . . LEAVE: (wrapper runtime-invoke)
> System.Object:runtim​e_invoke_string (o
> bject,intptr,intptr,​intptr)[System.Strin​g:01B2CCC0]
>
> Unhandled Exception: System.Exception: Cannot open service named Integrator
> Serv
> ice.
> System error code was 0.
> in <0x0016f> Sin.Library.ServiceI​nstaller:IsServiceSt​arted (System.String
> svcNam
> e)
> in <0x0001a> Sin.Control.MainClas​s:StartIntegratorNET​ ()
> in <0x0001e> Sin.Control.MainClas​s:StartIntegrator ()
> in <0x00061> Sin.Control.MainClass:Main (System.String[] args)
>
> ---
> Anders dot Hedberg at factorycode dot com
> Mobile +46 733 320196
> http://www.factorycode.com
>
>
> --------------------​--------------------​--------------------​---------
> To unsubscribe, e-mail: users-unsubscribe@si​n.tigris.org
> For additional commands, e-mail: users-help at sin dot tigris dot org

Sin.Control on Mono on Windows problem

Reply

Author Anders Hedberg <anders dot hedberg at factorycode dot com>
Full name Anders Hedberg <anders dot hedberg at factorycode dot com>
Date 2005-09-17 06:00:21 PDT
Message Might not be a user question, where should I send these kind of mails?

Anyway, I'm doing this and it does not work:
C:\PROGRA~1\Sin​>\mono\bin\mono --debug --trace sin.control.exe start
---
In the file Main.cs, StartIntegrator() checks if we are running mono or not,
I am running Mono on Windows, but the StartIntegratorNET() is still called
which seems to be the problem.

Probably problematic if clause:
private static void StartIntegrator()
        {
            if (Platform.ID == NETPlatformID.NET)
                StartIntegratorNET();
            else
                StartIntegratorMono();
        }

---
Trace list:
in <0x0001a> Sin.Control.MainClas​s:StartIntegratorNET​ ()
in <0x0001e> Sin.Control.MainClas​s:StartIntegrator ()
in <0x00061> Sin.Control.MainClass:Main (System.String[] args)]
. . . . . LEAVE: (wrapper runtime-invoke)
System.Object:runtim​e_invoke_string (o
bject,intptr,intptr,​intptr)[System.Strin​g:01B2CCC0]

Unhandled Exception: System.Exception: Cannot open service named Integrator
Serv
ice.
System error code was 0.
in <0x0016f> Sin.Library.ServiceI​nstaller:IsServiceSt​arted (System.String
svcNam
e)
in <0x0001a> Sin.Control.MainClas​s:StartIntegratorNET​ ()
in <0x0001e> Sin.Control.MainClas​s:StartIntegrator ()
in <0x00061> Sin.Control.MainClass:Main (System.String[] args)

---
Anders dot Hedberg at factorycode dot com
Mobile +46 733 320196
http://www.factorycode.com
Messages per page: