[Mono-devel-list] Problem with DbDataAdapter...

2005-05-17 Thread Hubert FONGARNAND
I've updated my mono this morning from SVN...
and all db applications (PostGreSQL) fails with : 


System.InvalidCastException: Cannot cast from source type to destination type.
in 0x00548 System.Data.Common.DbDataAdapter:BuildSchema (IDataReader reader, 
System.Data.DataTable table, SchemaType schemaType, MissingSchemaAction 
missingSchAction, MissingMappingAction missingMapAction, 
System.Data.Common.DataTableMappingCollection dtMapping)
in 0x00059 System.Data.Common.DbDataAdapter:BuildSchema (IDataReader reader, 
System.Data.DataTable table, SchemaType schemaType)
in (wrapper remoting-invoke-with-check) 
System.Data.Common.DbDataAdapter:BuildSchema 
(System.Data.IDataReader,System.Data.DataTable,System.Data.SchemaType)
in 0x00087 System.Data.Common.DbDataAdapter:FillTable (System.Data.DataTable 
dataTable, IDataReader dataReader, Int32 startRecord, Int32 maxRecords, 
System.Int32 counter)
in (wrapper remoting-invoke-with-check) 
System.Data.Common.DbDataAdapter:FillTable 
(System.Data.DataTable,System.Data.IDataReader,int,int,int)
in 0x00117 System.Data.Common.DbDataAdapter:Fill (System.Data.DataSet 
dataSet, System.String srcTable, IDataReader dataReader, Int32 startRecord, 
Int32 maxRecords)
in 0x000ce System.Data.Common.DbDataAdapter:Fill (System.Data.DataSet 
dataSet, Int32 startRecord, Int32 maxRecords, System.String srcTable, 
IDbCommand command, CommandBehavior behavior)
in 0x00036 System.Data.Common.DbDataAdapter:Fill (System.Data.DataSet 
dataSet, System.String srcTable)
in (wrapper remoting-invoke-with-check) System.Data.Common.DbDataAdapter:Fill 
(System.Data.DataSet,string)
in 0x00121 MoteurCRM.CProfil:RetourneGroupeCommercial (System.String 
cnxstring, System.String televendeur_Id)


what has been modified this week end

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] Internal call from a module

2005-05-17 Thread Pierre Brunet
 Hi,
   I try to call a C function from a C# module...
My C code runtime.c launch an assembly appli.cs, I could call a C 
function in runtime.c from appli.cs with an InternalCall. But I 've 
a module module.cs used by appli.cs, and in this module I need to 
call a C function in runtime.c, it throws an exception 
System.MissingMethodException: Cannot find the requested method.

How can I do ??  Thanks !
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] Problem with DbDataAdapter...

2005-05-17 Thread Sureshkumar T
 + bool allowDBNull = 
 value is bool ? (bool)value : false;

default allowDBNull should be true ;-)

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


Re: [Mono-devel-list] Problem with DbDataAdapter...

2005-05-17 Thread Konstantin Triger
Agreed, but in fact the provider should set the defaults, not the 
DataAdapter :-).

Regards,
Konstantin Triger

Sureshkumar T wrote:
+			bool allowDBNull = value is bool ? (bool)value : false;
   

default allowDBNull should be true ;-)
suresh.
 

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


[Mono-devel-list] another xslttests patch

2005-05-17 Thread Andrew Skiba
Write down the list of failures, so failures can be analyzed and 
appended to ignore list with

awk -F\t 'print $1' failed.lst ignore.lst
Index: ChangeLog
===
--- ChangeLog	(revision 44609)
+++ ChangeLog	(working copy)
@@ -1,5 +1,9 @@
 2005-05-17  Andrew Skiba  [EMAIL PROTECTED]
 
+	* xslttest.cs : output the list of failed tests
+
+2005-05-17  Andrew Skiba  [EMAIL PROTECTED]
+
 	* xslttest.cs : output progress symbols (., e, etc.), some
 	clean-up and refactoring.
 	
Index: xslttest.cs
===
--- xslttest.cs	(revision 44609)
+++ xslttest.cs	(working copy)
@@ -28,6 +28,7 @@
 		static TextWriter reportOutput = Console.Out;
 		static XmlTextWriter reportXmlWriter;
 		static StreamWriter missingFiles = new StreamWriter (missing.lst);
+		static StreamWriter failedTests = new StreamWriter (failed.lst);
 #endregion
 
 		static XsltTest ()
@@ -242,7 +243,7 @@
 			if (skipTargets.Contains (stylesheetBase))
 return;
 
-			XmlTextReader stylextr = new XmlTextReader (stylesheet);
+			new XmlTextReader (stylesheet);
 			if (useDomStyle) {
 XmlDocument styledoc = new XmlDocument ();
 if (whitespaceStyle)
@@ -302,6 +303,8 @@
 Console.Error.Write (.);
 return;
 			}
+ 			failedTests.WriteLine (testid + \t + message);
+ 			failedTests.Flush ();
 			if (reportAsXml) {
 reportXmlWriter.WriteStartElement (testcase);
 reportXmlWriter.WriteAttributeString (id, testid);
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-devel-list] Yet another patch to xslttest

2005-05-17 Thread Andrew Skiba
As we talked earlier, xsl:message is always printed on stdout. So to 
clean our output from those messages I output everything to stderr and 
send stdout to /dev/null
Index: Makefile
===
--- Makefile	(revision 44608)
+++ Makefile	(working copy)
@@ -62,7 +62,8 @@
 run-test : run-test-xslt run-test-ms
 
 run-test-xslt : xslttest.exe testsuite/TESTS/catalog-fixed.xml
-	$(RUNTIME) $(RUNTIME_FLAGS) xslttest.exe --report:TestResult.xml --xml --details --outall
+	# Redirect stdout to /dev/null because it has only xsl:message garbage
+	$(RUNTIME) $(RUNTIME_FLAGS) xslttest.exe --report:TestResult.xml --xml --details --outall /dev/null
 
 run-test-ms : alltest.exe xmlnorm.exe testsuite/TESTS/catalog-fixed.xml
 	$(RUNTIME) $(RUNTIME_FLAGS) ./alltest.exe $(TARGET_RESULTS)
Index: xslttest.cs
===
--- xslttest.cs	(revision 44626)
+++ xslttest.cs	(working copy)
@@ -39,7 +39,7 @@
 		
 		static void Usage ()
 		{
-			Console.WriteLine (@
+			Console.Error.WriteLine (@
 mono xslttest.exe [options] [targetFileMatch] -report:reportfile
 
 Options:
@@ -131,7 +131,7 @@
 		string reportFile = arg.Substring (9);
 		if (reportFile.Length  0) {
 			Usage ();
-			Console.WriteLine (Error: --report option requires filename.);
+			Console.Error.WriteLine (Error: --report option requires filename.);
 			return;
 		}
 		reportOutput = new StreamWriter (reportFile);
@@ -166,7 +166,7 @@
 			}
 
 			if (explicitTarget != null)
-Console.WriteLine (The specified target is 
+Console.Error.WriteLine (The specified target is 
 	+ explicitTarget);
 
 			XmlDocument whole = new XmlDocument ();
@@ -180,7 +180,7 @@
 ProcessTestCase (testCase);
 
 			if (!listOutput)
-Console.WriteLine (Finished:  
+Console.Error.WriteLine (Finished:  
 		+ DateTime.Now.ToString (MMdd-HHmmss.fff));
 
 			if (reportAsXml)
@@ -232,7 +232,7 @@
 
 			if (listOutput) {
 if (outfile != null)
-	Console.WriteLine (outfile);
+	Console.Error.WriteLine (outfile);
 return;
 			}
 
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] Problem with DbDataAdapter...

2005-05-17 Thread Konstantin Triger
Hello again,
Seems that Oracle provider does not initialize at all some columns in 
SchemaTable.
The attached patch fixes that in a generic way.

Regards,
Konstantin Triger

Hubert FONGARNAND wrote:
I've applied your patch...
It corrects the problem with my postgresql app...
but i get always an error with the same app with oracle :
System.IndexOutOfRangeException: Array index is out of range.
in 0x00067 System.Data.DataRow:get_Item (System.String columnName, 
DataRowVersion version)
in 0x00015 System.Data.DataRow:get_Item (System.String columnName)
in 0x00495 System.Data.Common.DbDataAdapter:BuildSchema (IDataReader reader, 
System.Data.DataTable table, SchemaType schemaType, MissingSchemaAction 
missingSchAction, MissingMappingAction missingMapAction, 
System.Data.Common.DataTableMappingCollection dtMapping)
in 0x00059 System.Data.Common.DbDataAdapter:BuildSchema (IDataReader reader, 
System.Data.DataTable table, SchemaType schemaType)
in (wrapper remoting-invoke-with-check) 
System.Data.Common.DbDataAdapter:BuildSchema 
(System.Data.IDataReader,System.Data.DataTable,System.Data.SchemaType)
in 0x00087 System.Data.Common.DbDataAdapter:FillTable (System.Data.DataTable 
dataTable, IDataReader dataReader, Int32 startRecord, Int32 maxRecords, 
System.Int32 counter)
in (wrapper remoting-invoke-with-check) 
System.Data.Common.DbDataAdapter:FillTable 
(System.Data.DataTable,System.Data.IDataReader,int,int,int)
in 0x00117 System.Data.Common.DbDataAdapter:Fill (System.Data.DataSet 
dataSet, System.String srcTable, IDataReader dataReader, Int32 startRecord, 
Int32 maxRecords)
in 0x000ce System.Data.Common.DbDataAdapter:Fill (System.Data.DataSet 
dataSet, Int32 startRecord, Int32 maxRecords, System.String srcTable, 
IDbCommand command, CommandBehavior behavior)
in 0x00036 System.Data.Common.DbDataAdapter:Fill (System.Data.DataSet 
dataSet, System.String srcTable)
in (wrapper remoting-invoke-with-check) System.Data.Common.DbDataAdapter:Fill 
(System.Data.DataSet,string)
in 0x00121 MoteurCRM.CProfil:RetourneGroupeCommercial (System.String 
cnxstring, System.String televendeur_Id)
in 0x007e7 FicheClient.Logon:btnValider_Click (System.Object sender, 
System.EventArgs e)
in (wrapper delegate-invoke) 
System.MulticastDelegate:invoke_void_object_EventArgs 
(object,System.EventArgs)

Thanks...
Le Mardi 17 Mai 2005 12:09, Konstantin Triger a écrit :
 

Agreed, but in fact the provider should set the defaults, not the
DataAdapter :-).
Regards,
Konstantin Triger
Sureshkumar T wrote:
   

+			bool allowDBNull = value is bool ? (bool)value : false;
   

default allowDBNull should be true ;-)
suresh.
 

___
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
 

Index: System.Data.Common/DbDataAdapter.cs
===
--- System.Data.Common/DbDataAdapter.cs (revision 44571)
+++ System.Data.Common/DbDataAdapter.cs (working copy)
@@ -570,14 +570,25 @@
ArrayList primaryKey = new ArrayList ();
ArrayList sourceColumns = new ArrayList ();
bool createPrimaryKey = true;
+   
+   DataTable schemaTable = reader.GetSchemaTable ();
+   int colIndex;
+   DataColumn ColumnNameCol= ((colIndex = 
schemaTable.Columns.IndexOf(ColumnName)) = 0) ? 
schemaTable.Columns[colIndex] : null;
+   DataColumn DataTypeCol  = ((colIndex = 
schemaTable.Columns.IndexOf(DataType)) = 0) ? schemaTable.Columns[colIndex] 
: null;
+   DataColumn IsAutoIncrementCol   = ((colIndex = 
schemaTable.Columns.IndexOf(IsAutoIncrement)) = 0) ? 
schemaTable.Columns[colIndex] : null;
+   DataColumn AllowDBNullCol   = ((colIndex = 
schemaTable.Columns.IndexOf(AllowDBNull)) = 0) ? 
schemaTable.Columns[colIndex] : null;
+   DataColumn IsReadOnlyCol= ((colIndex = 
schemaTable.Columns.IndexOf(IsReadOnly)) = 0) ? 
schemaTable.Columns[colIndex] : null;
+   DataColumn IsKeyCol = 
((colIndex = schemaTable.Columns.IndexOf(IsKey)) = 0) ? 
schemaTable.Columns[colIndex] : 

[Mono-devel-list] System.Data upgrade

2005-05-17 Thread Konstantin Triger
To all interested in System.Data changes,
Recently completed a merge from the Mainsoft branch 
(Mainsoft.System.Data) to the main trunk.

This branch included numerious bug fixes and internal indices redesign. 
The goals and implementation principles of the redesign attached.
In addition a Mainsoft testsuite was added to the Mono tests, and is 
available at ../System.Data/Test/System.Data.Tests.Mainsoft.

Enjoy and have fun.
--
Regards,
Konstantin Triger

Goal:
Use indices in all the functionality related to Sort, Select and Filter 
operations in the implementation of constraints, DataTable, DataView and other 
classes.

This implies the following requirements to the indices:
1.  Have description consisting of columns, sort direction per column, 
DataViewRowState, filter expression object and provide indexing over this 
description.
2.  Able to store unique values.
3.  Preserve order inside non-unique values (need shown by tests).
4.  Provide access by index (needed for DataView.Find and DataView indexer).

In addition, the following features greatly improve usability/performance:
1.  Common Index storage and factory to enable index reuse and update 
(implemented at DataTable level).
2.  Split the index implementation to Descriptor and Data. The descriptor 
to be reused in other areas, i.e. constraints (yet to be done).
3.  Index to be DataContainer friendly, i.e. store indices into 
DataContainer instead of DataRows
4.  Index to have a cheap Duplicates property for easy uniqueness ensuring.
5.  Minimize memory footprint.

To meet all the requirements and provide the features above, a lot of 
implementation needed to be added. Moreover, the requirements 2, 3, 4 were very 
hard to implement using Balanced Tree data structure and a way it was used till 
now.

We decided to choose another data structure, which will fit by design for all 
the above. The chosen data structure is based on a plain int[], where the 
stored integers are the indices into the DataContainer.

The solution for each requirement:
1.  There is a special class called Key, which is responsible to hold the 
Index description. It is able to Filter, Compare and feed the Index with the 
relevant indices to the DataContainer.
2.  Plain array with Merge sort is used.
3.  Merge sort is used.
4.  Plain array.

And solution for each feature:
1.  The DataTable holds the Index collection. Each Key class has a Compare 
method and an Index has a reference counting. Thus indices are reused and 
dropped when the reference falls to 0.
2.  There are Key and Index classes.
3.  Implied.
4.  During index sort or update, a special flag is set if a duplicate is 
found.
5.  Implied.

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


[Mono-devel-list] Patch for generating debug info in System.Reflection.Emit

2005-05-17 Thread Lluis Sanchez
Hi!

This patch adds some basic support for generating debug info in SRE. It
implements ModuleBuilder.DefineDocument and
ILGenerator.MarkSequencePoint, and should be enough for most of
compilers. With this patch, Boo and IKVM can generate correct debug
info.

The symbol writer is still implemented in
Mono.CompilerServices.SymbolWriter. I added a wrapper class that
implements ISymbolWritter and which is created by ModuleBuidler using
reflection. This class just forwards the calls to MonoSymbolWriter (the
one used by mcs).

There is also a patch for reflection.c, which is a workaround for bug
#74914. With this patch, MethodBuilder objects will return the correct
token value after the module is saved. This fixes the problem because
the debug info is generated after saving the module.

I'll commit if there are no objections.
Lluis.
Index: ChangeLog
===
--- ChangeLog	(revision 44628)
+++ ChangeLog	(working copy)
@@ -1,3 +1,9 @@
+2005-05-17  Lluis Sanchez Gual  [EMAIL PROTECTED]
+
+	* reflection.c: Update the table_idx field of method builders after
+	saving the module, since it can change. This is a workaround for
+	bug #74914. 
+
 2005-05-12  Zoltan Varga  [EMAIL PROTECTED]
 
 	* marshal.c (emit_marshal_custom): Add some error checking and call the
Index: reflection.c
===
--- reflection.c	(revision 44628)
+++ reflection.c	(working copy)
@@ -1373,6 +1373,7 @@
 	reflection_methodbuilder_from_method_builder (rmb, mb);
 
 	mono_image_basic_method (rmb, assembly);
+	mb-table_idx = *rmb.table_idx;
 
 	if (mb-dll) { /* It's a P/Invoke method */
 		guint32 moduleref;
@@ -1449,6 +1450,7 @@
 	reflection_methodbuilder_from_ctor_builder (rmb, mb);
 
 	mono_image_basic_method (rmb, assembly);
+	mb-table_idx = *rmb.table_idx;
 }
 
 static char*
Index: ChangeLog
===
--- ChangeLog	(revision 44494)
+++ ChangeLog	(working copy)
@@ -1,3 +1,8 @@
+2005-05-17  Lluis Sanchez Gual  [EMAIL PROTECTED]
+
+	* SymbolWriterImpl.cs: An implementation of ISymbolWriter. It is just a
+	wrapper for the MonoSymbolWriter class that mcs is using.
+
 2005-04-04  Marek Safar  [EMAIL PROTECTED]
 
 	* MonoSymbolFile.cs: Removed unused fields.
Index: Mono.CompilerServices.SymbolWriter.dll.sources
===
--- Mono.CompilerServices.SymbolWriter.dll.sources	(revision 44494)
+++ Mono.CompilerServices.SymbolWriter.dll.sources	(working copy)
@@ -3,3 +3,4 @@
 MonoSymbolWriter.cs
 MonoSymbolTable.cs
 MonoSymbolFile.cs
+SymbolWriterImpl.cs
Index: SymbolWriterImpl.cs
===
--- SymbolWriterImpl.cs	(revision 0)
+++ SymbolWriterImpl.cs	(revision 0)
@@ -0,0 +1,322 @@
+//
+// SymbolWriterImpl.cs
+//
+// Author:
+//   Lluis Sanchez Gual ([EMAIL PROTECTED])
+//
+// (C) 2005 Novell, Inc.  http://www.novell.com
+//
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// Software), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+
+using System;
+using System.Reflection;
+using System.Reflection.Emit;
+using System.Runtime.CompilerServices;
+using System.Collections;
+using System.IO;
+using System.Diagnostics.SymbolStore;
+	
+namespace Mono.CompilerServices.SymbolWriter
+{
+	public class SymbolWriterImpl: ISymbolWriter
+	{
+		MonoSymbolWriter msw;
+		ModuleBuilder mb;
+
+		delegate Guid GetGuidFunc (ModuleBuilder mb);
+		GetGuidFunc get_guid_func;
+		
+		int currentToken;
+		string methodName;
+		Stack namespaceStack = new Stack ();
+		bool methodOpened;
+		
+		Hashtable documents = new Hashtable ();
+		
+		public SymbolWriterImpl (ModuleBuilder mb)
+		{
+			this.mb = mb;
+		}
+		
+		public void Close ()
+		{
+			MethodInfo mi = typeof (ModuleBuilder).GetMethod (
+Mono_GetGuid,
+BindingFlags.Static | BindingFlags.NonPublic);
+			if (mi == null)
+return;
+
+			get_guid_func = 

Re: [Mono-devel-list] Patch for generating debug info in System.Reflection.Emit

2005-05-17 Thread Rodrigo B. de Oliveira
On 5/17/05, Lluis Sanchez [EMAIL PROTECTED] wrote:
 Hi!
 
 This patch adds some basic support for generating debug info in SRE. It
 implements ModuleBuilder.DefineDocument and
 ILGenerator.MarkSequencePoint, and should be enough for most of
 compilers. With this patch, Boo and IKVM can generate correct debug
 info.
 

WAHOO!

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


Re: [Mono-devel-list] Generic Queue and Stack from mscorlib to System

2005-05-17 Thread Martin Baulig
On Wed, 2005-05-11 at 12:40 +0900, Atsushi Eno wrote:

 Is there any problem if we move Stack and Queue (and related tests)
 in System.Collections.Generic from mscorlib.dll to System.dll?
 
 In .NET 2.0 beta2, they are moved to System.dll.

Hi,

I think there are more such API changes in the latest beta; it'd be
great if someone could have a look at them :-)

Martin


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


Re: [Mono-devel-list] The Computer Language Shootout

2005-05-17 Thread Matthijs ter Woord (meddochat)
Looks great



- Original Message - 
From: Isaac Gouy [EMAIL PROTECTED]
To: mono-devel-list@lists.ximian.com
Sent: Tuesday, May 17, 2005 5:54 PM
Subject: [Mono-devel-list] The Computer Language Shootout


 now using Mono 1.1.7


http://shootout.alioth.debian.org/great/benchmark.php?test=alllang=csharpsort=fullcpu

 We really welcome improvements/alternatives to the existing programs,
 and contributions for the micro-benchmarks we haven't done yet.



 __
 Yahoo! Mail Mobile
 Take Yahoo! Mail with you! Check email on your mobile phone.
 http://mobile.yahoo.com/learn/mail
 ___
 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] need some help ! Multiple domains in Mono...

2005-05-17 Thread Pierre Brunet
Hello, I've a lot of questions on Mono  It's for my University project.
I try to embed mono into an application.
My goal is to launch a mono into a pthread and run an assembly over it :
  (  )  (  ) (  ) - toto.exe
   |  ||
|  ||  - pthread running pnet
   |  ||
|  ||
   ___
  ||
  |Process |
  ||
I try to launch all my mono in a single domain, but I've side effect 
when I pass arguments to my assembly.
So I want to launch mono in different domains, but I can't do that with 
mono_domain_create. (SegFault)
What is the right way to proceed ?

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


Re: [Mono-devel-list] The Computer Language Shootout

2005-05-17 Thread Isaac Gouy
It'll look better when better programs are contributed ;-)


--- Matthijs ter Woord (meddochat) [EMAIL PROTECTED] wrote:
 Looks great
 
 
 
 - Original Message - 
 From: Isaac Gouy [EMAIL PROTECTED]
 To: mono-devel-list@lists.ximian.com
 Sent: Tuesday, May 17, 2005 5:54 PM
 Subject: [Mono-devel-list] The Computer Language Shootout
 
 
  now using Mono 1.1.7
 
 

http://shootout.alioth.debian.org/great/benchmark.php?test=alllang=csharpsort=fullcpu
 
  We really welcome improvements/alternatives to the existing
 programs,
  and contributions for the micro-benchmarks we haven't done yet.
 
 
 
  __
  Yahoo! Mail Mobile
  Take Yahoo! Mail with you! Check email on your mobile phone.
  http://mobile.yahoo.com/learn/mail
  ___
  Mono-devel-list mailing list
  Mono-devel-list@lists.ximian.com
  http://lists.ximian.com/mailman/listinfo/mono-devel-list
 
 
 
 



__ 
Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard. 
http://promotions.yahoo.com/new_mail 
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] Patch for generating debug info in System.Reflection.Emit

2005-05-17 Thread Kamil Skalski
Dnia wtorek, 17 maja 2005 17:25, Lluis Sanchez napisa:
 Hi!

 This patch adds some basic support for generating debug info in SRE. It
 implements ModuleBuilder.DefineDocument and
 ILGenerator.MarkSequencePoint, and should be enough for most of
 compilers. With this patch, Boo and IKVM can generate correct debug
 info.

This is really great news. Thanks a lot! Maybe now I will also try mono 
debugger for Nemerle development.


 The symbol writer is still implemented in
 Mono.CompilerServices.SymbolWriter. I added a wrapper class that
 implements ISymbolWritter and which is created by ModuleBuidler using
 reflection. This class just forwards the calls to MonoSymbolWriter (the
 one used by mcs).

 There is also a patch for reflection.c, which is a workaround for bug
 #74914. With this patch, MethodBuilder objects will return the correct
 token value after the module is saved. This fixes the problem because
 the debug info is generated after saving the module.

 I'll commit if there are no objections.
 Lluis.

-- 
Kamil Skalski
http://nazgul.omega.pl
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list