Re: [Mono-list] Virus emails

2004-10-31 Thread gennady wexler
On 10/31/04 11:01 AM, Paul [EMAIL PROTECTED] wrote:

 Hi,
 
 from the antivirus software. Hopefully no one is ignorant enough to open
 that file just because it's stating to be coming from someone at ximian. ;)
 
 
 or start a mail thread about it to flood this list even further. :)
 
 I would imagine someone's already looking into this. my mail server however,
 automatically cleans such mails on arrival, so by the time they make it to
 my mailbox - its just an empty attachment. you might want to talk to your
 ISP or your mail server admin.
 
 Anyone one know which one it is? I can't seem to identify it.

spam mail?

according to message header:

Received: by lists.ximian.com (Postfix, from userid 38) id B487112466D; Sun,
31 Oct 2004 11:42:56 -0500 (EST)
Received: from test-9o2q20twha.com (i69133.upc-i.chello.nl [62.195.69.133])
by lists.ximian.com (Postfix) with SMTP id 54F8D124045 for
[EMAIL PROTECTED]; Sun, 31 Oct 2004 11:42:50 -0500 (EST)
To: Mono-list [EMAIL PROTECTED]
From: Lupus [EMAIL PROTECTED]
Message-ID: [EMAIL PROTECTED]
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary=viziipwhegwdeesvhubd
X-Spam-Status: No, hits=4.8
required=5.0tests=HTML_30_40,MIME_HTML_ONLY,RCVD_IN_ORBSversion=2.53
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53 (1.174.2.15-2003-03-30-exp)
Subject: [Mono-list] Re: Hello
Sender: [EMAIL PROTECTED]
Errors-To: [EMAIL PROTECTED]
X-BeenThere: [EMAIL PROTECTED]
X-Mailman-Version: 2.0.13

SpanAssassin as you can see can deal with it just fine. need to have it
deployed for your mail needs though.

 
 TTFN
 
 Paul


___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: AW: AW: [Mono-list] Daily build errors

2004-10-28 Thread gennady wexler
I think there should be no room left for guessing. it is clear that one must
uninstall previous installation. cleaning up in build environment was always
a must if you want to get a clean build.

by actually works I wanted to know if what I suggested worked for Jochen.

On 10/28/04 12:19 PM, Paul [EMAIL PROTECTED] wrote:

 Hi,
 
 I wonder if it really actually works now, after you said it might not. how
 do we confirm? :)
 
 Dunno is the simplest answer. Actually, it's simple. Find a few bods
 willing to try both hypothesis who are not using the same distro. I can
 only speak from a RH/FC front and on that side, it was a pain in the
 backside over the install of monocharge. It gets even messier if
 monocharge wasn't installed in /usr, but in /usr/local!
 
 TTFN
 
 Paul


___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] exceptions are not thrown from ThreadPool'ed thread objects?

2004-10-19 Thread gennady wexler
has anyone noticed this problem? that is if you have a ThreadPool'ed thread
object created, any exception thrown inside of that thread will not be
rethrown up at all. I ran into this accidentally while developing some
performance code..

here's an example, could someone please try this with .net compiler/runtime?

if you just compile and run it, the exception in _ThreadProc does not get
thrown.

now, if you uncomment regular thread definition below ThreadPool - you
will get exception 2 get thrown.

any ideas? is this expected? I hope not...

using System;
using System.Threading;

public class main {
static void Main() {
// this will not throw exception 1 (seems to be a bug?)
ThreadPool.UnsafeQueueUserWorkItem(new
WaitCallback(_ThreadProc), null);

// uncomment this to thrown exception 2 (as expected)
// new Thread(new ThreadStart(_ThreadProc2)).Start();

Thread.Sleep(9);
}

private static void _ThreadProc(Object state) {
throw new Exception(exception 1);
}

private static void _ThreadProc2() {
throw new Exception(exception 2);
}
}


___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] exceptions are not thrown from ThreadPool'ed thread objects?

2004-10-19 Thread gennady wexler
how about mono? can you see it not working when run under mono? including
1.1.1? then we need to bug this. would be nice if someone on monodev can
comment on this. is this an unsupported scenario?


On 10/19/04 5:09 AM, Mariano Alarcon [EMAIL PROTECTED] wrote:

 It works as expected with ms.net without having to uncomment anything.
 
 gennady wexler wrote:
 
 has anyone noticed this problem? that is if you have a ThreadPool'ed thread
 object created, any exception thrown inside of that thread will not be
 rethrown up at all. I ran into this accidentally while developing some
 performance code..
 
 here's an example, could someone please try this with .net compiler/runtime?
 
 if you just compile and run it, the exception in _ThreadProc does not get
 thrown.
 
 now, if you uncomment regular thread definition below ThreadPool - you
 will get exception 2 get thrown.
 
 any ideas? is this expected? I hope not...
 
 using System;
 using System.Threading;
 
 public class main {
static void Main() {
// this will not throw exception 1 (seems to be a bug?)
ThreadPool.UnsafeQueueUserWorkItem(new
WaitCallback(_ThreadProc), null);
 
// uncomment this to thrown exception 2 (as expected)
// new Thread(new ThreadStart(_ThreadProc2)).Start();
 
Thread.Sleep(9);
}
 
private static void _ThreadProc(Object state) {
throw new Exception(exception 1);
}
 
private static void _ThreadProc2() {
throw new Exception(exception 2);
}
 }
 
 
 ___
 Mono-list maillist  -  [EMAIL PROTECTED]
 http://lists.ximian.com/mailman/listinfo/mono-list
 
  
 
 


___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] exceptions are not thrown from ThreadPool'ed thread objects?

2004-10-19 Thread gennady wexler
however it throws if you replace ThreadPool with regular Thread object? is
that expected? it would be fine if this was consistent.

by saying its the right behavior, are you referencing to a CLI document?


On 10/19/04 1:09 AM, sarvesh [EMAIL PROTECTED] wrote:

 That's the right behaviour it should not get thrown up to say the Main
 Method. But what is interesting with the code is it should throw an
 UnHandled exception. The code does throw unhandled exception with ms
 .net but not with mono ??
 
 
 
 On Tue, 19 Oct 2004 00:58:26 -0700, gennady wexler [EMAIL PROTECTED] wrote:
 has anyone noticed this problem? that is if you have a ThreadPool'ed thread
 object created, any exception thrown inside of that thread will not be
 rethrown up at all. I ran into this accidentally while developing some
 performance code..
 
 here's an example, could someone please try this with .net compiler/runtime?
 
 if you just compile and run it, the exception in _ThreadProc does not get
 thrown.
 
 now, if you uncomment regular thread definition below ThreadPool - you
 will get exception 2 get thrown.
 
 any ideas? is this expected? I hope not...
 
 using System;
 using System.Threading;
 
 public class main {
 static void Main() {
 // this will not throw exception 1 (seems to be a bug?)
 ThreadPool.UnsafeQueueUserWorkItem(new
 WaitCallback(_ThreadProc), null);
 
 // uncomment this to thrown exception 2 (as expected)
 // new Thread(new ThreadStart(_ThreadProc2)).Start();
 
 Thread.Sleep(9);
 }
 
 private static void _ThreadProc(Object state) {
 throw new Exception(exception 1);
 }
 
 private static void _ThreadProc2() {
 throw new Exception(exception 2);
 }
 }
 
 ___
 Mono-list maillist  -  [EMAIL PROTECTED]
 http://lists.ximian.com/mailman/listinfo/mono-list
 
 ___
 Mono-list maillist  -  [EMAIL PROTECTED]
 http://lists.ximian.com/mailman/listinfo/mono-list


___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Enum problem

2004-10-16 Thread gennady wexler
On 10/16/04 4:33 AM, Iain McCoy [EMAIL PROTECTED] wrote:

 On Sat, 2004-10-16 at 13:17 +0200, Francis Brosnan Blázquez wrote:
 Hi.
 
 Working with enumerations I've found an strange behaviour. If you
 compile the following source code and run it:
 
 --
 using System;
 
 public class EnumTest {
 
 public enum TipoCarga {
 Positivo = 1/3,
 Negativo = 1 + (1/3),
 Neutro   = 1,
 }

 suspect what you're seeing is the compiler automatically coercing all of
 your enum values to ints. This means that 1/3 = 0, so 1 + 1/3 = 0 and

if 1/3 is 0 then how would 1 + 1/3 be 0 too?

 therefore TipoCarga.Neutro == TipoCarga.Negativo. Whether this is what
 css does or not I have no idea, but according to the spec it seems to be
 correct (section 14.3 of the C# language specification 1.2):
 If the declaration of the enum member has a constant-expression
 initializer, the value of that constant expression, implicitly converted
 to the underlying type of the enum, is the associated value of the enum
 member

yep I think that is correct. according to that Neg equals to Nut, since the
values are the same it appears that they just get aligned differently (order
wise) in code by csc and mcs. is it based on alphabetical order perhaps..

in either case, I don't see either compiler doing anything wrong case - no
harm done.


___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Enum problem

2004-10-16 Thread gennady wexler
I think what we wanted to know was why based on different execution sources
we get:

case 1: Negativo prints first
case 2: Neutro prints first

it appears they are aligned differently by compiler (jit in this case).

it is not a question anymore whether these two values are of the same
weight/value.

there are attributes you can specify for enum declaration, I think mono
defaults to something different than what .net does.

it doesn't hurt final product here though, program wont break in such cases.
it will just behave differently than what coder expects it to. :)

we are just being a bit too perfectionist here, we want print out look
exactly the same as it comes out from under .net environment.

so to write this code cleanly you would have to use recommended practices,
that is it would be something like this:

enum EnumVal {
enFirstValue = 1,
enSecondValue,
enThirdValue = 20,
enFourthValue
}

this way compilers will take care of assigning unique values to each of the
values, then your code will behave as you expect it to.

now, to make the original code in this mail thread to work, you will need to
tell compiler the base type of enum construct:

enum DoubleEnumVal : double { // or whatever type you want
enFirstVal = .3, // or I presume 1/3 should also work
enSecond,
enThird
}

however, I almost never see anyone had a need for this kind of precision,
have you?

so there really is no problem here, just matter of proper use of the
language.

does this make sense?


On 10/16/04 11:28 AM, Kirk Marple [EMAIL PROTECTED] wrote:

 The real issue here is about rounding to integers, and enums are ints by
 default, so really the numbers are equivalent to:
 
 Positivo = 0,
 Negativo = 1,
 Neutro = 1
 
 Which would make sense by what you see printed out.
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of gennady wexler
 Sent: Saturday, October 16, 2004 10:54 AM
 To: Iain McCoy; [EMAIL PROTECTED]
 Cc: mono
 Subject: Re: [Mono-list] Enum problem
 
 On 10/16/04 4:33 AM, Iain McCoy [EMAIL PROTECTED] wrote:
 
 On Sat, 2004-10-16 at 13:17 +0200, Francis Brosnan Blázquez wrote:
 Hi.
 
 Working with enumerations I've found an strange behaviour. If you
 compile the following source code and run it:
 
 --
 using System;
 
 public class EnumTest {
 
 public enum TipoCarga {
 Positivo = 1/3,
 Negativo = 1 + (1/3),
 Neutro   = 1,
 }
 
 suspect what you're seeing is the compiler automatically coercing all
 of your enum values to ints. This means that 1/3 = 0, so 1 + 1/3 = 0
 and
 
 if 1/3 is 0 then how would 1 + 1/3 be 0 too?
 



___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


RE: [Mono-list] monodevelop Mac OS X

2004-10-08 Thread gennady wexler
I get this error too if I compile mono from cvs or fink. however if I
install mono macos x binary from mono website, compile monodevelop against
that - everything seems to work.

there's something missing from custom installs of mono on mac os x.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jonel Rienton
Sent: Friday, October 08, 2004 9:26 AM
To: George Birbilis
Cc: mono-list mailing list; Jonel Rienton
Subject: Re: [Mono-list] monodevelop  Mac OS X

Hi George, i replaced my harddrive recently and of course had to recompile
monodevelop again through fink. however, when i ran the monodevelop app,
splash screen pops up as usual but crash with the following message:


___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Beginner C# Book

2004-08-23 Thread gennady wexler
You might want to check out Programming C# by Jesse Liberty, 3rd edition,
pub. O'Reilly, ISBN 0-596-00489-3.

The 3rd edition has complete coverage of .NET 1.1 and in this edition they
added VS.NET 2003, but not too much (50 pages out of 700 something).

I would recommend it to anyone.

Its a great book for a beginner and a pro. It has all basic coverage


On 8/22/04 4:57 PM, Tom McLaughlin [EMAIL PROTECTED] wrote:

 Hi Peter, one thing pointed out to me off list is that I need to be
 aware that many C# books are geared towards the MS platform and will
 spend a lot of time on Windows Forms and the Visual Studio .NET tools.
 Is that the case with Learning C#?  Thanks.
 
 Tom
 
 On Sun, 2004-08-22 at 17:36 -0600, Peter Dennis Bartok wrote:
 O'Reilly : Learning C# it teaches from the ground up, and then O'Reilly's
 Programming C#, which introduces you to things like ASP.Net and SWF.
 
 Peter
 
 
 -Original Message-
 From: Tom McLaughlin [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Date: Sunday, 22 August, 2004 16:39
 Subject: [Mono-list] Beginner C# Book
 
 
 Hi all,
 
 I'm looking for a good beginner C# book.  Preferably one that does not
 assume a certain amount of familiarity with C++, Java, or OOP in
 general.  I picked up Mono: A Developers Notebook from O'Reilly
 figuring that some of the C++ I saw in school would come back to me.
 What I saw in school was nearly five years ago and it's definitely not
 coming back.
 
 I really need a book that will not only go over the syntax and structure
 of the language but the underlying fundementals of the language.  (Like
 not just how to create a vector but what each part of the declaraion
 means and how it all works.)  Right now I maintain the FreeBSD port for
 Muine and I am looking at creating ports of other applications.  I would
 like to have enough familiarity with the language to fix bugs,
 especially FreeBSD specific bugs in programs.
 
 If someone could recommend a book they found to give a good
 comprehensive understanding of the language to a beginner that would be
 great.  Thanks.
 
 Tom
 
 ___
 Mono-list maillist  -  [EMAIL PROTECTED]
 http://lists.ximian.com/mailman/listinfo/mono-list
 
 
 
 
 ___
 Mono-list maillist  -  [EMAIL PROTECTED]
 http://lists.ximian.com/mailman/listinfo/mono-list


___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Keyword this or base expected(CS1018)

2004-08-21 Thread gennady wexler
in constructor of your class:

class MyClass {
public MyClass(Glade.XML gxml, Database database)
: base(gxml, database) {
// rest of your construction logic goes here
}

you base class needs to be ready for the case if null objects were passed
and react accordingly.

On 8/21/04 9:56 PM, Rob Brown-Bayliss [EMAIL PROTECTED] wrote:

 
 OK, so how do I pass args to the base class?
 
 I thought:
 
 MyClass my_class = new MyClass(gxml, database);
 
 would pass gxml and database to the base class of MyClass?
 
 This is wrong.
 
 While calling the contructor, the gxml and database are undefined. If
 you be appropriate to call as:
 
 public MyClass(): base(null, null)
 {
 ...
 }
 
 or better still:
 
 public MyClass(): base( (Glade.XML) null, (Database) null )
 {
 ...
 }
 
 Use the latter option if there are more than one overloaded
 consturctor in the base class that can make up for BaseClass(null,
 null).
 
 NB: I have assumed that Glade.XML is not enum.
 
 
 
 Cheers,
 Gaurav Vaish
 http://gallery.mastergaurav.net
 ---
 
 
 On Sun, 22 Aug 2004 16:19:03 +1200, Rob Brown-Bayliss [EMAIL PROTECTED]
 wrote:
 
 Why does this:
 
 public MyClass() : base (Glade.XML gxml, Database database)
 
 give me this error?
 
 Keyword this or base expected(CS1018)
 
 --
 Rob Brown-Bayliss
 
 
 ___
 Mono-list maillist  -  [EMAIL PROTECTED]
 http://lists.ximian.com/mailman/listinfo/mono-list


___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Keyword this or base expected(CS1018)

2004-08-21 Thread gennady wexler
of course this wont compile, since you class needs to be deriving from a
class which we will consider a base that has a constructor that takes your
type of arguments:

so to correct the below should look like this:

 class MyBase {
 public MyBase (Glade.XML gxml, Database database) {
 // rest of your construction logic goes here
 }

 class MyClass : MyBase {
 public MyClass (Glade.XML gxml, Database database)
 : base(gxml, database) {
 // rest of your construction logic goes here
 }

hope this helps.

On 8/21/04 10:15 PM, gennady wexler [EMAIL PROTECTED] wrote:

 in constructor of your class:
 
 class MyClass {
 public MyClass(Glade.XML gxml, Database database)
 : base(gxml, database) {
 // rest of your construction logic goes here
 }
 
 you base class needs to be ready for the case if null objects were passed
 and react accordingly.
 
 On 8/21/04 9:56 PM, Rob Brown-Bayliss [EMAIL PROTECTED] wrote:
 
 
 OK, so how do I pass args to the base class?
 
 I thought:
 
 MyClass my_class = new MyClass(gxml, database);
 
 would pass gxml and database to the base class of MyClass?
 
 This is wrong.
 
 While calling the contructor, the gxml and database are undefined. If
 you be appropriate to call as:
 
 public MyClass(): base(null, null)
 {
 ...
 }
 
 or better still:
 
 public MyClass(): base( (Glade.XML) null, (Database) null )
 {
 ...
 }
 
 Use the latter option if there are more than one overloaded
 consturctor in the base class that can make up for BaseClass(null,
 null).
 
 NB: I have assumed that Glade.XML is not enum.
 
 
 
 Cheers,
 Gaurav Vaish
 http://gallery.mastergaurav.net
 ---
 
 
 On Sun, 22 Aug 2004 16:19:03 +1200, Rob Brown-Bayliss [EMAIL PROTECTED]
 wrote:
 
 Why does this:
 
 public MyClass() : base (Glade.XML gxml, Database database)
 
 give me this error?
 
 Keyword this or base expected(CS1018)
 
 --
 Rob Brown-Bayliss
 
 
 ___
 Mono-list maillist  -  [EMAIL PROTECTED]
 http://lists.ximian.com/mailman/listinfo/mono-list
 
 
 ___
 Mono-list maillist  -  [EMAIL PROTECTED]
 http://lists.ximian.com/mailman/listinfo/mono-list


___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] FW: [Gtk-sharp-list] Fontconfig error: Cannot load default config file

2004-08-17 Thread gennady wexler
could someone please help me with this? how do I fix fontconfig?

this is max os x installation. everything builds and installs, however fonts
appear to be not installed correctly.

mono 1.0 and mono 1.0.1
gtk# 1.0

-- Forwarded Message
 From: gennady wexler [EMAIL PROTECTED]
 Date: Mon, 16 Aug 2004 10:25:04 -0700
 To: GTK# [EMAIL PROTECTED]
 Subject: [Gtk-sharp-list] Fontconfig error: Cannot load default config file
 
 hello,
 
 does anyone know how to fix fontconfig? I followed almost all possible
 solutions and still not able to get this resolved.
 
 I have fontconfig2-dev package installed prior to compiling of everything.
 
 apple:~ adyler$ monodoc
 Fontconfig error: Cannot load default config file
 
 thanks for your help in advance.
 
 
 ___
 Gtk-sharp-list maillist  -  [EMAIL PROTECTED]
 http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

-- End of Forwarded Message


___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list