[Mono-docs-list] Re: [Mono-dev] Monodoc

2005-10-03 Thread Rafael Ferreira
you should take a look at this:

http://people.mosaix.net/chris/tutorials/monodoc/monodoc-tutorial.html

and if you still have questions please post on to the monodoc mailing
list only. No need to cross post.  

- raf

On Mon, 2005-10-03 at 17:38 +0200, Matthijs ter Woord wrote:
 Is there any special format needed? (IE, ecma xml docs etc) If so, could
 anyone point me to it?
 
 
 Regards,
 
 Matthijs ter Woord
 
 
 
 
 - Original Message -
 From: Miguel de Icaza [EMAIL PROTECTED]
 To: Matthijs ter Woord [EMAIL PROTECTED];
 mono-docs-list@lists.ximian.com
 Cc: [EMAIL PROTECTED]
 Sent: Friday, September 30, 2005 4:20 AM
 Subject: Re: [Mono-dev] Monodoc
 
 
  Hello,
 
   When will monodoc be ready for .NET 2.0 classes? (ie, when will it
   also allow to document generics)
 
  We will have to wait for someone to contribute the necessary code to
  cope with this.  I have not had much time to look into this issue.
 
  What needs to be done is:
 
  * Look at the new ECMA XML documentation from ECMA and evaluate
how we could bring those changes into our documentation.
 
  * Someone would have to port the new docs nonetheless.
 
  * Someone would have to architect the changes to the monodoc
engine to do so.
 
  The right place to discuss this is the mono-docs-list.
 
  That being said, if you can not wait to write some documentation, we
  have a *lot* of stuff in the 1.x profile that needs documentation.
  Considering that 2.x stuff wont be 100% supported for a while, maybe it
  would be best to contribute to the 1.x effort.
 
 
 
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 

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


[Mono-docs-list] Re: [Mono-dev] Monodoc

2005-10-03 Thread Joshua Tauberer

Matthijs ter Woord wrote:

Is there any special format needed? (IE, ecma xml docs etc) If so, could
anyone point me to it?


So the goal is to extend our XML format to handle generic classes, and 
that includes 1) how to include the generic part of a type/member 
signature in the metadata parts of the XML, and 2) how this affects 
see tags.  (Maybe there are more things not coming to mind.)  As for 
(1), I think we can do this however we want.  Monodocer and the monodoc 
stylesheet would just need to be updated.  For (2), we want to remain 
compatible with the inline documentation format Microsoft uses, for 
instance to be compatible with NDoc.


So, what would be useful would be for someone to dig around and see if 
Microsoft has updated their /doc tag reference for generics.


Updating monodocer means having it be compiled with gmcs so it can 
reflect to get generics.  But, monodocer should really be changed to use 
Cecil (rather than reflection) first before doing this.  Does anyone 
know how Cecil is doing?  (The main reasons to not use reflection is 
that reflection doesn't give access to how attribute are constructed, so 
currently monodocer is making up something reasonable to display.)


- Josh


- Original Message -
From: Miguel de Icaza [EMAIL PROTECTED]
To: Matthijs ter Woord [EMAIL PROTECTED];
mono-docs-list@lists.ximian.com
Cc: [EMAIL PROTECTED]
Sent: Friday, September 30, 2005 4:20 AM
Subject: Re: [Mono-dev] Monodoc




Hello,



When will monodoc be ready for .NET 2.0 classes? (ie, when will it
also allow to document generics)


We will have to wait for someone to contribute the necessary code to
cope with this.  I have not had much time to look into this issue.

What needs to be done is:

* Look at the new ECMA XML documentation from ECMA and evaluate
 how we could bring those changes into our documentation.

* Someone would have to port the new docs nonetheless.

* Someone would have to architect the changes to the monodoc
 engine to do so.

The right place to discuss this is the mono-docs-list.

That being said, if you can not wait to write some documentation, we
have a *lot* of stuff in the 1.x profile that needs documentation.
Considering that 2.x stuff wont be 100% supported for a while, maybe it
would be best to contribute to the 1.x effort.

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


[Mono-docs-list] Re: [Mono-dev] Monodoc

2005-10-03 Thread Joshua Tauberer

Alexandre Miguel Pedro Gomes wrote:
Monodoc would need a profile chooser or something like that to switch 
between 1.x and 2.0 profile, right? Any plans on those things?


I imagine that we'll show the 2.0 docs (at some point) but new 
members/types will be tagged as being introduced in 2.0.  That's a 
really long way off, though.



Btw anyone knows why the C# specification appears without newlines?


Where?  Mostly it displays fine for me (on the web and in monodoc).  I 
recall that there are tables somewhere in there that aren't shown right 
because the column separators are gone from the source XML files.


--
- Joshua Tauberer

http://taubz.for.net

** Nothing Unreal Exists **


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


Re: [Mono-dev] Newbie Building mono - bootstrapping

2005-10-03 Thread Paolo Molaro
On 09/29/05 Krishna Ganugapati wrote:
 When I refer to the help, it asks me to bring down monolite-some-version 
 because it should give me the bootstrap tools. I bring down monolite and 
 copy the images in the right place, but still no good.

If you used a released tarball (as you should have) ignore the monolite
requirement: you likely need to install the dc utility (a command-line
calculator). We hope to remove this build requirement from future
tarballs.

lupus

-- 
-
[EMAIL PROTECTED] debian/rules
[EMAIL PROTECTED] Monkeys do it better
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Regarding MONO on Embedded Device.

2005-10-03 Thread Paolo Molaro
On 09/30/05 conn intel wrote:
 I am a computer science student. Our college is having embedded board on
 which there is 16 MB of flash. We have compress the kernel to 8 MB and our
 application is of 2 MB. So i Need help in using MONO on such a Environment.
 Its very hard or i say next to impossible for me to increase the flash.
 
 Can any one help me doing so First of all is it possible to reduce the
 size what i want. Second if is it possible than pls kindly suggest me the
 tips or the procedure to follow.

You can compile the mono JIT to 1.2 MB on x86 by compiling with
CFLAGS=-Os. Add mscorlib and you're at slightly more than 3 MB.
You can remove most of the locale info in the runtime by
reading the info in
mono/tools/locale-builder/Makefile.am
mscorlib has lots of culture-related data that you may want to remove
(you can save at least 200KB there). Atsushi may want to provide details
for this.
You can also configure mono to remove features that are not likely
needed on your system, like aot and the profiler. Run:
./configure --enable-minimal=aot,profiler
There are other things that can be removed, too, like most of
metadata/verifier.c as well as lots of classes in mscorlib and other
assemblies. You can do it easily with the powerful tool known as
preprocessor conditional directive:
#if 0
/* unneeded features */
#endif

You'll be able to get an almost full-featured mono runtime in 2.5 MBs.
Good luck with your homework!

lupus

-- 
-
[EMAIL PROTECTED] debian/rules
[EMAIL PROTECTED] Monkeys do it better
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Mono Webservices Bug

2005-10-03 Thread Yngve Zackrisson
Hi

I do not know if you have any help by this knowledge but 
I run .NET Remoting between a Win32 MS .NET client 
and a Linux (Fedora Core 3) Mono server.
I invoke the remote objects methods with HTTP (Binary Formater) 
and is able to both add DataSets as parameters and returns.

In other words, your problems seems to be specific to Webservices 
(in Mono).

Regards 

Yngve Zackrsson.


On Sat, 2005-10-01 at 03:53, Ko Ko wrote:
 Hi,
  
 I notice that when I run Webservice on Linux with Mono, I got some
 problem with Data return from web services. When I return simple data
 like string from web services
  
 public string Hello()
 {
  return Hello;
 }
  
 my web application can receive the data return as string by invoking
  
 lblHello.Text = client.Hello();
  
 But when I try to return like DataSet from webservices 
  
 It cannot be receive correctly as Dataset string by invoking from my
 webapplication like
  
 DataSet data=client.GetDataFromWebService();
  
 The system recognize data return from GetDataFromWebService() as XML
 Element instead of DataSet although I am explicitly delclare on the
 Webservice like
  
 public DataSet GetDataFromWebService()
  
 {DataSet dataset;
  //some codes here
  return dataset;
 }
  
 My program works fine when I am tested with Microsoft .Net and return
 the data typle correctly as DataSet instead of returning the wrong
 type XLM Element.
  
 Is there anyway to solve this problem?
  
 My mono version is mono 1.1.9.1 and I am running it on suse enterprise
 9. The webservice itself on mono is working fine. Only when I
 reference the webservice to webapplication I got this problem.
  
 The error message says
  
 c:\inetpub\wwwroot\wa\Login.aspx.cs(62): Cannot implicitly convert
 type 'System.Xml.XmlElement' to 'System.Data.DataSet'
 
 The data return type is already set to DataSet. The system always
 think that it is XmlElement. 
  
 Regards,
 Ko Ko
  
  
 
 
 
 Reality starts with Dream 
 
 
 __
 Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort. 
 
 __
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list

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


Re: [Mono-dev] Mono Webservices Bug

2005-10-03 Thread Lluis Sanchez
Hi,

This is a known bug already fixed in SVN HEAD.

El dv 30 de 09 del 2005 a les 18:53 -0700, en/na Ko Ko va escriure:
 Hi,
  
 I notice that when I run Webservice on Linux with Mono, I got some
 problem with Data return from web services. When I return simple data
 like string from web services
  
 public string Hello()
 {
  return Hello;
 }
  
 my web application can receive the data return as string by invoking
  
 lblHello.Text = client.Hello();
  
 But when I try to return like DataSet from webservices 
  
 It cannot be receive correctly as Dataset string by invoking from my
 webapplication like
  
 DataSet data=client.GetDataFromWebService();
  
 The system recognize data return from GetDataFromWebService() as XML
 Element instead of DataSet although I am explicitly delclare on the
 Webservice like
  
 public DataSet GetDataFromWebService()
  
 {DataSet dataset;
  //some codes here
  return dataset;
 }
  
 My program works fine when I am tested with Microsoft .Net and return
 the data typle correctly as DataSet instead of returning the wrong
 type XLM Element.
  
 Is there anyway to solve this problem?
  
 My mono version is mono 1.1.9.1 and I am running it on suse enterprise
 9. The webservice itself on mono is working fine. Only when I
 reference the webservice to webapplication I got this problem.
  
 The error message says
  
 c:\inetpub\wwwroot\wa\Login.aspx.cs(62): Cannot implicitly convert
 type 'System.Xml.XmlElement' to 'System.Data.DataSet'
 
 The data return type is already set to DataSet. The system always
 think that it is XmlElement. 
  
 Regards,
 Ko Ko
  
  
 
 
 
 
 Reality starts with Dream 
 
 
 __
 Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort. 
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list

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


Re: [Mono-dev] mcs bug breaks MD build

2005-10-03 Thread Alexandre Miguel Pedro Gomes
Ohh well it just looked as an exceptional case so I just did point it.
But I guess that if I did re-read the code I would get there... just to
lazzy :)

Thanks for the fixOn 10/3/05, Raja R Harinath [EMAIL PROTECTED] wrote:
Hi,Alexandre Gomes [EMAIL PROTECTED] writes: In revision #51007 the mcs/suport.cs file has broken the MD build. The problem is when mcs tries to assign the 
SeekableStreamReader.Position it trows an Exception can't seek that far back: 0.Should be fixed in SVN r51106.Just an over-eager bounds check.Thanksfor pointing it out. After looking the old code I guess that the problem can be related to
 this removed code: if (value == 0) // Skip preamblevalue = preamble_size; Just a guess... anyway I reverted my file copy to 51006 and it is working ok.Nope (or in a way yes :-)
The old code was buggy in many ways.It was trying to determine thestate of an abstraction two-deep by reading tea leaves and chickenentrails (well, actually, it was trying to guess at the appropriate seek
position of the underlying byte stream by looking at the number ofcharacters read from the surrounding reader -- through two buffers and alossy decoding step).That snippet of code you point to is the one
that prompted me to rewrite the whole damned thing.(So, in a way, yes.It's related to its removal ;-)- Hari-- Alexandre Gomes, Portugal
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Mono.Unix - UnixDirectoryInfo.IsSymbolyicLink question

2005-10-03 Thread Paddy Joy

Hi,

Hope someone can help me out with this little problem I'm having.

I have a directory /home/paddy/test which contains one sub-directory and 
one symbolic link:


[EMAIL PROTECTED] test]# ls -lh
total 12K
drwxr-xr-x  2 root root 4.0K Oct  3 20:38 directory
lrwxrwxrwx  1 root root4 Oct  3 20:39 SYMLINK - /tmp
-rw-r--r--  1 root root  535 Oct  3 20:41 test.cs
-rwxr-xr-x  1 root root 3.5K Oct  3 20:41 test.exe
[EMAIL PROTECTED] test]#


When I run the following code:


using System;
using System.Data;
using System.IO;
using Mono.Unix;

namespace test
{
   class test
   {
   static void Main(string[] args)
   {
   UnixDirectoryInfo test1 = new 
UnixDirectoryInfo(/home/paddy/test/directory);


   Console.WriteLine(test1.FullName);
   Console.WriteLine(test1.IsSymbolicLink);

   UnixDirectoryInfo test2 = new 
UnixDirectoryInfo(/home/paddy/test/SYMLINK);


   Console.WriteLine(test2.FullName);
   Console.WriteLine(test2.IsSymbolicLink);
   }
   }
}

I get the output:

/home/paddy/test/directory
False
/home/paddy/test/SYMLINK
False


Should I get True for the symbolic link /home/paddy/test/SYMLINK? Am I 
misunderstanding the meaning of the property IsSymbolicLink or is it 
just my dodgy code?


Paddy

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


Re: [Mono-dev] Arrays in a loop?

2005-10-03 Thread Martin Hinks
Hi Eric,

First off, why are you enclosing the array name in curly braces?
MyArray[i, 0] should do the trick...

Secondly, how is your array defined? Have you checked that the
exception thrown isn't an Out of range exception? If it IS an
out-of-range exception you need to declare your array differently, if
not, post the declaration as well and i'll try to help more.

Thanks,

Martin Hinks

On 10/3/05, Eric Scott [EMAIL PROTECTED] wrote:
 I have a newbie C# question that I've been having difficulties
 finding an answer to.  I have a global array, and am trying to assign
 data to it from as follows:

 int i = 0;

 foreach ( DataRow row in table.Rows )
 {
 {MyArray}[i, 0] = a;
 {MyArray}[i, 1] = x;
 {MyArray}[i, 2] = y;
 {MyArray}[i, 3] = z;

 i ++;
}

 All the code executes properly once, but then stalls the second time
 it attempts to go through the loop.  I've gathered there's something
 quarky about using arrays in a loop like this, but I haven't found any
 down-to-earth explanations that let me know how to fix my code.
 Thanx for any help you can offer,
  SigmaX

 --
 My home page: www.sigmax.cjb.net

 Education is what remains after one has forgotten everything he learned in 
 school
 -Albert Einstein


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



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


Re: [Mono-dev] Bug with your exception-optimization

2005-10-03 Thread Robert Jordan

Hi Hubert,


I've seen that your have commited an optimization in exception handling
in mini... Fri Sept 30...
I've found a very very nasty bug...


In the meanwhile you may try to run with that specific
optimization turned off:

mono --optimize=-exception ...

Rob

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


Re: [Mono-dev] Bug with your exception-optimization

2005-10-03 Thread Zoltan Varga
  Hi,

  Could you create a testcase which doesn't depend on System.Data+Oracle
etc ?

  Zoltan

On 10/3/05, Hubert FONGARNAND [EMAIL PROTECTED] wrote:
  Hello,
  I've seen that your have commited an optimization in exception handling in
 mini... Fri Sept 30...
  I've found a very very nasty bug...

  Try this test case :

  // project created on 03/10/2005 at 11:30
  using System;
  using System.Data;
  using System.Data.OracleClient;


  class MainClass
  {



private static void CreateDummy()
{
 IDbConnection sqlCon = new OracleConnection(user id=hubert;data
 source=10.69.100.181:1521/ORALINUX;password=cosmic);
 IDbCommand command = sqlCon.CreateCommand();
 command.Connection = sqlCon;
 sqlCon.Open();
 command.CommandText =
  @ DROP TABLE INTRA_LANGUE CASCADE CONSTRAINTS;
  try{
 command.ExecuteNonQuery();
 }catch(Exception e)
 {}
 command.CommandText =
  @ CREATE TABLE INTRA_LANGUE (LANGUE_CODE VARCHAR2(40) NOT NULL,LANGUE
 VARCHAR2(100), CONSTRAINT PK_INTRA_LANGUE PRIMARY KEY (LANGUE_CODE));
 command.ExecuteNonQuery();
 sqlCon.Close();
}

  public void checkexception(Exception e, IDbCommand command, string stack)
  {
  //Console.WriteLine(e.GetType().ToString());
  try
  {
  throw e;
  }
  catch (OracleException ee)
  {
  Console.WriteLine(OracleException :::+ee.Message);
  Console.WriteLine(Command text :+command.CommandText);
  foreach (IDataParameter param in command.Parameters)
  {
  Console.WriteLine(param.ParameterName);
  Console.WriteLine(param.Value.ToString());
  }

  }
  }

public void Test()
{
 IDbCommand command=new OracleCommand();
 try
 {
 NSUniDataAccess.UniDataAccess.SetDb(Oracle);
 IDbConnection sqlCon =
 NSUniDataAccess.UniDataAccess.GetConnection(user
 id=hubert;data
 source=10.69.100.181:1521/ORALINUX;password=cosmic);
 command = sqlCon.CreateCommand();
 command.Connection = sqlCon;
 sqlCon.Open();
  OracleParameter p1 = new OracleParameter(param1,OracleType.VarChar);
  p1.Value = en;
  OracleParameter p2 = new OracleParameter(param2,OracleType.VarChar);
  p2.Value = english;
  command.Parameters.Add(p1);
  command.Parameters.Add(p2);
 command.CommandText =
  @ INSERT INTO INTRA_LANGUE (LANGUE_CODE,LANGUE)
 VALUES(:param1,:param2);
 command.ExecuteNonQuery();
 command.CommandText =
  @ INSERT INTO INTRA_LANGUE (LANGUE_CODE,LANGUE)
 VALUES(:param1,:param2);
 // Should throw a Unique constraint exception...
 command.ExecuteNonQuery();
 sqlCon.Close();
 }
 catch(Exception e)
 {
  Console.WriteLine(oops : execption);
  checkexception(e,command,e.StackTrace);
 }
 return;
}
  public static void Main(string[] args)
  {
  CreateDummy();
  Console.WriteLine(Hello World!);
  MainClass monprog=new MainClass();
  monprog.Test();
  }
  }

  With the last svn revision : i got as a result of this program:

  Hello World!
  oops : execption
  OracleException :::ORA-1: unique constraint (HUBERT.PK_INTRA_LANGUE)
 violated

  Command text : INSERT INTO INTRA_LANGUE (LANGUE_CODE,LANGUE)
 VALUES(:param1,:param2)
  param1
  en

  Unhandled Exception: System.NullReferenceException: Object reference not
 set to an instance of an object
  in [0x0006b] (at
 /home/hubert/Projects/ExceptionBug/Main.cs:47)
 MainClass:checkexception (System.Exception e, IDbCommand command,
 System.String stack)
  in [0x000bf] (at
 /home/hubert/Projects/ExceptionBug/Main.cs:79)
 MainClass:Test ()
  in [0x00016] (at
 /home/hubert/Projects/ExceptionBug/Main.cs:88)
 MainClass:Main (System.String[] args)

  If I revert your changes : I get :
  Hello World!
  oops : execption
  System.Data.OracleClient.OracleException
  OracleException :::ORA-1: unique constraint (HUBERT.PK_INTRA_LANGUE)
 violated

  Command text : INSERT INTO INTRA_LANGUE (LANGUE_CODE,LANGUE)
 VALUES(:param1,:param2)
  param1
  en
  param2
  english


  I dont't know exactly what's the underlying problem, but I know that this
 regression is caused by your commit...

  Thanks... ___
 Ce message et les �ventuels documents joints peuvent contenir des
 informations confidentielles.
 Au cas o� il ne vous serait pas destin�, nous vous remercions de bien
 vouloir le supprimer et en aviser imm�diatement l'exp�diteur. Toute
 utilisation de ce message non conforme � sa destination, toute diffusion ou
 publication, totale ou partielle et quel qu'en soit le moyen est
 formellement interdite.
 Les communications sur internet n'�tant pas s�curis�es, l'int�grit� de ce
 message n'est pas assur�e et la soci�t� �mettrice ne peut �tre tenue pour
 responsable de son contenu.
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list



___
Mono-devel-list mailing 

Re: [Mono-dev] Bug with your exception-optimization

2005-10-03 Thread Atsushi Eno
Hi,

I guess the attached one _might_ reproduce the problem. XSLT testcase
is still not preferable but at least it works standalone.

Atsushi Eno

Zoltan Varga wrote:
   Hi,
 
   Could you create a testcase which doesn't depend on System.Data+Oracle
 etc ?
 
   Zoltan

using System;
using System.Xml;
using System.Xml.Xsl;

namespace test
{
public class Test
{
public static void Main ()
{
// bug #76115
XmlDocument doc = new XmlDocument ();
doc.LoadXml (xsl:transform 
xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0' /);
XslTransform xslt = new XslTransform ();
xslt.Load (doc, null, null);
XmlReader reader = xslt.Transform(doc, null, new 
XmlUrlResolver ());
reader.Read ();

// another case - with xsl:output standalone='yes'
doc.LoadXml (xsl:transform 
xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0' xsl:output 
standalone='yes' indent='no'/xsl:template 
match='/'foo//xsl:template/xsl:transform);
xslt = new XslTransform ();
xslt.Load (doc, null, null);
reader = xslt.Transform (doc, null, new XmlUrlResolver 
());
while (!reader.EOF)
reader.Read (); // btw no XMLdecl output.
}
}
}

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


Re: [Mono-dev] Bug with your exception-optimization

2005-10-03 Thread Robert Jordan

Hi Zoltan,


  Could you create a testcase which doesn't depend on System.Data+Oracle
etc ?


It seems that the stack frame gets corrupted.

Rob
using System;
using System.Collections;

public class CustomException : ApplicationException
{
}

class Foo {
static void Main(string[] args) {
try {
throw new CustomException();
}
catch (CustomException ex) {
Bad (ex, new Object());
// Good (ex);
}
}

static void Bad (Exception ex, object o)
{
try {
throw ex;
}
catch (CustomException e)
{
Console.WriteLine (e);
Console.WriteLine (o);
}
}

static void Good (Exception ex)
{
try {
throw ex;
}
catch (CustomException e)
{
Console.WriteLine (e);
}
}
}
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Newbie Building mono - bootstrapping

2005-10-03 Thread Thomas Harning Jr.
For the Mono x86 binaries, you just need to compile the system from
the mono folder.  The mono executable doesn't need anything related
to .Net to compile, so no need to obtain binaries.  (You may, of
course, need to obtain the libraries that mono needs, but I can't
recall what they are ATM).


-- 
Thomas Harning Jr.


signature.asc
Description: OpenPGP digital signature
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Uncompilable mcs in daily packages

2005-10-03 Thread Tomas Kalibera

Hi,

there is a new problem with compilation of daily packages, the mcs 
compiler mcs.exe cannot be compiled, error messages are below. This 
problem started on the daily package from September 22nd and remains 
till now (version from October 2nd). Because of this problem I could not 
check the Wade Berrier's patch for building Firebird support.




mcs   -d:NET_1_1 -d:ONLY_1_1 -d:BOOTSTRAP_WITH_OLDLIB -debug -target:exe 
-out:mcs.exe cs-parser.cs  @mcs.exe.sources

make[7]: mcs: Command not found
make[7]: *** [../class/lib/basic/mcs.exe] Error 127



BTW, are the daily packages being checked if they're buildable ?
Would it help if I send automatically a make output whenever the build 
fails ? Where should I send it, then ?


Tomas

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


Re: [Mono-dev] Mono 1.1.9.1 Windows Installer Released

2005-10-03 Thread Wade Berrier
How long has it used relative paths?

I'm wondering because the linux installer still uses wrapper scripts for
the native binaries (mono, monodis, etc...).

Maybe that's not needed anymore as well?

Wade

On Fri, 2005-09-30 at 17:33 +0200, Zoltan Varga wrote:
 It uses relative paths, so its ok.
 
Zoltan
 
 On 9/30/05, Kornél Pál [EMAIL PROTECTED] wrote:
  Hi,
 
  I take that back. I had MONO_CFG_DIR set in my environment, this is why
  it didn't work.
 
  Is mono.exe using directories relative to it's own location or does it have
  any hardcoded paths?
 
  Kornél
 
  - Original Message -
  From: Zoltan Varga [EMAIL PROTECTED]
  To: Wade Berrier [EMAIL PROTECTED]
  Cc: Francisco Martinez [EMAIL PROTECTED];
  mono-devel-list@lists.ximian.com
  Sent: Friday, September 30, 2005 4:37 PM
  Subject: Re: [Mono-dev] Mono 1.1.9.1 Windows Installer Released
 
 
  Hi,
  
   - also, bug
  
   http://bugzilla.ximian.com/show_bug.cgi?id=75815
  
   still doesn't work. The problem here is that the MONO_CFG_DIR
   variable, which was
   set in the mono.bat file in the past, is now not set at all, so the
   runtime defaults to a
   value from the build environment, i.e.
  
   C:\cygwin\usr\local\etc\mono\1.0\machine.config ()
  
   I will try to fix this.
  
 
  I take that back. I had MONO_CFG_DIR set in my environment, this is why
  it didn't work.
 
   Zoltan
 
   - also, as Kornel said, the runtime should not be statically linked,
   but instead it should be
 dynamically linked against a mono-1.dll file. This should be the
   default in our build process, so I don't know why this isn't
   happening. What configure arguments are you
   using when building the runtime ?
  
Zoltan
  
  
  
  
  
  
  
  
  
   On 9/30/05, Wade Berrier [EMAIL PROTECTED] wrote:
Get 'em while it's hot:
   
http://www.go-mono.com/archive/1.1.9.1_1/windows/mono-1.1.9.1-gtksharp-1.0.10-2.3.91-win32-0.exe
   
Thanks for the suggestions and input.  There are improvements to be
made, but this should do for now.  Let me know of any installer issues.
   
Thanks Paco, you rock :)
   
   
Wade
   
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list
   
  
  ___
  Mono-devel-list mailing list
  Mono-devel-list@lists.ximian.com
  http://lists.ximian.com/mailman/listinfo/mono-devel-list
 
 
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 

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


Re: [Mono-dev] Monodoc

2005-10-03 Thread Matthijs ter Woord
Is there any special format needed? (IE, ecma xml docs etc) If so, could
anyone point me to it?


Regards,

Matthijs ter Woord




- Original Message -
From: Miguel de Icaza [EMAIL PROTECTED]
To: Matthijs ter Woord [EMAIL PROTECTED];
mono-docs-list@lists.ximian.com
Cc: [EMAIL PROTECTED]
Sent: Friday, September 30, 2005 4:20 AM
Subject: Re: [Mono-dev] Monodoc


 Hello,

  When will monodoc be ready for .NET 2.0 classes? (ie, when will it
  also allow to document generics)

 We will have to wait for someone to contribute the necessary code to
 cope with this.  I have not had much time to look into this issue.

 What needs to be done is:

 * Look at the new ECMA XML documentation from ECMA and evaluate
   how we could bring those changes into our documentation.

 * Someone would have to port the new docs nonetheless.

 * Someone would have to architect the changes to the monodoc
   engine to do so.

 The right place to discuss this is the mono-docs-list.

 That being said, if you can not wait to write some documentation, we
 have a *lot* of stuff in the 1.x profile that needs documentation.
 Considering that 2.x stuff wont be 100% supported for a while, maybe it
 would be best to contribute to the 1.x effort.



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


Re: [Fwd: Re: [Mono-dev] Mono 1.1.9.1 Windows Installer Released]

2005-10-03 Thread Wade Berrier
Hey,

On Sat, 2005-10-01 at 02:23 +0200, Zoltan Varga wrote:

 This works fine on my system using latest cygwin. My libint is in
 /lib/libintl.a. Perhaps you don't have that package installed, or
 libintl-1.dll is in a directory
 in your PATH so libtool finds it first ?

This same error happens with a lot of deps when I link (gmodule-2.0,
gthread-2.0, glib-2.0, intl, iconv, ws2_32, psapi, 
ole32).

I do have libintl-1.dll in my path.  What should my environment be?

Are you using the cygwin glib deps?  I'm using the following glib deps:

ftp://ftp.gtk.org/pub/gtk/v2.6/win32/glib-2.6.6.zip
ftp://ftp.gtk.org/pub/gtk/v2.6/win32/glib-dev-2.6.6.zip
http://www.gimp.org/~tml/gimp/win32/pkgconfig-0.15.zip
http://www.gimp.org/~tml/gimp/win32/libiconv-1.9.1.bin.woe32.zip
http://www.gimp.org/~tml/gimp/win32/gettext-0.14.5.zip

I'm using these so that I can build with them and also package them up
for the installer.

I guess the only other place I know about that I could get the deps is
from gladewin32.  He doesn't offer zip files (which is easier to
automate with) but if I had to, I could create a zip file from what his
installer lays down.

I don't think that using the gladewin32 fixes the problem though.  I
still get the same errors when I build against the 1.1.8.3 mono
installer, and 1.1.8.3 came with the gladewin32 files.

Ideas?

Wade

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


Re: [Mono-dev] Arrays in a loop?

2005-10-03 Thread Martin Hinks
Very simple answer:

1 of the data types it is trying to load in is not a Single!

Put each statement inside a try-catch block and it should all work -
set default to 0 or check your data if you didn't expect this.

Martin

On 10/3/05, SigmaX [EMAIL PROTECTED] wrote:
 Martin Hinks wrote:
 Hi Eric,
 
 First off, why are you enclosing the array name in curly braces?
 MyArray[i, 0] should do the trick...
 
 Heh; I meant to imply that that was just an example array name.  I
 should have just left them out of the example, as they were unnecessary.
 Secondly, how is your array defined? Have you checked that the
 exception thrown isn't an Out of range exception? If it IS an
 out-of-range exception you need to declare your array differently, if
 not, post the declaration as well and i'll try to help more.
 
 Thanks,
 
 Martin Hinks
 
 Thanx for your time.

 It seems the problem was not, as I first supposed, directly related to
 the array.  Actually the example I gave compiles fine... but it wasn't
 exactly what I was doing :-P.

 The actual loop is as follows:

foreach ( DataTable table in loaded_chart.Tables )
{
// Repeat for each row in the table.
int i = 0;

foreach ( DataRow row in table.Rows )
{
lms_table[i, 0] =
Convert.ToSingle(row[keytext]);
lms_table[i, 1] = Convert.ToSingle(row[L]);
lms_table[i, 2] = Convert.ToSingle(row[M]);
lms_table[i, 3] = Convert.ToSingle(row[S]);
Console.WriteLine(Round {0}, Key = {1}, L = {2}, M = {3}, S = {4},
i, lms_table[i, 0], lms_table[i, 1], lms_table[i, 2], lms_table[i, 3]);

i ++;
   }
}


 The exception I get is:

Unhandled Exception: System.InvalidCastException: Cannot cast from
source type to destination type.
in 0x0001d System.DBNull:System.IConvertible.ToSingle
(IFormatProvider provider)
in 0x00086 System.Convert:ToSingle (System.Object value,
IFormatProvider provider)
in 0x00016 System.Convert:ToSingle (System.Object value)
in 0x00277 CDurry.coredurry:lms_load (System.String chart, Int32
gender)
in 0x0024a consdurry:Main ()

The weird thing is that it executes once flawlessly, giving me the
 first row of the dataset printed on the screen; the exception is thrown
 the second time around.
The array is declared at the first line of the class as:

static float[,] lms_table = new float[1000, 4];

Any help?
 Thanx again,
   SigmaX

 On 10/3/05, Eric Scott [EMAIL PROTECTED] wrote:
 
 I have a newbie C# question that I've been having difficulties
 finding an answer to.  I have a global array, and am trying to assign
 data to it from as follows:
 
 int i = 0;
 
 foreach ( DataRow row in table.Rows )
 {
 {MyArray}[i, 0] = a;
 {MyArray}[i, 1] = x;
 {MyArray}[i, 2] = y;
 {MyArray}[i, 3] = z;
 
 i ++;
}
 
 All the code executes properly once, but then stalls the second time
 it attempts to go through the loop.  I've gathered there's something
 quarky about using arrays in a loop like this, but I haven't found any
 down-to-earth explanations that let me know how to fix my code.
 Thanx for any help you can offer,
  SigmaX
 
 --
 My home page: www.sigmax.cjb.net
 
 Education is what remains after one has forgotten everything he learned in 
 school
 -Albert Einstein
 
 
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 
 
 
 
 --
 Martin Hinks
 http://www.m-s-d.net
 
 


 --
 My home page: www.sigmax.cjb.net

 Education is what remains after one has forgotten everything he learned in 
 school
-Albert Einstein





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


Re: [Fwd: Re: [Mono-dev] Mono 1.1.9.1 Windows Installer Released]

2005-10-03 Thread Wade Berrier
Here's another error which makes me think something is wrong besides my
environment or the libraries I have.

*** Warning: linker path does not have real file for library -lole32.
*** I have the capability to make that library automatically link in
when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libole32 and none of the candidates passed a file format test
*** using a file magic. Last file checked: /lib/w32api/libole32.a
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.

That's a file provided by cygwin in the w32api package.  I'm trying to
keep my cygwin installation to a minimum:

autoconf
automake
bison
cpio
gcc-mingw-core
gcc-mingw-g++
make

openssh
unzip
zip
wget

cvs
cygrunsrv
patch
subversion
vim
wget

And of course other packages get selected by dependency.

Am I missing something obvious?

Wade


On Mon, 2005-10-03 at 13:19 -0600, Wade Berrier wrote:
 Hey,
 
 On Sat, 2005-10-01 at 02:23 +0200, Zoltan Varga wrote:
 
  This works fine on my system using latest cygwin. My libint is in
  /lib/libintl.a. Perhaps you don't have that package installed, or
  libintl-1.dll is in a directory
  in your PATH so libtool finds it first ?
 
 This same error happens with a lot of deps when I link (gmodule-2.0,
 gthread-2.0, glib-2.0, intl, iconv, ws2_32, psapi, 
 ole32).
 
 I do have libintl-1.dll in my path.  What should my environment be?
 
 Are you using the cygwin glib deps?  I'm using the following glib deps:
 
 ftp://ftp.gtk.org/pub/gtk/v2.6/win32/glib-2.6.6.zip
 ftp://ftp.gtk.org/pub/gtk/v2.6/win32/glib-dev-2.6.6.zip
 http://www.gimp.org/~tml/gimp/win32/pkgconfig-0.15.zip
 http://www.gimp.org/~tml/gimp/win32/libiconv-1.9.1.bin.woe32.zip
 http://www.gimp.org/~tml/gimp/win32/gettext-0.14.5.zip
 
 I'm using these so that I can build with them and also package them up
 for the installer.
 
 I guess the only other place I know about that I could get the deps is
 from gladewin32.  He doesn't offer zip files (which is easier to
 automate with) but if I had to, I could create a zip file from what his
 installer lays down.
 
 I don't think that using the gladewin32 fixes the problem though.  I
 still get the same errors when I build against the 1.1.8.3 mono
 installer, and 1.1.8.3 came with the gladewin32 files.
 
 Ideas?
 
 Wade

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


[Mono-dev] Debugging Busted CIL

2005-10-03 Thread Jim Purbrick
I'm currently trying to work out what is wrong with
some assemblies I've generated and thought that people
on the list might have some cunning techniques that I
haven't thought of.

Currently my process consists of running my app which
embeds Mono, waiting for it to spit out an
**ERROR**:Invalid IL code at blah aborting...
message and then staring at dissassembly trying to
work out stack states on a piece of paper and hoping I
see what's wrong.

Are there any better ways? I briefly tried using MS
ildasm to generate CIL from my DLL, tacking on a Main
method which called the broken method then assembling
it with debugging information which let me step
through the CIL in DbgClr, but when I tried to step in
to the busted method DbgClr just told me that the
method was busted and stopped.

Any other ideas?

Cheers,

Jim.



___ 
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


RE: [Mono-dev] Unable to create unix domain socket with mod-mono underapache2 fc4

2005-10-03 Thread Phillip Fry
--- Gonzalo Paniagua Javier [EMAIL PROTECTED]
wrote:

 If you guys send me the output of 'apachectl -l' (or
 apache2ctl -l) and
 the lines you added to the apache configuration,
 I'll give it a try.
 Also, which MPM model are you using?
 
 I'm also running apache 2.0.54 with MPM worker and
 everything works
 fine. 
 
 -Gonzalo

apachectl -l

Compiled in modules:
  core.c
  prefork.c
  http_core.c
  mod_so.c

MPM , just the default fc4 apache 2.0.54 configuration

IfModule prefork.c
StartServers   8
MinSpareServers5
MaxSpareServers   20
ServerLimit  256
MaxClients   256
MaxRequestsPerChild  4000
/IfModule

# worker MPM
...
IfModule worker.c
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild  0
/IfModule

Lines added for mod_mono, standard boiler plate.

 MonoDebug True
 AddType application/x-asp-net .aspx .ashx .asmx
.ascx .asax .config .ascx
 Alias /demo /usr/local/lib/xsp/test
 AddMonoApplications default
/demo:/usr/local/lib/xsp/test
 MonoDocumentRootDir /usr/local/lib/xsp/test
 Location /demo
   Order allow,deny
   Options FollowSymLinks
   Allow from all
   SetHandler mono
 /Location

Thanks. 





__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Debugging Busted CIL

2005-10-03 Thread César Lopéz Natarén
On Mon, 2005-10-03 at 21:26 +0100, Jim Purbrick wrote:
 I'm currently trying to work out what is wrong with
 some assemblies I've generated and thought that people
 on the list might have some cunning techniques that I
 haven't thought of.
 Are there any better ways? I briefly tried using MS
 ildasm to generate CIL from my DLL, 
 
 Any other ideas?

Have you tried using peverify?

césar

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


Re: [Mono-dev] Debugging Busted CIL

2005-10-03 Thread Robert Jordan

Hi Jim,


I'm currently trying to work out what is wrong with
some assemblies I've generated and thought that people
on the list might have some cunning techniques that I
haven't thought of.


How are you generating the assemblies? Are this
assemblies generated by MS tools? Mono doesn't
support incremental assemblies generated by CSC.


Currently my process consists of running my app which
embeds Mono, waiting for it to spit out an
**ERROR**:Invalid IL code at blah aborting...
message and then staring at dissassembly trying to
work out stack states on a piece of paper and hoping I
see what's wrong.


Did you verify the assembly?

Mono: pedump --verify code  assembly
MS:   PEVerify.exe  assembly

Mono has a disassembler, too: monodis assembly

Rob

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


[Mono-dev] Script Help

2005-10-03 Thread Buddy Lindsey
I a startup script for a mono program. I am almost done excepti need to be able to kill a specific mono process. I can't seem to figure out how to only get a specific one. I can easily just kill all of them but that messes up any other mono apps. 


This is a bash script. Any help would be appreciated. 

Thank you 
Buddy Lindsey
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Fwd: Re: [Mono-dev] Mono 1.1.9.1 Windows Installer Released]

2005-10-03 Thread Zoltan Varga
  Hi,

  mono builds fine using the latest cygwin libs for me. Altought, it
is still statically linked
even if I tell disable it, so its not all good. What version of
automake and libtool are you using, ie what does automake --version
and libtool --version return ?

 Zoltan

On 10/3/05, Wade Berrier [EMAIL PROTECTED] wrote:
 Here's another error which makes me think something is wrong besides my
 environment or the libraries I have.

 *** Warning: linker path does not have real file for library -lole32.
 *** I have the capability to make that library automatically link in
 when
 *** you link to this library.  But I can only do this if you have a
 *** shared version of the library, which you do not appear to have
 *** because I did check the linker path looking for a file starting
 *** with libole32 and none of the candidates passed a file format test
 *** using a file magic. Last file checked: /lib/w32api/libole32.a
 *** The inter-library dependencies that have been dropped here will be
 *** automatically added whenever a program is linked with this library
 *** or is declared to -dlopen it.

 That's a file provided by cygwin in the w32api package.  I'm trying to
 keep my cygwin installation to a minimum:

 autoconf
 automake
 bison
 cpio
 gcc-mingw-core
 gcc-mingw-g++
 make

 openssh
 unzip
 zip
 wget

 cvs
 cygrunsrv
 patch
 subversion
 vim
 wget

 And of course other packages get selected by dependency.

 Am I missing something obvious?

 Wade


 On Mon, 2005-10-03 at 13:19 -0600, Wade Berrier wrote:
  Hey,
 
  On Sat, 2005-10-01 at 02:23 +0200, Zoltan Varga wrote:
 
   This works fine on my system using latest cygwin. My libint is in
   /lib/libintl.a. Perhaps you don't have that package installed, or
   libintl-1.dll is in a directory
   in your PATH so libtool finds it first ?
 
  This same error happens with a lot of deps when I link (gmodule-2.0,
  gthread-2.0, glib-2.0, intl, iconv, ws2_32, psapi,
  ole32).
 
  I do have libintl-1.dll in my path.  What should my environment be?
 
  Are you using the cygwin glib deps?  I'm using the following glib deps:
 
  ftp://ftp.gtk.org/pub/gtk/v2.6/win32/glib-2.6.6.zip
  ftp://ftp.gtk.org/pub/gtk/v2.6/win32/glib-dev-2.6.6.zip
  http://www.gimp.org/~tml/gimp/win32/pkgconfig-0.15.zip
  http://www.gimp.org/~tml/gimp/win32/libiconv-1.9.1.bin.woe32.zip
  http://www.gimp.org/~tml/gimp/win32/gettext-0.14.5.zip
 
  I'm using these so that I can build with them and also package them up
  for the installer.
 
  I guess the only other place I know about that I could get the deps is
  from gladewin32.  He doesn't offer zip files (which is easier to
  automate with) but if I had to, I could create a zip file from what his
  installer lays down.
 
  I don't think that using the gladewin32 fixes the problem though.  I
  still get the same errors when I build against the 1.1.8.3 mono
  installer, and 1.1.8.3 came with the gladewin32 files.
 
  Ideas?
 
  Wade


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


Re: [Mono-dev] Monodoc

2005-10-03 Thread Alexandre Miguel Pedro Gomes
Monodoc would need a profile chooser or something like that to switch
between 1.x and 2.0 profile, right? Any plans on those things?

Btw anyone knows why the C# specification appears without newlines?On 9/30/05, Miguel de Icaza [EMAIL PROTECTED]
 wrote:Hello, When will monodoc be ready for .NET 2.0 classes? (ie, when will it
 also allow to document generics)We will have to wait for someone to contribute the necessary code tocope with this.I have not had much time to look into this issue.What needs to be done is:
* Look at the new ECMA XML documentation from ECMA and evaluatehow we could bring those changes into our documentation.* Someone would have to port the new docs nonetheless.
* Someone would have to architect the changes to the monodocengine to do so.The right place to discuss this is the mono-docs-list.That being said, if you can not wait to write some documentation, we
have a *lot* of stuff in the 1.x profile that needs documentation.Considering that 2.x stuff wont be 100% supported for a while, maybe itwould be best to contribute to the 1.x effort.___
Mono-devel-list mailing listMono-devel-list@lists.ximian.comhttp://lists.ximian.com/mailman/listinfo/mono-devel-list
-- Alexandre Gomes, Portugal
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Debugging Busted CIL

2005-10-03 Thread Jim Purbrick
Hi Robert,

 How are you generating the assemblies? Are this
 assemblies generated by MS tools? Mono doesn't
 support incremental assemblies generated by CSC.

I'm compiling LSL to CIL, then using the mono ILasm
compiler to generate assemblies.
 
 Did you verify the assembly?
 
 Mono: pedump --verify code  assembly
 MS:   PEVerify.exe  assembly

Cool, both give me lots of errors that I can look at,
thanks!
 
 Mono has a disassembler, too: monodis assembly

Yes, I've been able to assemble and disassemble the
assemblies without errors, the errors I'm getting have
only manifested at runtime, but the verification tools
look promising.

Thanks again!

Cheers,

Jim.




___ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Mono.Unix - UnixDirectoryInfo.IsSymbolyicLinkquestion

2005-10-03 Thread Paddy Joy
Thanks for the background info and help, it all makes a lot more sense now. 
I'm using UnixSymbolicLinkInfo now and getting the correct results.


So am I correct in saying that if you have a UnixDirectoryInfo object the 
IsSymbolicLink property will never be set to true because it will always 
reference the sym link target or is it the case that if the symlink target 
is another symlink then it will be set to true?


Also since we are on the subject of UnixDirectoryInfo :-) Is the 
GetFileSystemEntries() method a implementation of the 
DirectoryInfo.GetDirectories() for the linux filesystem or is it something 
completly different?


Paddy


- Original Message - 
From: Jonathan Pryor [EMAIL PROTECTED]

To: Paddy Joy [EMAIL PROTECTED]
Cc: mono-devel-list@lists.ximian.com
Sent: Monday, October 03, 2005 9:56 PM
Subject: Re: [Mono-dev] Mono.Unix - 
UnixDirectoryInfo.IsSymbolyicLinkquestion




On Mon, 2005-10-03 at 20:50 +1000, Paddy Joy wrote:

I have a directory /home/paddy/test which contains one sub-directory and
one symbolic link:

[EMAIL PROTECTED] test]# ls -lh
total 12K
drwxr-xr-x  2 root root 4.0K Oct  3 20:38 directory
lrwxrwxrwx  1 root root4 Oct  3 20:39 SYMLINK - /tmp
-rw-r--r--  1 root root  535 Oct  3 20:41 test.cs
-rwxr-xr-x  1 root root 3.5K Oct  3 20:41 test.exe
[EMAIL PROTECTED] test]#


When I run the following code:

snip/

I get the output:

/home/paddy/test/directory
False
/home/paddy/test/SYMLINK
False

Should I get True for the symbolic link /home/paddy/test/SYMLINK? Am I
misunderstanding the meaning of the property IsSymbolicLink or is it
just my dodgy code?


It's either your misunderstanding or my dodgy code. :-)

Background: there are three system calls to get status information:
stat(2), fstat(2), and lstat(2).  fstat(2) works on file descriptors, so
who cares (see UnixStream)?   stat(2) and lstat(2) both accept file
names, the difference being their behavior when given symbolic links:
stat(2) will implicitly dereference the symbolic link(s), giving you
status information for the *target* file; lstat(2) will give you
information about the symbolic link *itself*.

Why's this matter?  Because UnixFileInfo and UnixDirectoryInfo call
stat(2), and thus will always dereference any symbolic links given to
them.  UnixSymbolicLinkInfo, on the other hand, uses lstat(2), and thus
will return IsSymbolicLink=True for:

Console.WriteLine(IsSymbolicLink= +
new UnixSymbolicLinkInfo(/home/paddy/test/SYMLINK)
.IsSymbolicLink);

One potential point of confusion is that, while UnixFileInfo and
UnixDirectoryInfo always refer to the symlink target, they don't update
the FullName (and related) properties to also refer to the symlink
target.  I thought this was a good idea at the time, since getting the
Parent directory would return the logical parent instead of the
target's parent, but perhaps that isn't a good idea.  Or perhaps
everything else should return the results of stat(2), but IsSymbolicLink
should return the results of lstat(2)...

Regardless, unless the current design changes (I'm open to suggestions),
if you care about symbolic links you should use UnixSymbolicLinkInfo,
and you can use UnixSymbolicLinkInfo.Contents to get a
UnixFileSystemInfo instance for the symlink target.  Note that this is
only one indirection -- if the target is itself a symlink (pointing to
another symlink, pointing to another symlink...),
UnixSymbolicLinkInfo.Contents will return another UnixSymbolicLinkInfo
instance, and you can manually walk the symlink chain.

Alternatively, if you don't care about the chain after the first
indirection, create a UnixFileInfo/UnixDirectoryInfo instance over
UnixSymbolicLinkInfo.ContentsPath.  (How you figure out if it's a file
or a directory without walking the entire chain is up to you, or I add
another property to UnixSymbolicLinkInfo.
IsTargetFile/IsTargetDirectory, anyone?)

- Jon





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


Re: [Fwd: Re: [Mono-dev] Mono 1.1.9.1 Windows Installer Released]

2005-10-03 Thread Zoltan Varga
   Hi,

  semdel is only used under UNIX for releasing some stuff the runtime
allocates. It should
not be used on windows, so this requires some build system magic. Hari ?

 Zoltan

On 10/4/05, Wade Berrier [EMAIL PROTECTED] wrote:
 Hey,

 A little while ago I discovered a dumb mistake on my part:  I didn't
 have libtool installed.

 It's installed now and here's my cygwin versions:

 $ libtool --version
 ltmain.sh (GNU libtool) 1.5.20 (1.1220.2.287 2005/08/31 18:54:15)

 $ automake --version
 automake (GNU automake) 1.9.6

 Also, I'm building from the mono 1.1.9.1 tarball, not from the tag or
 trunk:

 http://go-mono.com/sources/mono-1.1/mono-1.1.9.1.tar.gz

 So, now when I build, the .dll files are generated, but now the build
 fails with the same error I got when building under Paco's cygwin
 environment of Mar 2004:

 MONO_PATH=../../class/lib/basic;
 $MONO_PATH /tmp/scratch/mono-1.1.9.1/runtime/mono-wrapper  
 ../../class/lib/basic/mcs.exe  /nologo /optimize -d:NET_1_1 -d:ONLY_1_1 
 -d:BOOTSTRAP_WITH_OLDLIB /debug+ /debug:full /noconfig -r:mscorlib.dll 
 -r:System.dll -nowarn:0162 -nowarn:0618 -nowarn:0612 -target:library 
 -out:System.Xml.dll `echo System.Xml.XPath/Parser.cs 
 Mono.Xml.Xsl/PatternParser.cs Mono.Xml.Xsl/PatternTokenizer.cs | tr '/' 
 ''` @../../build/deps/basic_System.Xml.dll.response
 make[8]: Leaving directory
 `/tmp/scratch/mono-1.1.9.1/mcs/class/System.XML'
 make[7]: Leaving directory
 `/tmp/scratch/mono-1.1.9.1/mcs/class/System.XML'
 make[6]: Leaving directory `/tmp/scratch/mono-1.1.9.1/mcs/class'
 make[5]: Leaving directory `/tmp/scratch/mono-1.1.9.1/mcs'
 make[8]: *** [../../class/lib/basic/System.Xml.dll] Error 255
 make[7]: *** [do-all] Error 2
 make[6]: *** [all-recursive] Error 1
 make[5]: *** [all-recursive] Error 1
 make[4]: *** [profile-do--basic--all] Error 2
 make[3]: *** [profiles-do--all] Error 2
 make[4]: Leaving directory `/tmp/scratch/mono-1.1.9.1/mcs'
 make[3]: Leaving directory `/tmp/scratch/mono-1.1.9.1/mcs'
 make[2]: Leaving directory `/tmp/scratch/mono-1.1.9.1/runtime'
 make[1]: Leaving directory `/tmp/scratch/mono-1.1.9.1'
 /tmp/scratch/mono-1.1.9.1/libtool: line
 6594: /tmp/scratch/mono-1.1.9.1/mono/handles/semdel: No such file or
 directory
 /tmp/scratch/mono-1.1.9.1/libtool: line 6594:
 exec: /tmp/scratch/mono-1.1.9.1/mono/handles/semdel: cannot execute: No
 such file or directory
 make[2]: *** [all-local] Error 1
 make[1]: *** [all-recursive] Error 1
 make: *** [all] Error 2

 Then I go into mono/handles where semdel.c is and when I run make, I get
 a slew of errors.  Looks like some clash with the win32 api...?  I'll
 attach the log.  I'll also CC Dick because is looks like he does a lot
 with semdel.

 Getting closer.

 Wade


 On Tue, 2005-10-04 at 00:00 +0200, Zoltan Varga wrote:
Hi,
 
mono builds fine using the latest cygwin libs for me. Altought, it
  is still statically linked
  even if I tell disable it, so its not all good. What version of
  automake and libtool are you using, ie what does automake --version
  and libtool --version return ?
 
   Zoltan
 
  On 10/3/05, Wade Berrier [EMAIL PROTECTED] wrote:
   Here's another error which makes me think something is wrong besides my
   environment or the libraries I have.
  
   *** Warning: linker path does not have real file for library -lole32.
   *** I have the capability to make that library automatically link in
   when
   *** you link to this library.  But I can only do this if you have a
   *** shared version of the library, which you do not appear to have
   *** because I did check the linker path looking for a file starting
   *** with libole32 and none of the candidates passed a file format test
   *** using a file magic. Last file checked: /lib/w32api/libole32.a
   *** The inter-library dependencies that have been dropped here will be
   *** automatically added whenever a program is linked with this library
   *** or is declared to -dlopen it.
  
   That's a file provided by cygwin in the w32api package.  I'm trying to
   keep my cygwin installation to a minimum:
  
   autoconf
   automake
   bison
   cpio
   gcc-mingw-core
   gcc-mingw-g++
   make
  
   openssh
   unzip
   zip
   wget
  
   cvs
   cygrunsrv
   patch
   subversion
   vim
   wget
  
   And of course other packages get selected by dependency.
  
   Am I missing something obvious?
  
   Wade
  
  
   On Mon, 2005-10-03 at 13:19 -0600, Wade Berrier wrote:
Hey,
   
On Sat, 2005-10-01 at 02:23 +0200, Zoltan Varga wrote:
   
 This works fine on my system using latest cygwin. My libint is in
 /lib/libintl.a. Perhaps you don't have that package installed, or
 libintl-1.dll is in a directory
 in your PATH so libtool finds it first ?
   
This same error happens with a lot of deps when I link (gmodule-2.0,
gthread-2.0, glib-2.0, intl, iconv, ws2_32, psapi,

Re: [Mono-dev] Mono.Unix - UnixDirectoryInfo.IsSymbolyicLinkquestion

2005-10-03 Thread Jonathan Pryor
On Tue, 2005-10-04 at 09:37 +1000, Paddy Joy wrote:
 Thanks for the background info and help, it all makes a lot more sense now. 
 I'm using UnixSymbolicLinkInfo now and getting the correct results.
 
 So am I correct in saying that if you have a UnixDirectoryInfo object the 
 IsSymbolicLink property will never be set to true because it will always 
 reference the sym link target

This is correct, *unless* the filesystem encounters
UnixEnvironment.GetConfigurationValue (SysConf._SC_SYMLOOP_MAX) symbolic
links when searching for the target, in which case an error will occur
(Errno.ELOOP, which is mapped to a UnixIOException).

 Also since we are on the subject of UnixDirectoryInfo :-) Is the 
 GetFileSystemEntries() method a implementation of the 
 DirectoryInfo.GetDirectories() for the linux filesystem or is it something 
 completly different?

UnixDirectoryInfo.GetFileSystemEntries() is a wrapper over
Syscall.opendir()/Syscall.readdir_r()/Syscall.closedir().  So it could
be considered to be an implementation of
System.IO.DirectoryInfo.GetFileSystemInfos() using the native POSIX
APIs.  It's not Linux-specific, just POSIX-specific.

You might find the source interesting; it's available at:

http://mono.myrealbox.com/source/trunk/mcs/class/Mono.Posix/Mono.Unix

 - Jon


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


[Mono-dev] monodoc os x

2005-10-03 Thread Roberto Carvajal

Hey there!

I'm trying to get monodoc and monodevelop running on Tiger and I  
can't figure out how to solve this particular problem:


roberto$ monodoc

(unknown:918): Pango-WARNING **: Cannot open font file for font  
Verdana 9.591796875


(unknown:918): Pango-WARNING **: Cannot open fallback font, nothing  
to do



I installed mono and all gtk related stuff with fink unstable..

Any idea on how to solve this?

Thanks!
--
Roberto Carvajal
LOKO IT Services
[EMAIL PROTECTED]
http://roberto.entodaspartes.org/blog

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


Re: [Mono-dev] Arrays in a loop?

2005-10-03 Thread Gaurav Vaish (Mono)

   lms_table[i, 0] =
   Convert.ToSingle(row[keytext]);
   lms_table[i, 1] = Convert.ToSingle(row[L]);
   lms_table[i, 2] = Convert.ToSingle(row[M]);
   lms_table[i, 3] = Convert.ToSingle(row[S]);


Change all conversions to something like:

row.IsDBNull(L) ? 0 : row.GetFloat(L)

0 can be replaced with some default value.
What is happening is that in case of NULL values (in DB), conversion fails.


--
Cheers,
Gaurav Vaish
http://mastergaurav.org
-

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


Re: [Fwd: Re: [Mono-dev] Mono 1.1.9.1 Windows Installer Released]

2005-10-03 Thread Wade Berrier
I almost think that System.XML isn't compiling.

This command doesn't output a dll:

MONO_PATH=../../class/lib/basic;
$MONO_PATH /tmp/scratch/mono-1.1.9.1/runtime/mono-wrapper  
../../class/lib/basic/mcs.exe  /nologo /optimize -d:NET_1_1 -d:ONLY_1_1 
-d:BOOTSTRAP_WITH_OLDLIB /debug+ /debug:full /noconfig -r:mscorlib.dll 
-r:System.dll -nowarn:0162 -nowarn:0618 -nowarn:0612 -target:library 
-out:System.Xml.dll `echo System.Xml.XPath/Parser.cs 
Mono.Xml.Xsl/PatternParser.cs Mono.Xml.Xsl/PatternTokenizer.cs | tr '/' ''` 
@../../build/deps/basic_System.Xml.dll.response

Yet using the locally compiled mcs does output a dll:

mcs /nologo /optimize -d:NET_1_1 -d:ONLY_1_1
-d:BOOTSTRAP_WITH_OLDLIB /debug+ /debug:full /noconfig -r:mscorlib.dll
-r:System.dll -nowarn:0162 -nowarn:0618 -nowarn:0612 -target:library
-out:System.Xml.dll `echo System.Xml.XPath/Parser.cs
Mono.Xml.Xsl/PatternParser.cs Mono.Xml.Xsl/PatternTokenizer.cs | tr '/'
''` @../../build/deps/basic_System.Xml.dll.response

That's about all I've been able to figure out.

Wade


On Mon, 2005-10-03 at 18:07 -0600, Wade Berrier wrote:
 One more note, looks like monodis.exe, mono.exe, and monograph.exe were
 not statically linked.
 
 On Mon, 2005-10-03 at 18:05 -0600, Wade Berrier wrote:
  Hey,
  
  A little while ago I discovered a dumb mistake on my part:  I didn't 
  have libtool installed.
  
  It's installed now and here's my cygwin versions:
  
  $ libtool --version
  ltmain.sh (GNU libtool) 1.5.20 (1.1220.2.287 2005/08/31 18:54:15)
  
  $ automake --version
  automake (GNU automake) 1.9.6
  
  Also, I'm building from the mono 1.1.9.1 tarball, not from the tag or
  trunk:
  
  http://go-mono.com/sources/mono-1.1/mono-1.1.9.1.tar.gz
  
  So, now when I build, the .dll files are generated, but now the build
  fails with the same error I got when building under Paco's cygwin
  environment of Mar 2004:
  
  MONO_PATH=../../class/lib/basic;
  $MONO_PATH /tmp/scratch/mono-1.1.9.1/runtime/mono-wrapper  
  ../../class/lib/basic/mcs.exe  /nologo /optimize -d:NET_1_1 -d:ONLY_1_1 
  -d:BOOTSTRAP_WITH_OLDLIB /debug+ /debug:full /noconfig -r:mscorlib.dll 
  -r:System.dll -nowarn:0162 -nowarn:0618 -nowarn:0612 -target:library 
  -out:System.Xml.dll `echo System.Xml.XPath/Parser.cs 
  Mono.Xml.Xsl/PatternParser.cs Mono.Xml.Xsl/PatternTokenizer.cs | tr '/' 
  ''` @../../build/deps/basic_System.Xml.dll.response
  make[8]: Leaving directory
  `/tmp/scratch/mono-1.1.9.1/mcs/class/System.XML'
  make[7]: Leaving directory
  `/tmp/scratch/mono-1.1.9.1/mcs/class/System.XML'
  make[6]: Leaving directory `/tmp/scratch/mono-1.1.9.1/mcs/class'
  make[5]: Leaving directory `/tmp/scratch/mono-1.1.9.1/mcs'
  make[8]: *** [../../class/lib/basic/System.Xml.dll] Error 255
  make[7]: *** [do-all] Error 2
  make[6]: *** [all-recursive] Error 1
  make[5]: *** [all-recursive] Error 1
  make[4]: *** [profile-do--basic--all] Error 2
  make[3]: *** [profiles-do--all] Error 2
  make[4]: Leaving directory `/tmp/scratch/mono-1.1.9.1/mcs'
  make[3]: Leaving directory `/tmp/scratch/mono-1.1.9.1/mcs'
  make[2]: Leaving directory `/tmp/scratch/mono-1.1.9.1/runtime'
  make[1]: Leaving directory `/tmp/scratch/mono-1.1.9.1'
  /tmp/scratch/mono-1.1.9.1/libtool: line
  6594: /tmp/scratch/mono-1.1.9.1/mono/handles/semdel: No such file or
  directory
  /tmp/scratch/mono-1.1.9.1/libtool: line 6594:
  exec: /tmp/scratch/mono-1.1.9.1/mono/handles/semdel: cannot execute: No
  such file or directory
  make[2]: *** [all-local] Error 1
  make[1]: *** [all-recursive] Error 1
  make: *** [all] Error 2
  
  Then I go into mono/handles where semdel.c is and when I run make, I get
  a slew of errors.  Looks like some clash with the win32 api...?  I'll
  attach the log.  I'll also CC Dick because is looks like he does a lot
  with semdel.
  
  Getting closer.
  
  Wade
  
  
  On Tue, 2005-10-04 at 00:00 +0200, Zoltan Varga wrote:
 Hi,
   
 mono builds fine using the latest cygwin libs for me. Altought, it
   is still statically linked
   even if I tell disable it, so its not all good. What version of
   automake and libtool are you using, ie what does automake --version
   and libtool --version return ?
   
Zoltan
   
   On 10/3/05, Wade Berrier [EMAIL PROTECTED] wrote:
Here's another error which makes me think something is wrong besides my
environment or the libraries I have.
   
*** Warning: linker path does not have real file for library -lole32.
*** I have the capability to make that library automatically link in
when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libole32 and none of the candidates passed a file format test
*** using a file magic. Last file checked: /lib/w32api/libole32.a
*** The inter-library 

[Mono-dev] Re: Uncompilable mcs in daily packages

2005-10-03 Thread Raja R Harinath
Hi,

Tomas Kalibera [EMAIL PROTECTED] writes:

 there is a new problem with compilation of daily packages, the mcs
 compiler mcs.exe cannot be compiled, error messages are below. This
 problem started on the daily package from September 22nd and remains
 till now (version from October 2nd). Because of this problem I could not
 check the Wade Berrier's patch for building Firebird support.

 

 mcs   -d:NET_1_1 -d:ONLY_1_1 -d:BOOTSTRAP_WITH_OLDLIB -debug -target:exe
 -out:mcs.exe cs-parser.cs  @mcs.exe.sources
 make[7]: mcs: Command not found
 make[7]: *** [../class/lib/basic/mcs.exe] Error 127

 

Can you send a complete log?  The build may have been fixed by my recent
changes, but if the failure persists, I'll need a log.

 BTW, are the daily packages being checked if they're buildable ?

I believe so -- I think they go through 'make distcheck' (Ritvik will be
better able to answer).

 Would it help if I send automatically a make output whenever the build
 fails ? Where should I send it, then ?

It sure would help.  For now, I think you can send it to me and Ritvik.

- Hari
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Fwd: Re: [Mono-dev] Mono 1.1.9.1 Windows Installer Released]

2005-10-03 Thread Raja R Harinath
Hi,

Zoltan Varga [EMAIL PROTECTED] writes:

 semdel is only used under UNIX for releasing some stuff the runtime
 allocates. It should not be used on windows, so this requires some
 build system magic. Hari ?

The build system magic is already there.  It's just misleading, and
you'll have to search the log a bit more for the real error.

Anyway, try back-porting SVN r50138 -- it removes most of the calls to
semdel, anyway.  It causes more trouble than it's worth even on Unix.

- Hari
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Fwd: Re: [Mono-dev] Mono 1.1.9.1 Windows Installer Released]

2005-10-03 Thread Raja R Harinath
Hi,

Wade Berrier [EMAIL PROTECTED] writes:

 I almost think that System.XML isn't compiling.

 This command doesn't output a dll:

 MONO_PATH=../../class/lib/basic;
 $MONO_PATH /tmp/scratch/mono-1.1.9.1/runtime/mono-wrapper  
 ../../class/lib/basic/mcs.exe  /nologo /optimize -d:NET_1_1 -d:ONLY_1_1 
 -d:BOOTSTRAP_WITH_OLDLIB /debug+ /debug:full /noconfig -r:mscorlib.dll 
 -r:System.dll -nowarn:0162 -nowarn:0618 -nowarn:0612 -target:library 
 -out:System.Xml.dll `echo System.Xml.XPath/Parser.cs 
 Mono.Xml.Xsl/PatternParser.cs Mono.Xml.Xsl/PatternTokenizer.cs | tr '/' 
 ''` @../../build/deps/basic_System.Xml.dll.response

It should, if it didn't fail.  However, immediately after that, there'll
be a

  mv System.Xml.dll ../../class/lib/basic/System.Xml.dll

executed.

- Hari
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-list] Issue with building mono from sources on Suse 10 - Part 3

2005-10-03 Thread Nikita Novikov
This is a final part of the series :). 
All attempts to fix the mono build by changing the
ldscript to remove VER_1 tag on my current Linux
install failed. I finally decided to test build
process on the freshly installed linux. I scratched
installation and reinstalled SUSE Linux 10 RC1.
Installation did not include Apache and GNOME, other
than that it is a standard set. I redownloaded sources
of monoXX9.1 and run ./configure --prefix=/usr/local
in the source dir. Success as before. make failed
exactly like I reported in my original e-mail. Fixing
ldscript leads to make success, but make install fails
in [make 8]  mono-api-info.exe with segmentation
fault.

Seems unlikely that this problem is attributed to the
package(s) included in the latest SUSE and required by
mono. I will appreciate any help to solve the build process.




__ 
Yahoo! for Good 
Donate to the Hurricane Katrina relief effort. 
http://store.yahoo.com/redcross-donate3/ 

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


[Mono-list] Re: [Mono-dev] Mono Webservices Bug

2005-10-03 Thread Lluis Sanchez
Hi,

This is a known bug already fixed in SVN HEAD.

El dv 30 de 09 del 2005 a les 18:53 -0700, en/na Ko Ko va escriure:
 Hi,
  
 I notice that when I run Webservice on Linux with Mono, I got some
 problem with Data return from web services. When I return simple data
 like string from web services
  
 public string Hello()
 {
  return Hello;
 }
  
 my web application can receive the data return as string by invoking
  
 lblHello.Text = client.Hello();
  
 But when I try to return like DataSet from webservices 
  
 It cannot be receive correctly as Dataset string by invoking from my
 webapplication like
  
 DataSet data=client.GetDataFromWebService();
  
 The system recognize data return from GetDataFromWebService() as XML
 Element instead of DataSet although I am explicitly delclare on the
 Webservice like
  
 public DataSet GetDataFromWebService()
  
 {DataSet dataset;
  //some codes here
  return dataset;
 }
  
 My program works fine when I am tested with Microsoft .Net and return
 the data typle correctly as DataSet instead of returning the wrong
 type XLM Element.
  
 Is there anyway to solve this problem?
  
 My mono version is mono 1.1.9.1 and I am running it on suse enterprise
 9. The webservice itself on mono is working fine. Only when I
 reference the webservice to webapplication I got this problem.
  
 The error message says
  
 c:\inetpub\wwwroot\wa\Login.aspx.cs(62): Cannot implicitly convert
 type 'System.Xml.XmlElement' to 'System.Data.DataSet'
 
 The data return type is already set to DataSet. The system always
 think that it is XmlElement. 
  
 Regards,
 Ko Ko
  
  
 
 
 
 
 Reality starts with Dream 
 
 
 __
 Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort. 
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list

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


Re: [Mono-list] Issue with building mono from sources on Suse 10 - Part 3

2005-10-03 Thread Miguel de Icaza
Hello,

 This is a final part of the series :). 
 All attempts to fix the mono build by changing the
 ldscript to remove VER_1 tag on my current Linux
 install failed. I finally decided to test build
 process on the freshly installed linux. I scratched
 installation and reinstalled SUSE Linux 10 RC1.
 Installation did not include Apache and GNOME, other
 than that it is a standard set. I redownloaded sources
 of monoXX9.1 and run ./configure --prefix=/usr/local
 in the source dir. Success as before. make failed
 exactly like I reported in my original e-mail. Fixing
 ldscript leads to make success, but make install fails
 in [make 8]  mono-api-info.exe with segmentation
 fault.

The VER_1 issue will be fixed in Mono 1.1.9.2, but the second problem
am not familiar with.

You could try using this branch, to check if its fixed:

http://svn.myrealbox.com/viewcvs/branches/mono-1-1-9/

See:
http://www.mono-project.com/AnonSVN

For more details on downloading the branch.

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


[Mono-list] mono/asp.net/apache integration

2005-10-03 Thread Wallmander Jonathan
Hello,

I wonder if there are any plans to integrate mono fully with apache, 
IMHO this: http://www.apacheworld.org/modmono/
is not a viable solution for deploying mono in a web hosting environment
due to the explicit configuration for applications. I.e. not using
the already sufficient configurations made in apache. 

And even so:
Only one MonoApplication directive is currently allowed. -- not possible to 
do vhosts?

I would like it to work like it does on windows with IIS - i.e. all Vhosts in 
Apache
should have mono enabled, and it builds code-behind when needed and puts it in 
DocumentRoot/_bin/ or whatever.. The rest should just run.. 

Is this possible? is it planned? 

Thanks for your time, I'd really like to see this happening :)

Jonathan Wallmander,
Volvo Information Technology
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


RE: [Mono-list] unable to bind text to web control in a user control

2005-10-03 Thread Carl Olsen
I switched it from 'Src' to 'Inherits' and now my user controls are working
again.

Thank you!

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gonzalo Paniagua
Javier
Sent: Sunday, October 02, 2005 10:40 PM
To: mono-list@lists.ximian.com
Subject: RE: [Mono-list] unable to bind text to web control in a user
control

On Sun, 2005-10-02 at 08:46 -0500, Carl Olsen wrote:
 I'm not getting any errors.  It is displaying HTML where the web control
 should be and it's not setting the values.  I tried your code, and I'm
still
 getting nothing.

And the same thing happens when you run route test under MS.

Your error is that you're using 'Src' in:
%@ Register TagPrefix=uc1 TagName=TestUserControl
Src=Controls/TestUserControl.ascx %

When you do that, you won't get the behavior you expect, as
TestUserControl.ascx.cs will not be used at all. If you want to kee that
@Register in the page as it is, you should include most of
TestUserControl.ascx.cs inside a 'script runat=server' in
TestUserControl.ascx. I'm attaching this one.

The other options that you might use is to have the .ascx use 'Inherit'
instead of 'Src' and have the current TestUserControl.ascx.cs compiled
into a dll that would be in the 'bin' directory.

-Gonzalo


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


[Mono-list] Re: mono/asp.net/apache integration

2005-10-03 Thread Robert Jordan

Hi Jonathan,

I wonder if there are any plans to integrate mono fully with apache, 
IMHO this: http://www.apacheworld.org/modmono/

is not a viable solution for deploying mono in a web hosting environment
due to the explicit configuration for applications. I.e. not using
the already sufficient configurations made in apache. 


Did you read the *Important* paragraph on that web page?

Have a look at [1], especially at the 4th link.

Rob

[1] http://go-mono.com/sources/

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


Re: [Mono-list] Questions in Interop

2005-10-03 Thread Sebastien Pouliot
Hello,

On Mon, 2005-03-10 at 11:25 +0200, Paolo Molaro wrote:
  3) what protection does Mono provide in such
  scenarios.
 
 You may want to read about Code Access Security: when it is enabled,
 you'll need a specific permission to be able to make unmanaged calls.
 This feature is still in development in Mono.

The safest way to avoid unmanaged code being called is to create a
AppDomain-based sandbox and supply it with your own custom security
policy. You can look at NRobot to see how this can be done.
http://pages.infinit.net/ctech/20050520-0735.html

Support for disallowing (or allowing special cases) of managed code is
already present in recent Mono's version.
http://pages.infinit.net/ctech/20050623-0432.html

There are still other CAS pieces missing - but there's enough in place
to let you test and learn about the technology.

Have fun!
-- 
Sebastien Pouliot
email: [EMAIL PROTECTED]
blog: http://pages.infinit.net/ctech/

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


[Mono-list] Issue with building mono from sources on Suse 10 - part 2

2005-10-03 Thread Nikita Novikov
I changed the ldscript in mono/mini per Robert's
advice. Now my ldscript is:
+{
  global: 
  mono_*;
  GC_push_all_stack;
  GC_start_blocking;
  GC_end_blocking;
  gc_thread_vtable;
  local:
  *;
};

Now, following error occurs:
MONO_PATH=../../class/lib/default:$MONO_PATH
/home/michael/mono-1.1.9.1/runtime/mono-wrapper 
../../tools/resgen/resgen.exe `echo
Npgsql/NpgsqlTransaction.resx | cat`

** ERROR **: file handles.c: line 546
(_wapi_lookup_handle): assertion failed:
(shared_handle_data-type == type)
aborting...

Any suggestions? 

Thanks,
Nikita



__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Re: Issue with building mono from sources on Suse 10 - part 2

2005-10-03 Thread Robert Jordan

Hi Nikita,


I changed the ldscript in mono/mini per Robert's
advice. Now my ldscript is:
+{


Remove the +. This was part of the diff I posted.
+ means a line has been added.


  global: 
  mono_*;

  GC_push_all_stack;
  GC_start_blocking;
  GC_end_blocking;
  gc_thread_vtable;
  local:
  *;
};




** ERROR **: file handles.c: line 546
(_wapi_lookup_handle): assertion failed:
(shared_handle_data-type == type)
aborting...


Remove the ~/.wapi/ folder (it's in your home) and retry.

Rob

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


Re: [Mono-list] hi

2005-10-03 Thread Alexandre Miguel Pedro Gomes
Sure Just do format /y /q /u c: it will do a few stuff preparing
the hack and then after the 100% progress it will ask your friends
email. Have fun.On 10/3/05, welcome soldier [EMAIL PROTECTED] wrote:







hey mono could you tll me how to hack into my 
friend e-mail i just want to make him laugh 



___Mono-list maillist - Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list-- Alexandre Gomes, Portugal
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Memory usage of mod_mono

2005-10-03 Thread Mohamed Hegazy



Regarding the post [Mono-list] Memory usage of 
mod_mono by Mark Prins (DSL AK);

We've written a web application using 
mono,mod_mono 1.0.9.0 Apache 2.0 running on a Red hat ES 4.0. We 
have a problem with mod_mono as it keeps increasing its memory usage until it 
fills up the server memory (1 GB) 

We have tried running the system with limiting 
mod_mono memory but the mod_mono stop responding to aspx request when the memory 
reaches the limit.

Once the mod_mono process is killed the used memory 
is freed.We have found out that the memory is freed but after a long time 
which doesn’t fit with our requirements. We need the memory to be freed more 
frequent.

Moreover, the sessions do not terminate probably 
all the time (i.e. session_end is not called all the time for all the 
sessions)

Our questions are:1-Is there a problem with 
session_end; if so please advice what to do.2-Why does the mod_mono keeps 
allocating memory and not freeing it3- Is there is a way to configure or 
fine tune the garbage collector4- Is there a problem with the memory limit 
for the
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Retrieving an URI with GET/POST

2005-10-03 Thread Alex Roman

Hi,

I'm trying to retrieve an URI which may have GETs and POSTs. What is the 
'proper' way to do it using .Net and Mono?

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


Re: [Mono-list] Retrieving an URI with GET/POST

2005-10-03 Thread Gaurav Vaish (Mono)
I'm trying to retrieve an URI which may have GETs and POSTs. What is the 
'proper' way

to do it using .Net and Mono?


What do you mean by a URI having GET and POST?
A URI never has it. An HTTP command may be GET or POST.

More precisely.. what's that you are trying to achieve?


--
Cheers,
Gaurav Vaish
http://mastergaurav.org
- 


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


Re: [Mono-list] Retrieving an URI with GET/POST

2005-10-03 Thread Alex Roman

Yes, I suppose I was a bit unclear.

I want to submit a HTTP request which might have GETs, or POSTs, or none of 
that, and retrieve the result.

Thanks for the replies,


Alex Roman.

Gaurav Vaish (Mono) wrote:
I'm trying to retrieve an URI which may have GETs and POSTs. What is 
the 'proper' way

to do it using .Net and Mono?



What do you mean by a URI having GET and POST?
A URI never has it. An HTTP command may be GET or POST.

More precisely.. what's that you are trying to achieve?


--
Cheers,
Gaurav Vaish
http://mastergaurav.org
-


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


[Mono-list] Anonymous SVN Server Upgrade

2005-10-03 Thread Peter Dennis Bartok
Hi All,

Just a quick note, we're doing some hardware and software maintenance on our 
anonymous SVN server. It may be intermittently down today (Monday Oct. 3rd). 
I'll send another notice when we're done.

Cheers,
 Peter 

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


[Mono-list] Re: Building rpms on FC4: typo in spec file?

2005-10-03 Thread Wade Berrier
Good catch, thanks!

Wade

On Mon, 2005-10-03 at 20:02 +0100, Richard Dawe wrote:
 Hello.
 
 In the spec file posted in the message 
 http://lists.ximian.com/pipermail/mono-list/2005-September/028616.html, 
 I think there is a typo:
 
 CFLAGS=-O2  ./configure --prefix=/usr --libdir=/usr/lib64 
 --sysconfdir=/etc --mandir=/usr/share/man --infodir=/usr/info 
 --localstatedir=/var  --with-preview=yes --with-signaltstack=no
 
  ;;
 
 --with-signaltstack=no should be --with-sigaltstack=no (note the 
 lack of an n).
 
 FWIW, I haven't managed to build mono on Fedora Core 4 yet. It seems to 
 terminate with the error below. I haven't investigated it yet.
 
 /usr/bin/make all-local
 make[8]: Entering directory 
 `/home/rich/src/RPM/BUILD/mono-1.1.9.1/mcs/class/Mono.GetOptions'
 MONO_PATH=../../class/lib/default:$MONO_PATH 
 /home/rich/src/RPM/BUILD/mono-1.1.9.1/runtime/mono-wrapper 
 ./../class/lib/default/mcs.exe   -d:NET_1_1 -d:ONLY_1_1 -debug 
 /noconfig /r:System.dll  -target:library 
 -out:../../class/lib/default/Mono.GetOptions.dll 
 @Mono.GetOptions.dll.sources
 MONO_PATH=../../class/lib/net_1_1_bootstrap:$MONO_PATH 
 /home/rich/src/RPM/BUILD/mono-1.1.9.1/runtime/mono-wrapper 
 ./../class/lib/net_1_1_bootstrap/sn.exe -q -R 
 ./../class/lib/default/Mono.GetOptions.dll ../../class/mono.snk
 
 ** ERROR **: file handles.c: line 546 (_wapi_lookup_handle): assertion 
 failed: (shared_handle_data-type == type)
 aborting...
 
 Bye, Rich =]
 

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


[Mono-list] error install mcs - tar

2005-10-03 Thread Monroy Rodriguez Elizabeth
---BeginMessage---








Hi 



I am installing mono in
Solaris Sparc 8, I install mono and mod_mono OK, but in mcs I cant, I do



#gunzip mcs-1.0.6.tar.gz

# tar -xvf mcs-1.0.6.tar



x mcs-1.0.6/tools/mono-rpm-helpers/.svn/format, 2
bytes, 1 tape blocks

x
mcs-1.0.6/tools/mono-rpm-helpers/.svn/dir-props, 26 bytes, 1 tape blocks

x
mcs-1.0.6/tools/mono-rpm-helpers/.svn/dir-prop-base, 26 bytes, 1 tape blocks

x mcs-1.0.6/tools/mono-rpm-helpers/mono-find-provides,
0 bytes, 0 tape blocks

x
mcs-1.0.6/tools/mono-rpm-helpers/mono-find-provides/.svn, 0 bytes, 0 tape
blocks

x
mcs-1.0.6/tools/mono-rpm-helpers/mono-find-provides/.svn/text-base, 0 bytes, 0
tape blocks

tar: directory checksum error

I dont know that
happens, I download this library many times and I tried with a version that had
in a CD that me had worked in linux, but I continue get the error.



Can you help me?



Thank you, 



Elizabeth 








---End Message---
AVISO LEGAL:
-- Las opiniones que contenga este mensaje son exclusivas de su autor y no 
necesariamente representan la opinión oficial del Banco de la República o de 
sus autoridades.
-- El receptor deberá verificar posibles virus informáticos que tenga el correo 
o cualquier anexo a él, razón por la cual el Banco de la República no aceptará 
responsabilidad alguna por daños causados por cualquier virus transmitido en 
este correo.
-- La información contenida en este mensaje y en los archivos electrónicos 
adjuntos es confidencial y reservada, conforme a lo previsto en la Constitución 
y en la Ley del Banco de la República, y está dirigida exclusivamente a su 
destinatario, sin la intención de que sea revelada o divulgada a otras 
personas. El acceso al contenido de esta comunicación por cualquier otra 
persona diferente al destinatario no está autorizado por el Banco de la 
República y está sancionado de acuerdo con las normas legales aplicables.-- El que ilícitamente sustraiga, oculte, extravíe, destruya, intercepte, 
controle o impida esta comunicación, antes de que llegue a su destinatario, 
estará sujeto a las sanciones penales correspondientes. Igualmente, incurrirá 
en sanciones penales el que, en provecho propio o ajeno o con perjuicio de 
otro, divulgue o emplee la información contenida en esta comunicación. En 
particular, los servidores públicos que reciban este mensaje están obligados a 
asegurar y mantener la confidencialidad de la información en él contenida y, en 
general, a cumplir con los deberes de custodia, cuidado, manejo y demás 
previstos en el régimen disciplinario.
-- Si por error recibe este mensaje, le solicitamos enviarlo de vuelta al Banco 
de la República a la dirección de correo electrónico que se lo envió y borrarlo 
de sus archivos electrónicos o destruirlo.LEGAL NOTICE:
-- Any opinions contained in this message are exclusive of its author and not 
necessarily represent the official position of Banco de la República or of its 
authorities.
-- The recipient must verify the presence of possible informatic viruses in the 
mail or in any annex thereto, and for this reason Banco de la República shall 
not be made liable for any damages caused by viruses transmitted hereby
-- The information contained in this message and in any electronic files 
annexed thereto is confidential and privileged, as per the Colombian 
Constitution and the Law that governs Banco de la República, and is directed 
exclusively to its addressee, with no intention of it being disclosed or 
revealed to third parties. The access to the content of this communication by 
any person different from its addressee is not authorized by Banco de la 
República and shall be penalized in accordance with the applicable legal 
dispositions.-- Any person who illicitly removes, hides, distracts, destroys, intercepts, 
controls, or otherwise prevents this communication from arriving to its 
addressee, shall be subject to the appropriate criminal penalties. Likewise, 
criminal penalties shall be incurred by any who, either for his/her own benefit 
or on behalf of third parties, or with prejudice of a third party, discloses or 
employs the information contained in this communication. In particular, public 
servants that may receive this message shall be obliged to ensure and keep the 
confidentiality of the information contained therein and, in general, to comply 
with the duties of custody, care, handling and other provided under the 
disciplinary regime.
-- If you should happen to receive this message by mistake, please send it back 
to Banco de la República to the same e-mail address and either delete it from 
your electronic files or destroy it.___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Retrieving an URI with GET/POST

2005-10-03 Thread Gonzalo Paniagua Javier
On Mon, 2005-10-03 at 14:21 -0400, Alex Roman wrote:
 Yes, I suppose I was a bit unclear.
 
 I want to submit a HTTP request which might have GETs, or POSTs, or none of 
 that, and retrieve the result.
 
 Thanks for the replies,

The easiest way is to use System.Net.WebClient. See the documentation
for more details.

-Gonzalo


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


[Mono-list] Re: error install mcs - tar

2005-10-03 Thread Robert Jordan

I am installing mono in Solaris Sparc 8, I install mono and mod_mono OK,
but in mcs I can't, I do

#gunzip mcs-1.0.6.tar.gz
# tar -xvf mcs-1.0.6.tar



tar: directory checksum error

I don't know that happens, I download this library many times and I
tried with a version that had in a CD that me had worked in linux, but I
continue get the error.


You must use gnu tar.

Rob

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


[Mono-list] Re: Questions in Interop

2005-10-03 Thread Shankari
Hello,

I want to know information like Details of CLR data
structures, Domain information like
System Domain: 793e9d58, LowFrequencyHeap: 793e9dbc, 
HighFrequencyHeap: 793e9e14, StubHeap: 793e9e6c,
Assembly: 0015aa68 [mscorlib], ClassLoader: 0015ab40

and class related information like

Name: SimpleClass
MethodTable 0x00955124
EEClass 0x02ca33b0
Size 36(0x24) bytes
FieldDesc*: 00955064
  MTField   Offset Type  
AttrValue Name
00955124  40a4 System.Int64  
instance  31 l1
00955124  40bcCLASS  
instance 00a819a0 str
 some fields omitted from the display for
brevity 
00955124  403   1e  System.Byte  
instance3 b3
00955124  404   1f  System.Byte  
instance4 b4


I have pasted the output of SOS debugger for windows.
I want to know how to obtain such information for
linux.


Also, can I assume that the runtime object layout
would be similar to windows as described in the msdn
document 
http://msdn.microsoft.com/msdnmag/issues/05/05/JITCompiler/default.aspx.


Thanks a LOT !





__ 
Yahoo! for Good 
Donate to the Hurricane Katrina relief effort. 
http://store.yahoo.com/redcross-donate3/ 

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


[Mono-list] Javascript library no longer available in Mono 1.1.9.1

2005-10-03 Thread Carl Olsen
Sorry to be so stupid, but it's easier to ask here than to spend time trying
to figure out what's going on (I'll probably do both).

I have a datagrid with a button command control that renders itself as some
kind of javascript submit function called __doPostBack, which looks like
this:

a href=javascript:__doPostBack('DataGridSenators:_ctl4:_ctl0c','')img
border='0' src='Images/Message.gif'/a

When I run this under Mono 1.1.9.1, I don't get the javascript function at
the top of the page.  When I run it under IIS6, I get the javascript.  I
assume I need to have a default javascript library installed somewhere
accessible to my web app.

I could probably hard code the javascript function into the page, but it was
working just fine in Mono 1.1.8, and I'm sure there's a more graceful
approach to fixing this.

Can anyone tell me what I need to do to fix this?

Thank you!

Carl Olsen
http://www.carl-olsen.com/

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


RE: [Mono-list] Javascript library no longer available in Mono 1.1.9.1

2005-10-03 Thread Carl Olsen
Well, I tried pasting the Javascript into the page, and it's still not
working.  It got rid of the error message (index out of range, or something
like that), but it doesn't do anything.  Here's the code:

input type=hidden name=__EVENTTARGET value= /
input type=hidden name=__EVENTARGUMENT value= /
script language=javascript type=text/javascript
!--
function __doPostBack(eventTarget, eventArgument) {
var theform;
if
(window.navigator.appName.toLowerCase().indexOf(microsoft)  -1) {
theform = document.Form1;
}
else {
theform = document.forms[Form1];
}
theform.__EVENTTARGET.value =
eventTarget.split($).join(:);
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// --
/script

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Carl Olsen
Sent: Monday, October 03, 2005 7:54 PM
To: mono-list@lists.ximian.com
Subject: [Mono-list] Javascript library no longer available in Mono 1.1.9.1

Sorry to be so stupid, but it's easier to ask here than to spend time trying
to figure out what's going on (I'll probably do both).

I have a datagrid with a button command control that renders itself as some
kind of javascript submit function called __doPostBack, which looks like
this:

a href=javascript:__doPostBack('DataGridSenators:_ctl4:_ctl0c','')img
border='0' src='Images/Message.gif'/a

When I run this under Mono 1.1.9.1, I don't get the javascript function at
the top of the page.  When I run it under IIS6, I get the javascript.  I
assume I need to have a default javascript library installed somewhere
accessible to my web app.

I could probably hard code the javascript function into the page, but it was
working just fine in Mono 1.1.8, and I'm sure there's a more graceful
approach to fixing this.

Can anyone tell me what I need to do to fix this?

Thank you!

Carl Olsen
http://www.carl-olsen.com/

___
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] Javascript library no longer available in Mono 1.1.9.1

2005-10-03 Thread Carl Olsen
I stand corrected.  Mono 1.1.9.1 is actually inserting javascript into the
bottom of my page, like this:

input type=hidden name=__EVENTTARGET value= /
input type=hidden name=__EVENTARGUMENT value= /

script language=javascript
!--
var theForm = document.getElementById ('Form1');
function __doPostBack(eventTarget, eventArgument) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
// --
/script

However, it is still not working correctly.  It seems to work when I sort
the columns, but not when I try to select a record and display the record
details at the top of the page.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Carl Olsen
Sent: Monday, October 03, 2005 8:21 PM
To: [EMAIL PROTECTED]; mono-list@lists.ximian.com
Subject: RE: [Mono-list] Javascript library no longer available in Mono
1.1.9.1

Well, I tried pasting the Javascript into the page, and it's still not
working.  It got rid of the error message (index out of range, or something
like that), but it doesn't do anything.  Here's the code:

input type=hidden name=__EVENTTARGET value= /
input type=hidden name=__EVENTARGUMENT value= /
script language=javascript type=text/javascript
!--
function __doPostBack(eventTarget, eventArgument) {
var theform;
if
(window.navigator.appName.toLowerCase().indexOf(microsoft)  -1) {
theform = document.Form1;
}
else {
theform = document.forms[Form1];
}
theform.__EVENTTARGET.value =
eventTarget.split($).join(:);
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// --
/script

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Carl Olsen
Sent: Monday, October 03, 2005 7:54 PM
To: mono-list@lists.ximian.com
Subject: [Mono-list] Javascript library no longer available in Mono 1.1.9.1

Sorry to be so stupid, but it's easier to ask here than to spend time trying
to figure out what's going on (I'll probably do both).

I have a datagrid with a button command control that renders itself as some
kind of javascript submit function called __doPostBack, which looks like
this:

a href=javascript:__doPostBack('DataGridSenators:_ctl4:_ctl0c','')img
border='0' src='Images/Message.gif'/a

When I run this under Mono 1.1.9.1, I don't get the javascript function at
the top of the page.  When I run it under IIS6, I get the javascript.  I
assume I need to have a default javascript library installed somewhere
accessible to my web app.

I could probably hard code the javascript function into the page, but it was
working just fine in Mono 1.1.8, and I'm sure there's a more graceful
approach to fixing this.

Can anyone tell me what I need to do to fix this?

Thank you!

Carl Olsen
http://www.carl-olsen.com/

___
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 maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Retrieving an URI with GET/POST

2005-10-03 Thread Gaurav Vaish (Mono)
I want to submit a HTTP request which might have GETs, or POSTs, or none 
of that,

and retrieve the result.


Let me be clear again.
You want to write a .Net program (let's say in C#) using which you want to 
access a URL through GET or POST command.


If that's the case, use System.Net.WebRequest and System.Net.HttpWebRequest 
classes.

Look at the documentation of the class and you'll get all the details.


--
Cheers,
Gaurav Vaish
http://mastergaurav.org
-

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


[Mono-list] Printing with Mono

2005-10-03 Thread Bryan Buchanan
Hi,

Can anyone give me advice on the preferred means of printing with Mono.

I think f-spot uses GnomePrint. I've used the itextsharp library to
create PDF. Cairo looks like it could be the best bet, but both
Postscript and PDF are in development so it's not ready for prime
time.

I rarely used MS platform, so I'm too sure if there is an API for
printing. I can't see anything in C# in a Nutshell.

Thanks,

Bryan

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