[Mono-list] FontFamily.Name returning ???????

2006-07-12 Thread Martin Hinks
Hi all,

I am reading in ttf font files into a privatefontcollection, but the
FontFamily.Name property is returning entries such as  instead
of the name. The number of ?s is equal to the actual font name length
- is it an encoding problem?

Any idea how i can get the font name?

Thanks,

-- 
Martin Hinks
http://www.m-s-d.net
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] FontFamily.Name returning ???????

2006-07-12 Thread Martin Hinks
In fact, it seems to have the problem on the following code as well:

System.Drawing.Font f = new System.Drawing.Font("arial", 16);

Console.WriteLine(f.Name);
Console.ReadKey();

return;

This is happening on Mac OS X.

Is libgdiplus for mac less complete than on others?

Martin

On 7/12/06, Martin Hinks <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I am reading in ttf font files into a privatefontcollection, but the
> FontFamily.Name property is returning entries such as  instead
> of the name. The number of ?s is equal to the actual font name length
> - is it an encoding problem?
>
> Any idea how i can get the font name?
>
> Thanks,
>
> --
> Martin Hinks
> http://www.m-s-d.net
>


-- 
Martin Hinks
http://www.m-s-d.net
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] mod_mono solaris9 problem

2006-07-12 Thread Robert Jordan
Hey,

The bug is tracked here:

http://bugzilla.ximian.com/show_bug.cgi?id=78232

Thanks for the patch!

Robert

Jonathan Zimmerman wrote:
> Juha,
> I, too, had this problem on Solaris 9, and there is another mail thread 
> with regards to Solaris 10.  I tracked this down to a problem when 
> writing string lengths into the message that is sent from mod_mono to 
> xsp.  After applying the following diff to mod_mono.c it worked (I'd say 
> perfectly but as I'm running Mono on a 170MHz TurboSparc, slow does not 
> equate to perfection).
> 
> The patch follows:
> 
> --- ./src/mod_mono.c.orig   2006-04-07 13:35:35.0 -0700
> +++ ./src/mod_mono.c2006-07-11 18:22:02.919284000 -0700
> @@ -1226,7 +1226,7 @@
> buffer += offset;
> tmp = (str != NULL) ? strlen (str) : 0;
> le = LE_FROM_INT (tmp);
> -   (*(int32_t *) buffer) = le;
> +   memcpy(buffer, &le, sizeof(int32_t));
> if (tmp > 0) {
> buffer += sizeof (int32_t);
> memcpy (buffer, str, tmp);
> @@ -1297,7 +1297,7 @@
> } while (t_elt < t_end);
> 
> count = LE_FROM_INT (count);
> -   (*(int32_t *) buffer) = count;
> +   memcpy(buffer, &count, sizeof(int32_t));
> return (ptr - buffer);
>  }
> 
> @@ -1351,12 +1351,12 @@
> ptr += write_string_to_buffer (ptr, 0, r->connection->local_ip);
> i = request_get_server_port (r);
> i = LE_FROM_INT (i);
> -   (*(int32_t *) ptr) = i;
> +   memcpy(ptr, &i, sizeof(int32_t));
> ptr += sizeof (int32_t);
> ptr += write_string_to_buffer (ptr, 0, r->connection->remote_ip);
> i = connection_get_remote_port (r->connection);
> i = LE_FROM_INT (i);
> -   (*(int32_t *) ptr) = i;
> +   memcpy(ptr, &i, sizeof(int32_t));
> ptr += sizeof (int32_t);
> ptr += write_string_to_buffer (ptr, 0, 
> connection_get_remote_name (r));
> ptr += write_table_to_buffer (ptr, r->headers_in);
> 
> 
> Juha Pesonen wrote:
>> Hi folks!
>>
>> Please please help me, I really don't know what's wrong. Couldn't find
>> anything about this from docs or web.
>>
>> Platform is solaris 9, mono version 1.1.13.6, xsp version 
>> 1.1.15.0, mod_mono version 1.1.14. Apache is version >= 2
>>
>> Mono itself works fine when executing normal .exe files ie. compiles at
>> least simple .cs files and executes them from cmd-line. 
>>
>> The problem is asp.net and (I guess) mod_mono that does not work. Sites
>> work thru xsp when xsp is started from cmd-line so the basic asp.net
>> architechture should be ok ?. When called thru apache/mod_mono,
>> everything hangs.
>>
>> Funny (?) thing is that I copied the site and confs from Debian-box
>> where it works without any problems, mono versions differ a little
>> though.
>>
>>
>>
>> Here is apache error log from solaris, at the end are relevant parts of
>> httpd.conf.
>>
>>
>>   
 path seems ok and so does everything else so far
   
>> [Mon Jul 03 14:49:11 2006] [warn] PATH after:
>> /opt/mono/bin:/opt/mono/lib/xsp/1.0:/opt/mono/bin:/opt/oracle/817/bin:/usr/ccs/bin:/usr/local/bin:/usr/bin:/usr/sbin:/bin:/usr/openwin/bin:/usr/ucb:.:/opt/sfw/bin:/usr/local/bin:/opt/mono/bin
>> mod-mono-server
>> Listening on: /tmp/mod_mono_server_default
>> Root directory: /
>>
>>   
 Mono process starts eating up 100% of cpu time and keeps logging this
 (does not crash or anything)
   
>> [Mon Jul 03 14:49:24 2006] [warn] Mono Child Init
>> [Mon Jul 03 14:49:24 2006] [warn] Socket file name
>> /tmp/mod_mono_server_default
>> [Mon Jul 03 14:49:24 2006] [warn] try_connect: 0
>> [Mon Jul 03 14:49:24 2006] [warn] connected default
>> [Mon Jul 03 14:49:28 2006] [warn] handler: mono
>> [Mon Jul 03 14:49:28 2006] [warn] config = 928952
>> [Mon Jul 03 14:49:28 2006] [warn] dir_config = 1023176
>> [Mon Jul 03 14:49:28 2006] [warn] idx = 1
>> [Mon Jul 03 14:49:28 2006] [warn] Socket file name
>> /tmp/mod_mono_server_default
>> [Mon Jul 03 14:49:28 2006] [warn] try_connect: 0
>> [Mon Jul 03 14:49:28 2006] [warn] After setup_socket
>> [Mon Jul 03 14:49:28 2006] [warn] Sending init data
>> [Mon Jul 03 14:49:28 2006] [warn] Send init1
>> [Mon Jul 03 14:49:28 2006] [warn] handler: mono
>> [Mon Jul 03 14:49:28 2006] [warn] config = 928952
>> [Mon Jul 03 14:49:28 2006] [warn] dir_config = 1023176
>> [Mon Jul 03 14:49:28 2006] [warn] idx = 1
>> [Mon Jul 03 14:49:28 2006] [warn] Socket file name
>> /tmp/mod_mono_server_default
>>
>>
>>   
 When we tried to access the site from browser, it sends bus errors, I
   
>> think it crashes httpd at this point
>>
>> [Mon Jul 03 14:49:29 2006] [warn] try_connect: 0
>> [Mon Jul 03 14:49:29 2006] [warn] After setup_socket
>> [Mon Jul 03 14:49:29 2006] [warn] Sending init data
>> [Mon Jul 03 14:49:29 2006] [warn] Send init1
>> [Mon Jul 03 14:49:29 2006] [notice] child pid 28364 exit signal Bus
>> error (10)
>>
>>
>>
>>
>>   
 httpd.conf
   
>>
>> Alias /sw5 "/opt/spat

[Mono-list] Cairo on Mac OS X

2006-07-12 Thread Martin Hinks
Does anyone have a pre-packaged kit for installing Cairo on Mac OS X
please? (I don't have Mac OS developer tools and have lost my OS X CD
so building it is currently looking like a no-no)

Any info appreciated,

-- 
Martin Hinks
http://www.m-s-d.net
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] location path in web.config for xsp2

2006-07-12 Thread Scott Williams
What is the status of the location tag for web.config?

The following chokes:






























with the error "The section  is defined more than once in the 
same configuration file."

The config works for IIS, but chokes on both Windows and Linux xsp2.  I have 
seen prior postings to the list on this, but unclear as to the resolution.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Socket problem

2006-07-12 Thread analyzer2
Hello together

I use Mono to create a small C# console project. In this project I send an ping 
to check the host. I didn't write the ICMP class self. 

ICMP class: http://cpp.sourceforge.net/?show=17688

Code to use the class:
ICMP ping = new ICMP();
ping.Open();
TimeSpan span = ping.Send("66.249.85.104", new TimeSpan(0,0,5));

Unfortunately there is a exception:
Unhandled Exception: System.Net.Sockets.SocketException: Access denied
in <0x000b8> System.Net.Sockets.Socket:.ctor (AddressFamily family, SocketType 
type, ProtocolType proto)
in [0x4] (at cPing.cs:41) ICMP:Open ()
in [0x7] (at Main.cs:14) MainClass:Main (System.String[] args

I tested the same code to a Visual Studio 2005 Pro. installation. It runs fine. 

Do you have any idea?

Thanks.

Greetz
Karsten
-- 


Echte DSL-Flatrate dauerhaft für 0,- Euro*!
"Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Socket problem

2006-07-12 Thread Gonia Eric - egonia




You have to be root to send ICMP requests.

On Wed, 2006-07-12 at 20:14 +0200, [EMAIL PROTECTED] wrote:


Hello together

I use Mono to create a small C# console project. In this project I send an ping to check the host. I didn't write the ICMP class self. 

ICMP class: http://cpp.sourceforge.net/?show=17688

Code to use the class:
ICMP ping = new ICMP();
ping.Open();
TimeSpan span = ping.Send("66.249.85.104", new TimeSpan(0,0,5));

Unfortunately there is a exception:
Unhandled Exception: System.Net.Sockets.SocketException: Access denied
in <0x000b8> System.Net.Sockets.Socket:.ctor (AddressFamily family, SocketType type, ProtocolType proto)
in [0x4] (at cPing.cs:41) ICMP:Open ()
in [0x7] (at Main.cs:14) MainClass:Main (System.String[] args

I tested the same code to a Visual Studio 2005 Pro. installation. It runs fine. 

Do you have any idea?

Thanks.

Greetz
Karsten


*
The information contained in this communication is confidential, is
intended only for the use of the recipient named above, and may be
legally privileged.

If the reader of this message is not the intended recipient, you are 
hereby notified that any dissemination, distribution or copying of this
communication is strictly prohibited.

If you have received this communication in error, please resend this
communication to the sender and delete the original message or any copy
of it from your computer system.

Thank you.
*


___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Socket problem

2006-07-12 Thread Peter Dennis Bartok
I may be wrong, but I thought you needed root rights for ICMP. Have you 
tried running your mono app as root?

Peter

-Original Message-
From: <[EMAIL PROTECTED]>
To: 
Date: 12 July, 2006 12:14
Subject: [Mono-list] Socket problem


Hello together

I use Mono to create a small C# console project. In this project I send an 
ping to check the host. I didn't write the ICMP class self.

ICMP class: http://cpp.sourceforge.net/?show=17688

Code to use the class:
ICMP ping = new ICMP();
ping.Open();
TimeSpan span = ping.Send("66.249.85.104", new TimeSpan(0,0,5));

Unfortunately there is a exception:
Unhandled Exception: System.Net.Sockets.SocketException: Access denied
in <0x000b8> System.Net.Sockets.Socket:.ctor (AddressFamily family, 
SocketType type, ProtocolType proto)
in [0x4] (at cPing.cs:41) ICMP:Open ()
in [0x7] (at Main.cs:14) MainClass:Main (System.String[] args

I tested the same code to a Visual Studio 2005 Pro. installation. It runs 
fine.

Do you have any idea?

Thanks.

Greetz
Karsten
-- 


Echte DSL-Flatrate dauerhaft für 0,- Euro*!
"Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Socket problem

2006-07-12 Thread analyzer2
Thanks, but I think it's stupid. UNIX/Linux users never working as root. Is 
there an other way to send a ping?

Karsten
 Original-Nachricht 
Datum: Wed, 12 Jul 2006 12:24:25 -0600
Von: Peter Dennis Bartok <[EMAIL PROTECTED]>
An: [EMAIL PROTECTED], mono-list@lists.ximian.com
Betreff: Re: [Mono-list] Socket problem

> I may be wrong, but I thought you needed root rights for ICMP. Have you 
> tried running your mono app as root?
> 
> Peter
> 
> -Original Message-
> From: <[EMAIL PROTECTED]>
> To: 
> Date: 12 July, 2006 12:14
> Subject: [Mono-list] Socket problem
> 
> 
> Hello together
> 
> I use Mono to create a small C# console project. In this project I send an
> ping to check the host. I didn't write the ICMP class self.
> 
> ICMP class: http://cpp.sourceforge.net/?show=17688
> 
> Code to use the class:
> ICMP ping = new ICMP();
> ping.Open();
> TimeSpan span = ping.Send("66.249.85.104", new TimeSpan(0,0,5));
> 
> Unfortunately there is a exception:
> Unhandled Exception: System.Net.Sockets.SocketException: Access denied
> in <0x000b8> System.Net.Sockets.Socket:.ctor (AddressFamily family, 
> SocketType type, ProtocolType proto)
> in [0x4] (at cPing.cs:41) ICMP:Open ()
> in [0x7] (at Main.cs:14) MainClass:Main (System.String[] args
> 
> I tested the same code to a Visual Studio 2005 Pro. installation. It runs 
> fine.
> 
> Do you have any idea?
> 
> Thanks.
> 
> Greetz
> Karsten
> -- 
> 
> 
> Echte DSL-Flatrate dauerhaft für 0,- Euro*!
> "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 

-- 


Echte DSL-Flatrate dauerhaft für 0,- Euro*!
"Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Socket problem

2006-07-12 Thread Trimble, Nathan G
"I may be wrong, but I thought you needed root rights for ICMP. Have you

tried running your mono app as root?" 

This is just for curiosity's sake.  If only root has rights to ICMP, how
does ping run under a normal user account?  Could the same method be
used under Mono?  Thanks.

Nate Trimble
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Socket problem

2006-07-12 Thread Adam Tauno Williams
On Wed, 2006-07-12 at 11:35 -0700, Trimble, Nathan G wrote:
> "I may be wrong, but I thought you needed root rights for ICMP. Have you
> tried running your mono app as root?" 
> This is just for curiosity's sake.  If only root has rights to ICMP, how
> does ping run under a normal user account?

It doesn't.

[EMAIL PROTECTED]:~> ls -l /bin/ping
-rwsr-xr-x 1 root root 35520 2006-04-22 21:53 /bin/ping
---^

> Could the same method be used under Mono?

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Socket problem

2006-07-12 Thread Alex Nedelcu
I am sorry I don't have more time to help you, but if you don't find the 
problem, a good old-fashioned way to solve it is ... by invoking the ping 
command in a separate process and grabbing the output.

ping -c 3 www.google.com
(it pings the host 3 times before it stops, otherwise it goes forever and 
you'd have to manually kill the process)

The you just read the output, execute some regular expressions on it, and get 
the info you want.


On Wednesday 12 July 2006 21:30, [EMAIL PROTECTED] wrote:
> Thanks, but I think it's stupid. UNIX/Linux users never working as root. Is
> there an other way to send a ping?
>
> Karsten
>  Original-Nachricht 
> Datum: Wed, 12 Jul 2006 12:24:25 -0600
> Von: Peter Dennis Bartok <[EMAIL PROTECTED]>
> An: [EMAIL PROTECTED], mono-list@lists.ximian.com
> Betreff: Re: [Mono-list] Socket problem
>
> > I may be wrong, but I thought you needed root rights for ICMP. Have you
> > tried running your mono app as root?
> >
> > Peter
> >
> > -Original Message-
> > From: <[EMAIL PROTECTED]>
> > To: 
> > Date: 12 July, 2006 12:14
> > Subject: [Mono-list] Socket problem
> >
> >
> > Hello together
> >
> > I use Mono to create a small C# console project. In this project I send
> > an ping to check the host. I didn't write the ICMP class self.
> >
> > ICMP class: http://cpp.sourceforge.net/?show=17688
> >
> > Code to use the class:
> > ICMP ping = new ICMP();
> > ping.Open();
> > TimeSpan span = ping.Send("66.249.85.104", new TimeSpan(0,0,5));
> >
> > Unfortunately there is a exception:
> > Unhandled Exception: System.Net.Sockets.SocketException: Access denied
> > in <0x000b8> System.Net.Sockets.Socket:.ctor (AddressFamily family,
> > SocketType type, ProtocolType proto)
> > in [0x4] (at cPing.cs:41) ICMP:Open ()
> > in [0x7] (at Main.cs:14) MainClass:Main (System.String[] args
> >
> > I tested the same code to a Visual Studio 2005 Pro. installation. It runs
> > fine.
> >
> > Do you have any idea?
> >
> > Thanks.
> >
> > Greetz
> > Karsten
> > --
> >
> >
> > Echte DSL-Flatrate dauerhaft für 0,- Euro*!
> > "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl
> > ___
> > Mono-list maillist  -  Mono-list@lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-list
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Socket problem

2006-07-12 Thread Dick Porter
On Wed, 2006-07-12 at 20:14 +0200, [EMAIL PROTECTED] wrote:
> Unfortunately there is a exception:
> Unhandled Exception: System.Net.Sockets.SocketException: Access denied

It tells you why here ^

It's also the same reason why ping(1) is setuid root:

:; ls -l `which ping`
-rwsr-xr-x 1 root root 36608 Feb 24 15:42 /bin/ping

- Dick



signature.asc
Description: This is a digitally signed message part
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Socket problem

2006-07-12 Thread analyzer2
I can ping under a normal user. But there is 
-rwsr-xr-x 1 root root 30724 2005-11-11 01:15 /bin/ping

It's curious.

Karsten

 Original-Nachricht 
Datum: Wed, 12 Jul 2006 14:36:17 -0400
Von: Adam Tauno Williams <[EMAIL PROTECTED]>
An: mono-list@lists.ximian.com
Betreff: Re: [Mono-list] Socket problem

> On Wed, 2006-07-12 at 11:35 -0700, Trimble, Nathan G wrote:
> > "I may be wrong, but I thought you needed root rights for ICMP. Have you
> > tried running your mono app as root?" 
> > This is just for curiosity's sake.  If only root has rights to ICMP, how
> > does ping run under a normal user account?
> 
> It doesn't.
> 
> [EMAIL PROTECTED]:~> ls -l /bin/ping
> -rwsr-xr-x 1 root root 35520 2006-04-22 21:53 /bin/ping
> ---^
> 
> > Could the same method be used under Mono?
> 
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list

-- 


Echte DSL-Flatrate dauerhaft für 0,- Euro*!
"Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl

-- 


"Feel free" – 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Socket problem

2006-07-12 Thread Trimble, Nathan G
Oh yes, sorry I forgot about setuid.  Would it be possible to use setuid
with a Mono program?  Thanks.

Nate Trimble

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Adam Tauno
Williams
Sent: Wednesday, July 12, 2006 11:36 AM
To: mono-list@lists.ximian.com
Subject: Re: [Mono-list] Socket problem

On Wed, 2006-07-12 at 11:35 -0700, Trimble, Nathan G wrote:
> "I may be wrong, but I thought you needed root rights for ICMP. Have
you
> tried running your mono app as root?" 
> This is just for curiosity's sake.  If only root has rights to ICMP,
how
> does ping run under a normal user account?

It doesn't.

[EMAIL PROTECTED]:~> ls -l /bin/ping
-rwsr-xr-x 1 root root 35520 2006-04-22 21:53 /bin/ping
---^

> Could the same method be used under Mono?

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Socket problem

2006-07-12 Thread Dick Porter
On Wed, 2006-07-12 at 11:58 -0700, Trimble, Nathan G wrote:
> Oh yes, sorry I forgot about setuid.  Would it be possible to use setuid
> with a Mono program?  Thanks.

It's certainly technically possible to setuid root a mono program, but
you'd be a fool to do so without first performing a thorough audit of
the runtime, the class libraries and any third party libraries that are
linked.

- Dick



signature.asc
Description: This is a digitally signed message part
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] mod_mono solaris9 problem

2006-07-12 Thread Juha Pesonen

Hello!

I don't have access to the Solaris for 2 weeks but it sure seems that the
problem lies there. I'll let you know when I get my hands on it. And
thanks for help!

Juha



>Hey,
>
>The bug is tracked here:
>
>   http://bugzilla.ximian.com/show_bug.cgi?id=78232
>
>Thanks for the patch!
>
>Robert
>
>Jonathan Zimmerman wrote:
> Juha,
> I, too, had this problem on Solaris 9, and there is another mail thread
> with regards to Solaris 10.  I tracked this down to a problem when
> writing string lengths into the message that is sent from mod_mono to
> xsp.  After applying the following diff to mod_mono.c it worked (I'd say
> perfectly but as I'm running Mono on a 170MHz TurboSparc, slow does not
> equate to perfection).
>
> The patch follows:
>
> --- ./src/mod_mono.c.orig   2006-04-07 13:35:35.0 -0700
> +++ ./src/mod_mono.c2006-07-11 18:22:02.919284000 -0700
> @@ -1226,7 +1226,7 @@
> buffer += offset;
> tmp = (str != NULL) ? strlen (str) : 0;
> le = LE_FROM_INT (tmp);
> -   (*(int32_t *) buffer) = le;
> +   memcpy(buffer, &le, sizeof(int32_t));
> if (tmp > 0) {
> buffer += sizeof (int32_t);
> memcpy (buffer, str, tmp);
> @@ -1297,7 +1297,7 @@
> } while (t_elt < t_end);
>
> count = LE_FROM_INT (count);
> -   (*(int32_t *) buffer) = count;
> +   memcpy(buffer, &count, sizeof(int32_t));
> return (ptr - buffer);
>  }
>
> @@ -1351,12 +1351,12 @@
> ptr += write_string_to_buffer (ptr, 0, r->connection->local_ip);
> i = request_get_server_port (r);
> i = LE_FROM_INT (i);
> -   (*(int32_t *) ptr) = i;
> +   memcpy(ptr, &i, sizeof(int32_t));
> ptr += sizeof (int32_t);
> ptr += write_string_to_buffer (ptr, 0,
r->connection->remote_ip);
> i = connection_get_remote_port (r->connection);
> i = LE_FROM_INT (i);
> -   (*(int32_t *) ptr) = i;
> +   memcpy(ptr, &i, sizeof(int32_t));
> ptr += sizeof (int32_t);
> ptr += write_string_to_buffer (ptr, 0,
> connection_get_remote_name (r));
> ptr += write_table_to_buffer (ptr, r->headers_in);
>
>
> Juha Pesonen wrote:
>> Hi folks!
>>
>> Please please help me, I really don't know what's wrong. Couldn't find
>> anything about this from docs or web.
>>
>> Platform is solaris 9, mono version 1.1.13.6, xsp version
>> 1.1.15.0, mod_mono version 1.1.14. Apache is version >= 2
>>
>> Mono itself works fine when executing normal .exe files ie. compiles at
>> least simple .cs files and executes them from cmd-line.
>>
>> The problem is asp.net and (I guess) mod_mono that does not work. Sites
>> work thru xsp when xsp is started from cmd-line so the basic asp.net
>> architechture should be ok ?. When called thru apache/mod_mono,
>> everything hangs.
>>
>> Funny (?) thing is that I copied the site and confs from Debian-box
>> where it works without any problems, mono versions differ a little
>> though.
>>
>>
>>
>> Here is apache error log from solaris, at the end are relevant parts of
>> httpd.conf.
>>
>>
>>
 path seems ok and so does everything else so far

>> [Mon Jul 03 14:49:11 2006] [warn] PATH after:
>>
/opt/mono/bin:/opt/mono/lib/xsp/1.0:/opt/mono/bin:/opt/oracle/817/bin:/usr/ccs/bin:/usr/local/bin:/usr/bin:/usr/sbin:/bin:/usr/openwin/bin:/usr/ucb:.:/opt/sfw/bin:/usr/local/bin:/opt/mono/bin
>> mod-mono-server
>> Listening on: /tmp/mod_mono_server_default
>> Root directory: /
>>
>>
 Mono process starts eating up 100% of cpu time and keeps logging this
 (does not crash or anything)

>> [Mon Jul 03 14:49:24 2006] [warn] Mono Child Init
>> [Mon Jul 03 14:49:24 2006] [warn] Socket file name
>> /tmp/mod_mono_server_default
>> [Mon Jul 03 14:49:24 2006] [warn] try_connect: 0
>> [Mon Jul 03 14:49:24 2006] [warn] connected default
>> [Mon Jul 03 14:49:28 2006] [warn] handler: mono
>> [Mon Jul 03 14:49:28 2006] [warn] config = 928952
>> [Mon Jul 03 14:49:28 2006] [warn] dir_config = 1023176
>> [Mon Jul 03 14:49:28 2006] [warn] idx = 1
>> [Mon Jul 03 14:49:28 2006] [warn] Socket file name
>> /tmp/mod_mono_server_default
>> [Mon Jul 03 14:49:28 2006] [warn] try_connect: 0
>> [Mon Jul 03 14:49:28 2006] [warn] After setup_socket
>> [Mon Jul 03 14:49:28 2006] [warn] Sending init data
>> [Mon Jul 03 14:49:28 2006] [warn] Send init1
>> [Mon Jul 03 14:49:28 2006] [warn] handler: mono
>> [Mon Jul 03 14:49:28 2006] [warn] config = 928952
>> [Mon Jul 03 14:49:28 2006] [warn] dir_config = 1023176
>> [Mon Jul 03 14:49:28 2006] [warn] idx = 1
>> [Mon Jul 03 14:49:28 2006] [warn] Socket file name
>> /tmp/mod_mono_server_default
>>
>>
>>
 When we tried to access the site from browser, it sends bus errors, I

>> think it crashes httpd at this point
>>
>> [Mon Jul 03 14:49:29 2006] [warn] try_connect: 0
>> [Mon Jul 03 14:49:29 2006] [warn] After setup_socket
>> [Mon Jul 03 14:49:29 2006] [warn] Sending init data
>> [Mon Jul 03 14:49:29 2006] [warn] Send init1
>> [Mon Jul 03

[Mono-list] mod-mono-server2 destroys filehandles?

2006-07-12 Thread Corwin Light-Williams
I have a recurring problem with mod-mono-server2 it seems. I have a  
service that runs and opens pipes in /tmp. About every 5-7 days the  
pipes will simply be deleted, leaving the servers running with no  
pipes, meaning that Apache just gives me a "Service Temporarily  
Unavailable" error. This only seems to happen with mod-mono-server2-  
my mod-mono-server process merrily runs along.

Does anybody have any clues on this? I'm about to have to switch back  
to Windows for hosting because of this, and I really don't want to  
have to do that. :)

Corwin
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] mod-mono-server2 destroys filehandles?

2006-07-12 Thread Robert Jordan
Corwin Light-Williams wrote:
> I have a recurring problem with mod-mono-server2 it seems. I have a  
> service that runs and opens pipes in /tmp. About every 5-7 days the  
> pipes will simply be deleted, leaving the servers running with no  
> pipes, meaning that Apache just gives me a "Service Temporarily  
> Unavailable" error. This only seems to happen with mod-mono-server2-  
> my mod-mono-server process merrily runs along.
> 
> Does anybody have any clues on this? I'm about to have to switch back  
> to Windows for hosting because of this, and I really don't want to  
> have to do that. :)

It's probably a cron job that periodically purges /tmp.

Another reason might be a bug (#78241) that has been fixed with
Mono 1.1.16.

Robert

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] mod-mono-server2 destroys filehandles?

2006-07-12 Thread Corwin Light-Williams
The rest of /tmp remains there, unaffected. Only the mod-mono pipes  
go away.

I'll look into 1.1.16.

Corwin

On Jul 12, 2006, at 3:13 PM, Robert Jordan wrote:

> Corwin Light-Williams wrote:
>> I have a recurring problem with mod-mono-server2 it seems. I have a
>> service that runs and opens pipes in /tmp. About every 5-7 days the
>> pipes will simply be deleted, leaving the servers running with no
>> pipes, meaning that Apache just gives me a "Service Temporarily
>> Unavailable" error. This only seems to happen with mod-mono-server2-
>> my mod-mono-server process merrily runs along.
>>
>> Does anybody have any clues on this? I'm about to have to switch back
>> to Windows for hosting because of this, and I really don't want to
>> have to do that. :)
>
> It's probably a cron job that periodically purges /tmp.
>
> Another reason might be a bug (#78241) that has been fixed with
> Mono 1.1.16.
>
> Robert
>
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Suse 10.1 and Monodevelop

2006-07-12 Thread John Meyer
How do I start monodevelop under Suse 10.1?
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Suse 10.1 and Monodevelop

2006-07-12 Thread Joe Audette
Are you getting an error or can't find it in the menu?

On my machine its under Development > More Programs

Hope it helps,

Joe
 
 
joe_audette [at] yahoo dotcom 
http://www.joeaudette.com 
http://www.mojoportal.com

- Original Message 
From: John Meyer <[EMAIL PROTECTED]>
To: Mono-list@lists.ximian.com
Sent: Wednesday, July 12, 2006 7:37:12 PM
Subject: [Mono-list] Suse 10.1 and Monodevelop

How do I start monodevelop under Suse 10.1?
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list




___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Suse 10.1 and Monodevelop

2006-07-12 Thread Joe Audette
>It doesn't even appear.  What package should I have installed (I
installed everything, I think).


If you go into System > YaST > Software > Software Management
and search for mono you should find it. As I recall the only thing missing was 
mod_mono which you can get by adding an additional installation source

On mine I added an http source
Server Name: suse.mirrors.tds.net
Server Directory: pub/opensuse/distribution/SL-10.1/inst-source

if you are in the US that should be fine or you may want to look at the list on 
opensuse wiki for a closer one
this will give you additional packages like postgresql and lots of other stuff 
that isn't on the cds

I would install pretty much everything you see in searching for mono then to 
upgrade all of it to the newest version go to the mono download page and 
download all the rpms
unzip the rpms into directories then from the terminal cd into those 
directories one at a time and do
sudo rpm -Uvh *.rpm

in the devtools folder I got an error on gecko so had to install the rest one 
at a time in that directory like
sudo rpm -Uvh filename.rpm for each file

be sure and install boo

I just did all this last weekend and the latest 0.11 MonoDevelop is working 
nice for me.

Hope it helps,

Joe






___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Mono Mugs? Shirts? where they at?

2006-07-12 Thread Miguel de Icaza
Hello,

> where is the web site to purchase mono mugs, shirts, etc,
> to (1) get this stuff - i need some new clothes!, (2) donate some coin to the 
> project.
> i checked mono site and novell (quickly), nothing is jumping out 
> surely it can't be the case that this stuff doesn't exist?

I have not sorted this out.

I probably should.   We have a few Mono designs, maybe I could setup a
Cafe Press store for it, and have the revenue go into some bank account
that we can use to pay for something.

Miguel.
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list