Re: [Mono-winforms-list] could someone please send me the latest

2005-05-20 Thread Peter Dennis Bartok
Please also update System.Drawing.

Peter

-Original Message-
From: Ricardo Stuven [EMAIL PROTECTED]
To: Jordi Mas [EMAIL PROTECTED]
Cc: mono-winforms-list@lists.ximian.com
Date: 20 May, 2005 22:29
Subject: Re: [Mono-winforms-list] could someone please send me the latest


Jordi Mas [EMAIL PROTECTED] wrote:
 Ricardo,
 
 On Windows you do not need libgdiplus since we use Windows native
 GDIPLUS library, we provide libgdiplus as an implementation of that
 library for non-Windows systems. See http://www.mono-project.com/Drawing
 for more details.
 
 Regards,
 Jordi,

Thank you. I understood something different from Peter's reply to
jeromy... but he already explained that :-)

I updated System.dll and System.Windows.Forms.dll (in .../lib and
./mono/gac) from the last daily build. Now I get this error:

Unhandled Exception: System.TypeInitializationException: An exception
was thrown by the type initializer for MessageBoxForm ---
System.Reflection.TargetInvocationException: Exception has been thrown
by the target of an invocation. --- System.ArgumentException: Invalid
Parameter. A null reference or invalid value was found.
in 0x00063 System.Drawing.GDIPlus:CheckStatus (Status status)
in 0x001ec System.Drawing.Image:InitFromStream (System.IO.Stream stream)
in (wrapper remoting-invoke-with-check)
System.Drawing.Image:InitFromStream (System.IO.Stream)
in 0x00104 System.Drawing.Bitmap:.ctor
(System.Runtime.Serialization.SerializationInfo info, StreamingContext
context)
[...]

Regards,
Ricardo Stuven.
___
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list


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


[Mono-devel-list] Weird runtime crash

2005-05-20 Thread Peter Williams
Hi everyone,

I have a weird runtime issue with a small Gtk# program that I have. It
was working fine. I updated some resource files, recompiled, and now the
runtime reliably segfaults very early on in the program's execution. No
NullReferenceException, just SIGSEGV. Through Console.WriteLine's I've
traced down the line where this happens, and it's totally innocuous:

if (dims != null) {

If I remove the line, execution continues a little farther but there's
just another segfault later.

In gdb, I get a stack trace that doesn't seem very helpful: see below.
Runtime and corlib are SVN trunk from a few nights ago. Other, much more
complicated programs run fine. Any ideas of what might be going on here?

Thanks,
Peter


(gdb) allbt

Thread 3 (Thread -1219167312 (LWP 12549)):
#0  0x0035e7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x00681cfc in pthread_cond_timedwait@@GLIBC_2.3.2 ()
from /lib/tls/libpthread.so.0
#2  0xb7f55eb2 in timedwait_signal_poll_cond (cond=0xb7a591dc,
mutex=0xb7a591c4, timeout=0x0) at handles.c:1251
#3  0xb7f55ff0 in _wapi_handle_timedwait_signal_handle
(handle=0xfffc, timeout=0x0) at handles.c:1338
#4  0xb7f560d9 in _wapi_handle_wait_signal_handle (handle=0x404) at
handles.c:1298
#5  0xb7f61e05 in WaitForSingleObjectEx (handle=0x404,
timeout=4294967295, alertable=1) at wait.c:179
#6  0xb7f0f92c in finalizer_thread (unused=0x0) at gc.c:674
#7  0xb7f224d5 in start_wrapper (data=0x80b0a20) at threads.c:293
#8  0xb7f6166d in timed_thread_start_routine (args=0x80b0b30) at timed-
thread.c:134
#9  0xb7f79078 in GC_start_routine (arg=0x808cf00) at
pthread_support.c:1237
#10 0x0067f341 in start_thread () from /lib/tls/libpthread.so.0
#11 0x0043efee in clone () from /lib/tls/libc.so.6

Thread 2 (Thread -1219085392 (LWP 12548)):
#0  0x0035e7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x00684be6 in __nanosleep_nocancel () from /lib/tls/libpthread.so.0
#2  0xb7f52848 in collection_thread (unused=0x0) at collection.c:36
#3  0x0067f341 in start_thread () from /lib/tls/libpthread.so.0
#4  0x0043efee in clone () from /lib/tls/libc.so.6

Thread 1 (Thread -1209739040 (LWP 12545)):
#0  0xb6da978e in ?? ()
#1  0x in ?? ()

-- 
Peter Williams  [EMAIL PROTECTED]

[Ninjas] are cool; and by cool, I mean totally sweet.
  -- REAL Ultimate Power

___
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-20 Thread Hubert FONGARNAND


Hello,
I've retested my apps with the new svn version... I can now log into my 
app
without this System.IndexOutOfRangeException: Array index is out of range.

But there's problem with some sql commands... with postgresql, oracle and
mssql

I think that it's when I combine several select in 1 sqlcmd...
i will check this today...
thanks

Le Mercredi 18 Mai 2005 11:32, vous avez écrit :
 Hello Hubert,

 I'm completely agree that bugs are a bad thing, that's why I'm here to
 help you as soon as possible. The reason the DataAdapter code has
 changed is to solve other bugs, and the solution required some
 cooperation from providers too. Unfortunately it's not simple to make
 a complete testing over all the providers, so I do expect for some
 number of issues, but believe that with yours and others help we will
 stabilize the code very fast.

 I would like to ask you several questions:

1. Does your PG app work? If not, can you send the stack traces/code
   samples of the problems?
2. What is your current problem with Oracle? Can you please send a
   stack? (It cannot be the same one because in my latest patch I
   removed the calls to System.Data.DataRow:get_Item (System.String
   columnName) from the BuildSchema).
3. If it's possible, can you send your entire app, so I'll test it
   here? (The confidentiality will be ensured).

 Thank you in advance for your patience and cooperation.

 Regards,
 Konstantin Triger

 Hubert FONGARNAND wrote:
 You're patch has nothing changes... I get always the same error...
 With the postgresql app... I can now login... but there's plenty of bugs
 inside... I think the best solution is to get an older version of Mono!
 
 Why do you include a patch if there's compatibility problems with data
 providers!!!
 
 thanks
 
 Le Mardi 17 Mai 2005 16:26, vous avez écrit :
 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 

Re: [Mono-devel-list] merging two assemblies and related problems

2005-05-20 Thread Zoltan Varga
   Hi,

  If you find strange bugs when running something under mono, while it
works under MS.NET, please report it at bugzilla.ximian.com.

   Zoltan

On 5/20/05, Vladimir Vukicevic [EMAIL PROTECTED] wrote:
 I've brought up this problem in the past, but i'm again trying to find
 a decent solution for this using mono.  The problem is pretty
 straightforward:  I have two assemblies, A.dll and B.dll.  A.dll is
 autogenerated using System.Reflection.Emit; B.dll is compiled from C#
 source.  A.dll needs to access a custom attribute class that's defined
 in B.dll.  So far, here are the approaches that I've tried, and the
 problems I've encountered:
 
 1) Use ILMerge (http://research.microsoft.com/~mbarnett/ilmerge.aspx).
  Works great; binary only, Windows only.
 
 2) Use PERWAPI (http://www.plas.fit.qut.edu.au/perwapi/Default.aspx).
 It seems to work under .NET 1.1 on windows; under mono 1.1.7 I see
 strange bugs (usually an infinite loop as it's trying to write an
 assembly out on anything but the simplest assemblies).  It also balks
 on some mono-generated assemblies, usually finding non-zero values
 where it was expecting to just read zeros.
 
 3) Use RAIL (http://rail.dei.uc.pt/).  A simple test of
 RAssemblyDef.LoadAssembly(foo.dll).SaveAssembly(bar.dll) results
 in:
 ** ERROR **: file reflection.c: line 835 (method_encode_clauses):
 assertion failed: (ex_info-handlers)
 
 4) Use monodis on both A.dll and B.dll, massage the output a bit, and
 reassemble with ilasm -- basically remove the extern reference from
 A.dll to B.dll, remove the foreign assembly reference from the custom
 attribute usage in A.dll, and tack on most of B.dll's disassembly to
 the end.  The problem here is that A.dll uses the calli instruction,
 and monodis/ilasm can't round-trip the calli signatures... the output
 has: IL_0008:  calli signature-0x1101, signature-0x1102, and
 so on.  ildasm appropriately balks.
 
 Is there a #5 that I'm missing that I haven't tried?  Out of the above
 problems, fixing monodis/ilasm to round-trip signatures would probably
 be the most straightforward, though that's the least elegant solution.
  Fixing the assertion failure with RAIL may or may not be difficult; I
 haven't looked into what exactly is happening in much detail.  PERWAPI
 might be making too many assumptions about the PE files it operates
 on, and may be failing  due to .NET-only quirks.
 
 A final last-ditch effort may be to just use S.R.E to generate the
 classes/methods that B.dll provides directly into A.dll.  Maybe I
 could use Cecil to read B.dll and generate appropriate output using
 S.R.E.?
 
 Any ideas would be appreciated.
 
 Thanks,
 - Vladimir
 ___
 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-devel-list] Problem with DbDataAdapter... RESOLVED

2005-05-20 Thread Hubert FONGARNAND
Hello

I've found the last problems I had...
The problem is when you do a fill with a null datetime in the result 
dataset...
the problem is in method
internal void ReadIDataRecord(int recordIndex, IDataRecord record, int[] 
mapping, int length)
of the record cache class
this method do a call of :
column.DataContainer.SetItemFromDataRecord(recordIndex, record,i);

so the problem comes from the sealed class DateTimeDataContainer : 
AbstractObjectDataContainer

the method record.GetDateTime(field); throw a not well catched exception when 
the datetime is null
So, as a trick, i've added a try catch :

my patch is :

Index: DataContainer.cs
===
--- DataContainer.cs(revision 44793)
+++ DataContainer.cs(working copy)
@@ -1069,7 +1069,15 @@
{
// if exception thrown, it should be caught
// in the  caller method
-   
base.SetValue(index,record.GetDateTime(field));
+   Object date=null;
+   try
+   {
+date=record.GetDateTime(field);
+   }catch
+   {
+   }
+   base.SetValue(index,date);
+

base.SetItemFromDataRecord(index,record,field);
}



Le Mercredi 18 Mai 2005 11:32, vous avez écrit :
 Hello Hubert,

 I'm completely agree that bugs are a bad thing, that's why I'm here to
 help you as soon as possible. The reason the DataAdapter code has
 changed is to solve other bugs, and the solution required some
 cooperation from providers too. Unfortunately it's not simple to make
 a complete testing over all the providers, so I do expect for some
 number of issues, but believe that with yours and others help we will
 stabilize the code very fast.

 I would like to ask you several questions:

1. Does your PG app work? If not, can you send the stack traces/code
   samples of the problems?
2. What is your current problem with Oracle? Can you please send a
   stack? (It cannot be the same one because in my latest patch I
   removed the calls to System.Data.DataRow:get_Item (System.String
   columnName) from the BuildSchema).
3. If it's possible, can you send your entire app, so I'll test it
   here? (The confidentiality will be ensured).

 Thank you in advance for your patience and cooperation.

 Regards,
 Konstantin Triger

 Hubert FONGARNAND wrote:
 You're patch has nothing changes... I get always the same error...
 With the postgresql app... I can now login... but there's plenty of bugs
 inside... I think the best solution is to get an older version of Mono!
 
 Why do you include a patch if there's compatibility problems with data
 providers!!!
 
 thanks
 
 Le Mardi 17 Mai 2005 16:26, vous avez écrit :
 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 

Re: [Mono-devel-list] merging two assemblies and related problems

2005-05-20 Thread Eyal Alaluf
Hi, Vladimir.

There is one 5 you didn't try. It's called MBEL http://www.cs.arizona.edu/mbel
It's a Java based solution (of al things). It is capable of reading IL
assemblies manipulating them and writing them back. Causing it to merge two
assemblies requires definitely an effort but should be possible.
We use MBEL to generate a stub .Net DLL froma Java jar file and it quite decent
apart from the factv that it consumes tons of memory.

Eyal.

On Fri, 20 May 2005, Vladimir Vukicevic wrote:

 Date: Fri, 20 May 2005 02:36:34 -0700
 From: Vladimir Vukicevic [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: [Mono-devel-list] merging two assemblies and related problems

 I've brought up this problem in the past, but i'm again trying to find
 a decent solution for this using mono.  The problem is pretty
 straightforward:  I have two assemblies, A.dll and B.dll.  A.dll is
 autogenerated using System.Reflection.Emit; B.dll is compiled from C#
 source.  A.dll needs to access a custom attribute class that's defined
 in B.dll.  So far, here are the approaches that I've tried, and the
 problems I've encountered:

 1) Use ILMerge (http://research.microsoft.com/~mbarnett/ilmerge.aspx).
  Works great; binary only, Windows only.

 2) Use PERWAPI (http://www.plas.fit.qut.edu.au/perwapi/Default.aspx).
 It seems to work under .NET 1.1 on windows; under mono 1.1.7 I see
 strange bugs (usually an infinite loop as it's trying to write an
 assembly out on anything but the simplest assemblies).  It also balks
 on some mono-generated assemblies, usually finding non-zero values
 where it was expecting to just read zeros.

 3) Use RAIL (http://rail.dei.uc.pt/).  A simple test of
 RAssemblyDef.LoadAssembly(foo.dll).SaveAssembly(bar.dll) results
 in:
 ** ERROR **: file reflection.c: line 835 (method_encode_clauses):
 assertion failed: (ex_info-handlers)

 4) Use monodis on both A.dll and B.dll, massage the output a bit, and
 reassemble with ilasm -- basically remove the extern reference from
 A.dll to B.dll, remove the foreign assembly reference from the custom
 attribute usage in A.dll, and tack on most of B.dll's disassembly to
 the end.  The problem here is that A.dll uses the calli instruction,
 and monodis/ilasm can't round-trip the calli signatures... the output
 has: IL_0008:  calli signature-0x1101, signature-0x1102, and
 so on.  ildasm appropriately balks.

 Is there a #5 that I'm missing that I haven't tried?  Out of the above
 problems, fixing monodis/ilasm to round-trip signatures would probably
 be the most straightforward, though that's the least elegant solution.
  Fixing the assertion failure with RAIL may or may not be difficult; I
 haven't looked into what exactly is happening in much detail.  PERWAPI
 might be making too many assumptions about the PE files it operates
 on, and may be failing  due to .NET-only quirks.

 A final last-ditch effort may be to just use S.R.E to generate the
 classes/methods that B.dll provides directly into A.dll.  Maybe I
 could use Cecil to read B.dll and generate appropriate output using
 S.R.E.?

 Any ideas would be appreciated.

 Thanks,
 - Vladimir
 ___
 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-devel-list] merging two assemblies and related problems

2005-05-20 Thread Jim Purbrick
Hi Vladimir,

--- Vladimir Vukicevic [EMAIL PROTECTED] wrote:
 3) Use RAIL (http://rail.dei.uc.pt/).

I'm currently using RAIL and Mono-1.1.7 on Windows to
transform assemblies.

I initially had some problems getting the test
application running on Mono-1.1.4, but Zoltan fixed
them.

So, try running the RAIL examples on the latest Mono
and see how you get on.

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-devel-list] Play a mp3 with mono

2005-05-20 Thread Chris Turchin
You might want to look at Sonance or Muine, both of which is are mono based
music players. Both use the GStreamer bindings for mono:

http://monohandbook.monoforge.com/monkeyguide/gnome/bindings/gstreamer/gstreamer.html

http://sonance.aaronbock.net/
http://muine.gooeylinux.org/

Regards,

--chris


On Fri, 20 May 2005, Pablo Cardona wrote:

 Hi, I'm trying to play sounds with Mono, and I've seen that the Sound
 class in the namespace Gnome only accepts .wav files, and I need to
 play a .mp3, so is in mono any class or method that can plays an .mp3
 file??

 Thanks.
 ___
 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-devel-list] Problem with DbDataAdapter...

2005-05-20 Thread Francisco Figueiredo Jr.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Konstantin Triger wrote:
 Hello Hubert,
 
 There was a change during this week end: the Mainsoft changes were
 merged into the trunk (they were previously available at
 Mainsoft.System.Data branch).
 
 From the stack I suppose that PG provider does not fully initialize the
 SchemaTable and some columns contain nulls.
 

Hi Konstantin!

Npgsql is returning the following metadata schema:


result.Columns.Add (ColumnName, typeof (string));
result.Columns.Add (ColumnOrdinal, typeof (int));
result.Columns.Add (ColumnSize, typeof (int));
result.Columns.Add (NumericPrecision, typeof (int));
result.Columns.Add (NumericScale, typeof (int));
result.Columns.Add (IsUnique, typeof (bool));
result.Columns.Add (IsKey, typeof (bool));
result.Columns.Add (BaseCatalogName, typeof (string));
result.Columns.Add (BaseColumnName, typeof (string));
result.Columns.Add (BaseSchemaName, typeof (string));
result.Columns.Add (BaseTableName, typeof (string));
result.Columns.Add (DataType, typeof(Type));
result.Columns.Add (AllowDBNull, typeof (bool));
result.Columns.Add (ProviderType, typeof (int));
result.Columns.Add (IsAliased, typeof (bool));
result.Columns.Add (IsExpression, typeof (bool));
result.Columns.Add (IsIdentity, typeof (bool));
result.Columns.Add (IsAutoIncrement, typeof (bool));
result.Columns.Add (IsRowVersion, typeof (bool));
result.Columns.Add (IsHidden, typeof (bool));
result.Columns.Add (IsLong, typeof (bool));
result.Columns.Add (IsReadOnly, typeof (bool));


Please, let me know if you are using any other metadata info so I can
add it accordingly.

Thanks in advance.




- --
Regards,

Francisco Figueiredo Jr.
Npgsql Lead Developer
http://gborg.postgresql.org/project/npgsql
MonoBrasil Project Founder Member
http://monobrasil.softwarelivre.org


- -
Science without religion is lame;
religion without science is blind.

  ~ Albert Einstein
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iQEVAwUBQo30PP7iFmsNzeXfAQJaTwf9H85e6MGVDWo6uyE6jnewkaL5ivq7JS4z
6/Vvwwk3xmMkj5WhKcF2wQa9Zo4RWZYpTcmT5uoyYJl68Yl5puSnNinWeSa7h5rg
QTD9FXrhQ+IGvylGqS+U1reKC6JGJZC/A2fwJZPKYqjKh7MXutNy3cwERVzLqpYr
kSxHLdQt7kIPC5arpzcQMjOMAhg96X/03XxqnrupO7ACAdqyoC/uCfRGWte3+DDZ
UHg8Uka+OK0EsNPwVGUH7PpUWZp5Cn1qbiJ/eFJphaXTxZMLKKOTawvYVFI5lOxP
qCDe4RsFjosp4kYOkS+m9UtKbtr0vp2euY8+Y7l6TjyRADHNijemQg==
=BBjE
-END PGP SIGNATURE-

___
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-20 Thread Francisco Figueiredo Jr.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hubert FONGARNAND wrote:
 I've applied your patch...
 It corrects the problem with my postgresql app...

Hi Hubert!

What Npgsql version are you using??

I know that Konstantin patch adds much more reliability to the
DbDataAdapter code, but I'd like to know why Npgsql was failing when it
implements the required metadata info.

Thanks in advance.



- --
Regards,

Francisco Figueiredo Jr.
Npgsql Lead Developer
http://gborg.postgresql.org/project/npgsql
MonoBrasil Project Founder Member
http://monobrasil.softwarelivre.org


- -
Science without religion is lame;
religion without science is blind.

  ~ Albert Einstein
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iQEVAwUBQo33f/7iFmsNzeXfAQJAhAf/Wg3q1Lk06E2usd/V/4i5n0ev/alXfXnr
9teLggzKuUD3YzV9aIe3cIQAHuTmEmb/ttW28hhNGUZ74WV8nJCLi0CO6brgHrE5
vIxxN4orHVSDU5Q+H/hCLlH7RJciqBhQK1vlQsVt9EH68l7NKLUkh28T7Xvf3WsK
/ivnPoa1eEN19i4qZaJKv6D1/gvGfDmK4Vap4Ltw48OKZVVCx23ugQmCBzBcK33f
pJ1uBUZ03YmPrYudtpBFGaxSgnOsroothix0U9oPXpmc8ZnYk3s1xWJb9lMsgzg9
FVWyyVuvZ719QaOYU21FHrxGbDPLifAZDQs/dK3uthaFfAFUFrfnwQ==
=vKWX
-END PGP SIGNATURE-

___
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-20 Thread Francisco Figueiredo Jr.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Konstantin Triger wrote:
 Hello Hubert,
 

Hi all!

 I'm completely agree that bugs are a bad thing, that's why I'm here to
 help you as soon as possible. The reason the DataAdapter code has
 changed is to solve other bugs, and the solution required some
 cooperation from providers too. Unfortunately it's not simple to make
 a complete testing over all the providers, so I do expect for some
 number of issues, but believe that with yours and others help we will
 stabilize the code very fast.
 

I totally agree here with Konstantine.
I apologize of not being very promptly but if there is anything else I
can do to help you, please let me know.

Thanks in advance.

- --
Regards,

Francisco Figueiredo Jr.
Npgsql Lead Developer
http://gborg.postgresql.org/project/npgsql
MonoBrasil Project Founder Member
http://monobrasil.softwarelivre.org


- -
Science without religion is lame;
religion without science is blind.

  ~ Albert Einstein
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iQEVAwUBQo34qP7iFmsNzeXfAQJm1wf8Ducx3ZdSrkS6kpKtU/Hd4mHTCu34qbOq
dMh9qNf8EbFeHuDkavcyIq6Ow28hKUVCF9ydnGOO8n1uQxDAn6/Lk26GHPcuV8zB
xep6c2E1KjyLTehPLdP3fyas2grCzC6848oDbf1OYyBpSy1b6fRJssrGrJAi6WlC
cjdx9BEVDtOJQkVYX01rBG2pYl1xGIX5GTC3Pg0Z7WmTaXxj3PIrbv8LnAQAsaJh
LEq0ssvv7Wm1O0Tm/YH1EIpmUtZKJkZ4qtC6F8jaVLv2d+TblNyyyOFW0sPBupvK
rSzo9twA85Mct6rNmLIRvd95jleXIsSLEzLgG3MDlW+pW6rTgEjVJg==
=zRPt
-END PGP SIGNATURE-

___
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... RESOLVED

2005-05-20 Thread Sureshkumar T
I guess the following is more proper fix. But, I am not sure why there
is no GetDateTimeSafe in ISafeRecord and is there any reason to leave
this to throw exception. Kosta could clear this.  Hubert, can you please
try this?

[SNIP]
Index: System.Data.Common/DataContainer.cs
===
--- System.Data.Common/DataContainer.cs (revision 44790)
+++ System.Data.Common/DataContainer.cs (working copy)
@@ -1069,7 +1069,8 @@
{
// if exception thrown, it should be
caught
// in the  caller method
-
base.SetValue(index,record.GetDateTime(field));
+this[index] = record.GetValue(field);
+

base.SetItemFromDataRecord(index,record,field);
}
[/SNIP]

suresh.

On Fri, 2005-05-20 at 12:36 +0200, Hubert FONGARNAND wrote:
 Hello
 
 I've found the last problems I had...
 The problem is when you do a fill with a null datetime in the result 
 dataset...
 the problem is in method  
 internal void ReadIDataRecord(int recordIndex, IDataRecord record, int[] 
 mapping, int length)
 of the record cache class
 this method do a call of :
   column.DataContainer.SetItemFromDataRecord(recordIndex, record,i);
 
 so the problem comes from the sealed class DateTimeDataContainer : 
 AbstractObjectDataContainer
 
 the method record.GetDateTime(field); throw a not well catched exception when 
 the datetime is null
 So, as a trick, i've added a try catch :
 
 my patch is :
 
 Index: DataContainer.cs
 ===
 --- DataContainer.cs(revision 44793)
 +++ DataContainer.cs(working copy)
 @@ -1069,7 +1069,15 @@
 {
 // if exception thrown, it should be caught
 // in the  caller method
 -   
 base.SetValue(index,record.GetDateTime(field));
 +   Object date=null;
 +   try
 +   {
 +date=record.GetDateTime(field);
 +   }catch
 +   {
 +   }
 +   base.SetValue(index,date);
 +
 
 base.SetItemFromDataRecord(index,record,field);
 }
 
 
 
 Le Mercredi 18 Mai 2005 11:32, vous avez écrit :
  Hello Hubert,
 
  I'm completely agree that bugs are a bad thing, that's why I'm here to
  help you as soon as possible. The reason the DataAdapter code has
  changed is to solve other bugs, and the solution required some
  cooperation from providers too. Unfortunately it's not simple to make
  a complete testing over all the providers, so I do expect for some
  number of issues, but believe that with yours and others help we will
  stabilize the code very fast.
 
  I would like to ask you several questions:
 
 1. Does your PG app work? If not, can you send the stack traces/code
samples of the problems?
 2. What is your current problem with Oracle? Can you please send a
stack? (It cannot be the same one because in my latest patch I
removed the calls to System.Data.DataRow:get_Item (System.String
columnName) from the BuildSchema).
 3. If it's possible, can you send your entire app, so I'll test it
here? (The confidentiality will be ensured).
 
  Thank you in advance for your patience and cooperation.
 
  Regards,
  Konstantin Triger
 
  Hubert FONGARNAND wrote:
  You're patch has nothing changes... I get always the same error...
  With the postgresql app... I can now login... but there's plenty of bugs
  inside... I think the best solution is to get an older version of Mono!
  
  Why do you include a patch if there's compatibility problems with data
  providers!!!
  
  thanks
  
  Le Mardi 17 Mai 2005 16:26, vous avez écrit :
  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, 

[Mono-devel-list] Operating System in C# Project

2005-05-20 Thread Alejandro Serrano
Hi,
Is anyone interested in starting a project for doing an operating system 
completely in managed code, à la Singularity that is being done in 
Microsoft?
I don't know much C or C++, but I'm very knowledgeable on C# and MSIL. 
So the idea would be to start implementing the CLR in a way that it 
executes completely by itself, then porting GTK# and something more to 
make it usable. A far long project!!

Thanks in advance,
Serras
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] Operating System in C# Project

2005-05-20 Thread Kornél Pál
Is anyone interested in starting a project for doing an operating system
completely in managed code, à la Singularity that is being done in
Microsoft?
An operating system cannot be written in managed code. If you will create
something like an operating system using managed code it will be only a
subsystem on the top of the underlaying operating system and other
subsystems like Mono.
An operating system is based on the hardware.
I think I am not the only person who think so:
http://www.google.co.hu/search?hl=enq=define%3Aoperating+system
Kornél
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] merging two assemblies and related problems

2005-05-20 Thread Vladimir Vukicevic
On 5/20/05, Jim Purbrick [EMAIL PROTECTED] wrote:
 Hi Vladimir,
 
 --- Vladimir Vukicevic [EMAIL PROTECTED] wrote:
  3) Use RAIL (http://rail.dei.uc.pt/).
 
 I'm currently using RAIL and Mono-1.1.7 on Windows to
 transform assemblies.
 
 I initially had some problems getting the test
 application running on Mono-1.1.4, but Zoltan fixed
 them.
 
 So, try running the RAIL examples on the latest Mono
 and see how you get on.

Ah, the examples seem to run, and I just tracked down a small testcase
for the RAIL problem -- any method that has a try/catch exception
block seems to trigger the assertion.  Unfortunately I can't not use
exceptions (I have to catch a DllNotFound exception while trying to
call a few different P/Invoke methods before I figure out which one I
can use).

I've filed bug 75014 for the assertion failure.

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


[Mono-list] How can I . . .

2005-05-20 Thread Eric Damron
I need to be able to detect when my ISP has changed my cable modem's IP
address.  One complicating factor is that I'm behind a linksys router
and am running NAT on my internal network.

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


RE: [Mono-list] How can I . . .

2005-05-20 Thread Chris van Wyk
Hi Eric,

 I need to be able to detect when my ISP has changed my cable modem's IP
 address.  One complicating factor is that I'm behind a linksys router
 and am running NAT on my internal network.
 


Have a look at this  GotDotNet User Sample: Asynchronous Trace Route
(tracert) in C#

The link is:

http://www.dotnet247.com/247reference/a.aspx?u=http://www.gotdotnet.com/Comm
unity/UserSamples/Details.aspx?SampleGuid=f0144b0a-cfa8-41e7-9377-d556cd1ebc
6c


because you know your internal subnet you should be able to detect your
router external IP as soon as it changes while running the tracert.

I have not tested the code with mono, but this should work. Let me know if
it works for you.

Regards
Chris


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


[Mono-list] Building mcs without existing Mono installation

2005-05-20 Thread Kornél Pál
Hi,
I am using Windows XP with Cygwing and latest sources from SVN.
When I tried to build Mono (using mono/make) the makefile of mcs was using
csc.exe that was unable to build the corlib for Mono.
It wasn't surprise but my question is why is csc.exe used if it cannot be
use?
I have dowloaded monolite using make get-monolite-latest but I wasn't used
at all.
I was able to compile mcs using make EXTERNAL_MCS=/mono-1.1.7/bin/mcs
where /mono-1.1.7 is the directory of an existing Mono installation.
How is it possible to compile mcs using monolite?
Kornl
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


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

2005-05-20 Thread Francisco Figueiredo Jr.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Alexandr Sorokin wrote:
 I have the same problemm on my .NET application with  postgresql.
 On MS .NET all code work good, but then i start project on Mono, i get
 the same error
 System.IndexOutOfRangeException: Array index is out of range. on fill
 method.
 Redhat 9.0 Mono 1.1.7 postgresql 8.0, latest npgsql from postgres site.


Hi Alexandr!

Sorry for late response...

Could you try a fix Hubert did today in the message: Re:
[Mono-devel-list] Problem with DbDataAdapter...  RESOLVED and check if
you still get this problem with Npgsql?

Please, let us know if you get any other problem.

Thanks in advance.


- --
Regards,

Francisco Figueiredo Jr.
Npgsql Lead Developer
http://gborg.postgresql.org/project/npgsql
MonoBrasil Project Founder Member
http://monobrasil.softwarelivre.org


- -
Science without religion is lame;
religion without science is blind.

  ~ Albert Einstein
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iQEVAwUBQo3yQv7iFmsNzeXfAQJD5wgApLQWIorDk3lsxpyMDo3PkIrXazbHAQcW
rAKbu2sG9Ui8OJW+qUSKVC0toYlRg+Kdact09YrXrFZMkwn0VLyl6IWlNJZgHD6j
tyxZhkT8lQHQ07ymIHIh6Z+e6hPMx2fACWB7ct1gyodffZkZJGasYE3ViHL/4pTX
8rT62vWbVgVEReofnsGCSW3ZwQxGauSfUi9v7GxrvJERF5hUCgzHDHZbSId202Lq
RdzTlMsFGPzZTOOuH+PgIzVbu2FCPO//mr2BA4Wlb4chQHdr3HAqBh+Jw5Xb4u2z
FjNYQBx6wlM4R9eW9hs1lSUVpp6AjFA2WvmihgbqRkeEeFI+67dq5g==
=wd7Z
-END PGP SIGNATURE-

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


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

2005-05-20 Thread Francisco Figueiredo Jr.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Konstantin Triger wrote:
 Hello Hubert,
 
 There was a change during this week end: the Mainsoft changes were
 merged into the trunk (they were previously available at
 Mainsoft.System.Data branch).
 
 From the stack I suppose that PG provider does not fully initialize the
 SchemaTable and some columns contain nulls.
 

Hi Konstantin!

Npgsql is returning the following metadata schema:


result.Columns.Add (ColumnName, typeof (string));
result.Columns.Add (ColumnOrdinal, typeof (int));
result.Columns.Add (ColumnSize, typeof (int));
result.Columns.Add (NumericPrecision, typeof (int));
result.Columns.Add (NumericScale, typeof (int));
result.Columns.Add (IsUnique, typeof (bool));
result.Columns.Add (IsKey, typeof (bool));
result.Columns.Add (BaseCatalogName, typeof (string));
result.Columns.Add (BaseColumnName, typeof (string));
result.Columns.Add (BaseSchemaName, typeof (string));
result.Columns.Add (BaseTableName, typeof (string));
result.Columns.Add (DataType, typeof(Type));
result.Columns.Add (AllowDBNull, typeof (bool));
result.Columns.Add (ProviderType, typeof (int));
result.Columns.Add (IsAliased, typeof (bool));
result.Columns.Add (IsExpression, typeof (bool));
result.Columns.Add (IsIdentity, typeof (bool));
result.Columns.Add (IsAutoIncrement, typeof (bool));
result.Columns.Add (IsRowVersion, typeof (bool));
result.Columns.Add (IsHidden, typeof (bool));
result.Columns.Add (IsLong, typeof (bool));
result.Columns.Add (IsReadOnly, typeof (bool));


Please, let me know if you are using any other metadata info so I can
add it accordingly.

Thanks in advance.




- --
Regards,

Francisco Figueiredo Jr.
Npgsql Lead Developer
http://gborg.postgresql.org/project/npgsql
MonoBrasil Project Founder Member
http://monobrasil.softwarelivre.org


- -
Science without religion is lame;
religion without science is blind.

  ~ Albert Einstein
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iQEVAwUBQo30PP7iFmsNzeXfAQJaTwf9H85e6MGVDWo6uyE6jnewkaL5ivq7JS4z
6/Vvwwk3xmMkj5WhKcF2wQa9Zo4RWZYpTcmT5uoyYJl68Yl5puSnNinWeSa7h5rg
QTD9FXrhQ+IGvylGqS+U1reKC6JGJZC/A2fwJZPKYqjKh7MXutNy3cwERVzLqpYr
kSxHLdQt7kIPC5arpzcQMjOMAhg96X/03XxqnrupO7ACAdqyoC/uCfRGWte3+DDZ
UHg8Uka+OK0EsNPwVGUH7PpUWZp5Cn1qbiJ/eFJphaXTxZMLKKOTawvYVFI5lOxP
qCDe4RsFjosp4kYOkS+m9UtKbtr0vp2euY8+Y7l6TjyRADHNijemQg==
=BBjE
-END PGP SIGNATURE-

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


[Mono-list] Mono 1.1.7 Installer Apache2

2005-05-20 Thread Chris Aitken
Hi All,

I have just installed mono installer 1.1.7 for linux (on Debian
Sarge/Apache2).

When I restart apache2, it complains that the mod_mono.so is not the correct
version:

chimera:/opt/mono-1.1.7/lib/httpd/modules# /etc/init.d/apache2 restart
Forcing reload of web server: Apache2apache2: module mod_mono.c is not
compatible with this version of Apache (found 20020628, need 20020903).
Please contact the vendor for the correct version.
chimera:/opt/mono-1.1.7/lib/httpd/modules#

Is this because the module included is for Apache 1.3? Do you have a
precompiled module for Apache2?

Thanks,

Chris


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: [Mono-list] MonoDevelop 0.7

2005-05-20 Thread peter
Ben Maurer wrote:
You can type rug ref as root, and that refreshes. Or if you like to use
the gui, your instructions will work.
-- Ben
 

Hi,
I have SuSE 9.3 Pro.  I tried the above, and I've tried installing from 
source.  No joy.  I just get a message (from rug) saying that 
/usr/bin/monodevelop doesn't exist (which is true).  If I try to install 
from source I get the gtksourceview message that others have mentioned, 
when I do ./configure.

If I do rug channels, I get:
[EMAIL PROTECTED]:/usr/bin rug channels
subd? | Alias| Name
--+--+---
Yes  | gtk-sharp-official   | Gtk# 1.0.x
Yes  | gtk-sharp-2-official | Gtk# 2
Yes  | mono-1.1-official| Mono 1.1.x
Yes  | mono-tools-official  | Tools for mono
Is there a channel I don't know about?
I did manage to get MonoDevelop 0.5 working with mono 1.0.1 under SuSE 
9.2 Pro, but since I upgraded to mono 1.1.7 MonoDevelop first just 
crashed, so I got the new version, then just refused to install - 
whatever method I used.

It's disappointing, because I think monodevelop is really important if 
mono is to become accepted as a development platform rather than just a 
deployment platform on Linux.

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


Re: [Mono-list] MonoDevelop 0.7

2005-05-20 Thread Ben Maurer
On Fri, 2005-05-20 at 18:23 +0100, peter wrote:
 Ben Maurer wrote:
 
 You can type rug ref as root, and that refreshes. Or if you like to use
 the gui, your instructions will work.
 
 -- Ben
   
 
 Hi,
 
 I have SuSE 9.3 Pro.  I tried the above, and I've tried installing from 
 source.  No joy.  I just get a message (from rug) saying that 
 /usr/bin/monodevelop doesn't exist (which is true).  If I try to install 
 from source I get the gtksourceview message that others have mentioned, 
 when I do ./configure.
 
 If I do rug channels, I get:
 
 [EMAIL PROTECTED]:/usr/bin rug channels
 
 subd? | Alias| Name
 --+--+---
  Yes  | gtk-sharp-official   | Gtk# 1.0.x
  Yes  | gtk-sharp-2-official | Gtk# 2
  Yes  | mono-1.1-official| Mono 1.1.x
  Yes  | mono-tools-official  | Tools for mono
 
 Is there a channel I don't know about?

Once you are at that point, you have to `rug in monodevelop' and
everything should work fine.

-- Ben

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


Re: [Mono-list] MonoDevelop 0.7

2005-05-20 Thread peter
Ben Maurer wrote:
Once you are at that point, you have to `rug in monodevelop' and
everything should work fine.
-- Ben
 

Thanks Ben, but it still doesn't work, I'm afraid:
[EMAIL PROTECTED]:/usr/bin su
Password:
linux:/usr/bin # rug in monodevelop
Using monodevelop 0.7-1.novell from the 'Tools for mono' channel
ERROR: Unresolved dependencies:
Skipping monodoc-1.0.6-0.novell[Tools for mono]: incompatible arch
Marking this resolution attempt as invalid.
linux:/usr/bin #
Any ideas?
Cheers
Peter

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


[Mono-list] Maintaining just one DB (Npgsql) connection for web services

2005-05-20 Thread Christopher Nehren
I'm in the process of designing some web services, and they'll speak to
a database through an assembly that I'll also be writing. I've learned
from my experience in other database-backed web development environments
that it's generally a good idea to reuse one connection to the database
rather than spawning a new one for every request. I haven't been able to
find anything documenting how to enable this for .NET data providers. I
have a few ideas of how to implement it using things like a Unix socket
(this code will only run on a Unix system, so no need to worry about
lack of portability), but I'd like some nice, simple method call that I
can use which will handle the magic for me. Thanks in advance for any
information.

Best Regards,
Christopher Nehren

P.S.: Thanks a million, million times for Mono. I have been obsessing
over it for at least three months now. :)
-- 
I abhor a system designed for the user, if that word is a coded
pejorative meaning stupid and unsophisticated. -- Ken Thompson
If you ask the wrong questions, you get answers like 42 and God.
Unix is user friendly. However, it isn't idiot friendly.

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


Re: [Mono-list] MonoDevelop 0.7

2005-05-20 Thread Ben Maurer
On Fri, 2005-05-20 at 18:50 +0100, peter wrote:
 Ben Maurer wrote:
 
 Once you are at that point, you have to `rug in monodevelop' and
 everything should work fine.
 
 -- Ben
 
   
 
 Thanks Ben, but it still doesn't work, I'm afraid:
 
 [EMAIL PROTECTED]:/usr/bin su
 Password:
 linux:/usr/bin # rug in monodevelop
 
 Using monodevelop 0.7-1.novell from the 'Tools for mono' channel
 ERROR: Unresolved dependencies:
 
 Skipping monodoc-1.0.6-0.novell[Tools for mono]: incompatible arch
 Marking this resolution attempt as invalid.
 linux:/usr/bin #

rug rm monodoc, and then do the install.

This is because SUSE does not yet make monodoc noarch, and there is a
somewhat broken rule that they forbid people from going to a different
package arch.

-- Ben

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


Re: [Mono-list] Maintaining just one DB (Npgsql) connection for web services

2005-05-20 Thread Joe Audette
I think trying to use just 1 connection is not a good
idea. You want to use connection pooling to re-use
connections but not just 1 connection or your app
won't scale to many users.

Support for connection pooling is built in to the .NET
data providers.

Regards,

Joe Audette


--- Christopher Nehren
[EMAIL PROTECTED] wrote:
 I'm in the process of designing some web services,
 and they'll speak to
 a database through an assembly that I'll also be
 writing. I've learned
 from my experience in other database-backed web
 development environments
 that it's generally a good idea to reuse one
 connection to the database
 rather than spawning a new one for every request. I
 haven't been able to
 find anything documenting how to enable this for
 .NET data providers. I
 have a few ideas of how to implement it using things
 like a Unix socket
 (this code will only run on a Unix system, so no
 need to worry about
 lack of portability), but I'd like some nice, simple
 method call that I
 can use which will handle the magic for me. Thanks
 in advance for any
 information.
 
 Best Regards,
 Christopher Nehren
 
 P.S.: Thanks a million, million times for Mono. I
 have been obsessing
 over it for at least three months now. :)
 -- 
 I abhor a system designed for the user, if that
 word is a coded
 pejorative meaning stupid and unsophisticated. --
 Ken Thompson
 If you ask the wrong questions, you get answers like
 42 and God.
 Unix is user friendly. However, it isn't idiot
 friendly.
 
 ___
 Mono-list maillist  -  Mono-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-list
 

joe_audette [at] yahoo dotcom
http://www.joeaudette.com
http://www.mojoportal.com
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Important note for SUSE 9.3 Gtk#2 users

2005-05-20 Thread Ben Maurer
Hello,

If you are on SUSE 9.3 and downloaded the latest Gtk# development
release, this is an important note for you.

We've decided that we do *not* want to package 2.5.x for now, and that
the only Gtk# 2 version we will provide rpms for is 1.9.x. This means
that you have a package of gtk# on your computer that is newer (in
version number) than the ones we will be providing in the future.

To fix this, you need to do the following:

rug rm gtk-sharp2
rug ref
rug in gtk-sharp2

If you want to do this without using rug, you can also do:

rpm -Uhv --oldpackage LOCATION OF 1.9.x RPM

You can download the 1.9.x rpm from our website, which is now updated.

Sorry about this little bump.

-- Ben

PS: RPM know-it-alls might comment hey, just set an epoch. I did not
want to do that, because it will complicate things for people using
distros that ship rpms for gtk#2 (like SUSE will in the future), for
those using the DAG repo, etc.

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


Re: [Mono-list] MonoDevelop 0.7

2005-05-20 Thread peter
Ben Maurer wrote:
rug rm monodoc, and then do the install.
This is because SUSE does not yet make monodoc noarch, and there is a
somewhat broken rule that they forbid people from going to a different
package arch.
-- Ben
 

Well, we're making progress, but we're not there yet, I'm afraid.
The installation seemed to go OK.  I've included the installation 
messages from rug below.

However, when I run /usr/bin/monodevelop, the splash screen appears and 
a progress bar runs (too quickly for me to see what it's doing), then 
the program quietly dies.  Nothing else happens.  No error messages.  
Nothing.

Sorry to be a pain, but I'd value any suggestions you or anyone else 
might have.

Cheers
Peter
(rug output follows)
Password:
linux:/home/peter # rug rm monodoc
The following requested packages will be removed:
 monodoc 1.0.6-5
1 packages will be removed.
Do you want to continue? [y/N] y
Removing
Transaction finished
linux:/home/peter # rug in monodevelop
Using monodevelop 0.7-1.novell from the 'Tools for mono' channel
The following requested packages will be installed:
 monodevelop 0.7-1.novell (Tools for mono)
The following additional packages will be installed:
 boo 0.5.3.1544-0.novell (Tools for mono)
   boo-0.5.3.1544-0.novell: needed by monodevelop-0.7-1.novell
 gecko-sharp-2.0 0.10-0.novell (Tools for mono)
   gecko-sharp-2.0-0.10-0.novell: needed by monodevelop-0.7-1.novell
 gtksourceview-sharp-2.0 0.10-0.novell (Tools for mono)
   gtksourceview-sharp-2.0-0.10-0.novell: needed by 
monodevelop-0.7-1.novell
 ikvm 1:0.14-0.novell (Tools for mono)
   ikvm-1:0.14-0.novell: needed by monodevelop-0.7-1.novell
 monodoc 1.0.6-0.novell (Tools for mono)
   monodoc-1.0.6-0.novell: needed by monodevelop-0.7-1.novell

6 packages will be installed.
This is a 11.79M download.
Do you want to continue? [y/N] y
Download complete
Verifying monodoc
There is no package signature for monodoc; package will be installed 
because user is trusted
Verifying ikvm
There is no package signature for ikvm; package will be installed 
because user is trusted
Verifying gtksourceview-sharp-2.0
There is no package signature for gtksourceview-sharp-2.0; package will 
be installed because user is trusted
Verifying gecko-sharp-2.0
There is no package signature for gecko-sharp-2.0; package will be 
installed because user is trusted
Verifying boo
There is no package signature for boo; package will be installed because 
user is trusted
Verifying monodevelop
There is no package signature for monodevelop; package will be installed 
because user is trusted
Preparing Transaction
Installing monodoc-1.0.6-0.novell.noarch.rpm
Installing ikvm-0.14-0.novell.noarch.rpm
Installing gtksourceview-sharp-2.0-0.10-0.novell.noarch.rpm
Installing gecko-sharp-2.0-0.10-0.novell.noarch.rpm
Installing boo-0.5.3.1544-0.novell.noarch.rpm
Installing monodevelop-0.7-1.novell.noarch.rpm
Transaction finished

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


Re: [Mono-list] MonoDevelop 0.7

2005-05-20 Thread Ben Maurer
On Fri, 2005-05-20 at 19:35 +0100, peter wrote:
 Ben Maurer wrote:
 
 rug rm monodoc, and then do the install.
 
 This is because SUSE does not yet make monodoc noarch, and there is a
 somewhat broken rule that they forbid people from going to a different
 package arch.
 
 -- Ben
 
   
 
 Well, we're making progress, but we're not there yet, I'm afraid.
 
 The installation seemed to go OK.  I've included the installation 
 messages from rug below.
 
 However, when I run /usr/bin/monodevelop, the splash screen appears and 
 a progress bar runs (too quickly for me to see what it's doing), then 
 the program quietly dies.  Nothing else happens.  No error messages.  
 Nothing.
 
 Sorry to be a pain, but I'd value any suggestions you or anyone else 
 might have.

That's interesting :-).

Can you run from the command line, maybe there is stuff there.

-- Ben

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


[Mono-list] Re: Maintaining just one DB (Npgsql) connection for web services

2005-05-20 Thread Christopher Nehren
On 2005-05-20, Joe Audette scribbled these
curious markings:
 I think trying to use just 1 connection is not a good
 idea. You want to use connection pooling to re-use
 connections but not just 1 connection or your app
 won't scale to many users.

Hmm, thanks for the advice. Connection pooling does sound like what I
want.

 Support for connection pooling is built in to the .NET
 data providers.

Aha, that's the rub! This automagic Just Works is why I love the .NET
platform.

Thanks again, and thanks especially for the very speedy reply!

Best Regards,
Christopher Nehren
-- 
I abhor a system designed for the user, if that word is a coded
pejorative meaning stupid and unsophisticated. -- Ken Thompson
If you ask the wrong questions, you get answers like 42 and God.
Unix is user friendly. However, it isn't idiot friendly.

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


Re: [Mono-list] MonoDevelop 0.7

2005-05-20 Thread peter
Ben Maurer wrote:
That's interesting :-).
 

You could say that (in fact you just did) :)
Can you run from the command line, maybe there is stuff there.
-- Ben
 

Good thinking.
Here's the output.  Doesn't mean a lot to me, I'm afraid.  I hope it 
means a bit more to you!

[EMAIL PROTECTED]:~/QtProjects/helloworld_project /usr/bin/monodevelop
** (MonoDevelop:12056): WARNING **: Missing method Register in assembly 
/usr/lib/mono/gac/gtksourceview-sharp/1.0.0.2__35e10195dab3c99f/gtksourceview-sharp.dll, 
type GType
Loading error, please reinstall :
System.Reflection.TargetInvocationException: Exception has been thrown 
by the target of an invocation. --- System.TypeInitializationException: 
An exception was thrown by the type initializer for 
GtkSourceView.SourceLanguagesManager --- System.NullReferenceException: 
Object reference not set to an instance of an object
in 0x0 unknown method
in 0x8 GtkSourceView.SourceLanguagesManager:.cctor ()--- End of 
inner exception stack trace ---

in 0x0 unknown method
in 0x00022 MonoDevelop.Services.SourceViewService:.ctor ()
in 0x0 unknown method
in (wrapper managed-to-native) 
System.Reflection.MonoCMethod:InternalInvoke (object,object[])
in 0x0006f System.Reflection.MonoCMethod:Invoke (System.Object obj, 
BindingFlags invokeAttr, System.Reflection.Binder binder, 
System.Object[] parameters, System.Globalization.CultureInfo culture)--- 
End of inner exception stack trace ---

in 0x00104 System.Reflection.MonoCMethod:Invoke (System.Object obj, 
BindingFlags invokeAttr, System.Reflection.Binder binder, 
System.Object[] parameters, System.Globalization.CultureInfo culture)
in 0x00019 System.Reflection.MonoCMethod:Invoke (BindingFlags 
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, 
System.Globalization.CultureInfo culture)
in 0x00032 System.Reflection.ConstructorInfo:Invoke (System.Object[] 
parameters)
in 0x000e2 System.Activator:CreateInstance (System.Type type, Boolean 
nonPublic)
in 0xc System.Activator:CreateInstance (System.Type type)
in 0x0003a System.Reflection.Assembly:CreateInstance (System.String 
typeName, Boolean ignoreCase)
in 0x00012 System.Reflection.Assembly:CreateInstance (System.String 
typeName)
in 0x000af MonoDevelop.Core.AddIns.AddIn:CreateObject (System.String 
className)
in 0x00030 MonoDevelop.Core.AddIns.Codons.ClassCodon:BuildItem 
(System.Object owner, System.Collections.ArrayList subItems, 
MonoDevelop.Core.AddIns.Conditions.ConditionCollection conditions)
in 0x0014f 
MonoDevelop.Core.AddIns.DefaultAddInTreeNode:BuildChildItems 
(System.Object caller)
in 0x0004c 
MonoDevelop.Core.Services.ServiceManager:InitializeServicesSubsystem 
(System.String servicesPath)
in 0x00640 MonoDevelop.SharpDevelopMain:Main (System.String[] args)
[EMAIL PROTECTED]:~/QtProjects/helloworld_project 

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


[Mono-list] Re: [Gtk-sharp-list] Important note for SUSE 9.3 Gtk#2 users

2005-05-20 Thread Joe Shaw
Hi,

On Fri, 2005-05-20 at 14:29 -0400, Ben Maurer wrote:
 To fix this, you need to do the following:
 
 rug rm gtk-sharp2
 rug ref
 rug in gtk-sharp2

You can also install older versions by explicitly specifying the
channel, like so:

rug ref
rug in channel:gtk-sharp2

(where channel is the channel name or alias... I couldn't find a link
to the server on the downloads page so I'm not sure what it's exactly
named.)

 PS: RPM know-it-alls might comment hey, just set an epoch. I did not
 want to do that, because it will complicate things for people using
 distros that ship rpms for gtk#2 (like SUSE will in the future), for
 those using the DAG repo, etc.

An epoch is almost never the right thing to do. :)

Joe

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


[Mono-list] Re: [Gtk-sharp-list] Important note for SUSE 9.3 Gtk#2 users

2005-05-20 Thread Ben Maurer
On Fri, 2005-05-20 at 14:32 -0400, Joe Shaw wrote:
 Hi,
 
 On Fri, 2005-05-20 at 14:29 -0400, Ben Maurer wrote:
  To fix this, you need to do the following:
  
  rug rm gtk-sharp2
  rug ref
  rug in gtk-sharp2
 
 You can also install older versions by explicitly specifying the
 channel, like so:
 
 rug ref
 rug in channel:gtk-sharp2
 
 (where channel is the channel name or alias... I couldn't find a link
 to the server on the downloads page so I'm not sure what it's exactly
 named.)

The server is go-mono.com/download, the channel is gtk-sharp-2-official.

  PS: RPM know-it-alls might comment hey, just set an epoch. I did not
  want to do that, because it will complicate things for people using
  distros that ship rpms for gtk#2 (like SUSE will in the future), for
  those using the DAG repo, etc.
 
 An epoch is almost never the right thing to do. :)

:-)

-- Ben

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


Re: [Mono-list] Re: Maintaining just one DB (Npgsql) connection for web services

2005-05-20 Thread Joe Audette
Glad to be of help.

 
  Support for connection pooling is built in to the
 .NET
  data providers.
 
 Aha, that's the rub! This automagic Just Works is
 why I love the .NET
 platform.

The main thing to remember in .NET connection pooling
is that it will use a different pool for each
variation of the connection string. If your app just
uses 1 connection string I think you are all set. If
you are building a different connection string say by
credentials passed in the request, you would get a
different connection pool for each different
connection string.

I'm fairly certain the Npgsql data provider has
connection pooling enabled by default and can be
turned  off by a setting in the connection string but
you may want to double check the documentation for
Npgslq cause I'm not 100% sure. I think I have
pooling=true in my connection string but I don't have
the code here with me to check. It is possible that is
needed to enable the pooling.

Hope it helps,

Joe

joe_audette [at] yahoo dotcom
http://www.joeaudette.com
http://www.mojoportal.com
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] MonoDevelop 0.7

2005-05-20 Thread peter
peter wrote:
Ben Maurer wrote:
That's interesting :-).
You could say that (in fact you just did) :)
Can you run from the command line, maybe there is stuff there.
-- Ben
Good thinking.
snip /
Sorry to follow up my own post.  Just to say I tried the following - 
without luck as you will see:

linux:/home/peter # rug rm gtksourceview-sharp
The following requested packages will be removed:
 gtksourceview-sharp 0.5-7
1 packages will be removed.
Do you want to continue? [y/N] y
Removing
Transaction finished
linux:/home/peter # rug ref
Refreshing channel data
Refresh complete
linux:/home/peter # rug in gtksourceview-sharp
ERROR: Unable to find package 'gtksourceview-sharp' in any subscribed 
channel
linux:/home/peter # man rug
Reformatting rug(1), please wait...
linux:/home/peter # rug pa mono-tools-official

'mono-tools-official' matches 'Tools for mono'
S | Name| Version
--+-+
i | boo | 0.5.3.1544-0.novell
i | gecko-sharp-2.0 | 0.10-0.novell
i | gtksourceview-sharp-2.0 | 0.10-0.novell
i | ikvm| 1:0.14-0.novell
i | monodevelop | 0.7-1.novell
i | monodoc | 1.0.6-0.novell
linux:/home/peter # rug in gtksourceview-sharp-2.0
ERROR: There is no newer version of 'gtksourceview-sharp-2.0' in any 
subscribed channel
linux:/home/peter #

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


RE: [Mono-list] MonoDevelop 0.7

2005-05-20 Thread Carl Olsen
I tried rug ref and got nothing.  I tried the same thing in the GUI and got
nothing.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of peter
Sent: Friday, May 20, 2005 12:23 PM
To: mono-list@lists.ximian.com
Subject: Re: [Mono-list] MonoDevelop 0.7

Ben Maurer wrote:

You can type rug ref as root, and that refreshes. Or if you like to use
the gui, your instructions will work.

-- Ben
  

Hi,

I have SuSE 9.3 Pro.  I tried the above, and I've tried installing from 
source.  No joy.  I just get a message (from rug) saying that 
/usr/bin/monodevelop doesn't exist (which is true).  If I try to install 
from source I get the gtksourceview message that others have mentioned, 
when I do ./configure.

If I do rug channels, I get:

[EMAIL PROTECTED]:/usr/bin rug channels

subd? | Alias| Name
--+--+---
 Yes  | gtk-sharp-official   | Gtk# 1.0.x
 Yes  | gtk-sharp-2-official | Gtk# 2
 Yes  | mono-1.1-official| Mono 1.1.x
 Yes  | mono-tools-official  | Tools for mono

Is there a channel I don't know about?

I did manage to get MonoDevelop 0.5 working with mono 1.0.1 under SuSE 
9.2 Pro, but since I upgraded to mono 1.1.7 MonoDevelop first just 
crashed, so I got the new version, then just refused to install - 
whatever method I used.

It's disappointing, because I think monodevelop is really important if 
mono is to become accepted as a development platform rather than just a 
deployment platform on Linux.

Cheers

Peter

___
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] MonoDevelop 0.7

2005-05-20 Thread Carl Olsen
I'm getting a message saying it can't find monodevelop in any subscribed
channels.

I'm subscribed to 

subd? | Alias| Name
--+--+---
 Yes  | gtk-sharp-official   | Gtk# 1.0.x
 Yes  | mono-1.1-official| Mono 1.1.x
 Yes  | mono-tools-official  | Tools for mono

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of peter
Sent: Friday, May 20, 2005 12:50 PM
To: mono-list@lists.ximian.com
Subject: Re: [Mono-list] MonoDevelop 0.7

Ben Maurer wrote:

Once you are at that point, you have to `rug in monodevelop' and
everything should work fine.

-- Ben

  

Thanks Ben, but it still doesn't work, I'm afraid:

[EMAIL PROTECTED]:/usr/bin su
Password:
linux:/usr/bin # rug in monodevelop

Using monodevelop 0.7-1.novell from the 'Tools for mono' channel
ERROR: Unresolved dependencies:

Skipping monodoc-1.0.6-0.novell[Tools for mono]: incompatible arch
Marking this resolution attempt as invalid.
linux:/usr/bin #

Any ideas?

Cheers

Peter



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



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


[Mono-list] Suse 9.2 Windows.Forms

2005-05-20 Thread Brown, Robert
I installed Mono 1.1.7 on Suse 9.2 Professional using Red Carpet.  I did
a quick test and I got a console app to run.  However, I was curious
about Windows.Forms support.  When I tried to execute an application
that had a form with a button on it.  I got an error saying that the
Windows.Forms namespace could not be found.  

My questions are:  

Even though the Windows.Forms namespace is still being worked on; is it
available on Suse 9.2 via Red Carpet?
If it is, does it have to be installed separately?

Thanks,
Robert


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


Re: [Mono-list] Suse 9.2 Windows.Forms

2005-05-20 Thread peter
Brown, Robert wrote:
snip /I got an error saying that the
 

snip
Did you reference the assembly?
Peter
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


RE: [Mono-list] Suse 9.2 Windows.Forms

2005-05-20 Thread Brown, Robert
Actually.  I compiled it in VS.Net 2003 and SCP'd the exe over to Suse
and tried to run it.   

-Original Message-
From: peter [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 20, 2005 3:48 PM
To: Brown, Robert
Cc: mono-list@lists.ximian.com
Subject: Re: [Mono-list] Suse 9.2 Windows.Forms

Brown, Robert wrote:

snip /I got an error saying that the
  

snip

Did you reference the assembly?

Peter



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


[Mono-list] Businesses

2005-05-20 Thread gordingin
If this is inappropriate, my apologizes and please do not respond but I
watch the list and it is quite active. I just was wondering what companies
are actually using Mono in a real world application.

Thanks
Ralph

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


Re: [Mono-list] Suse 9.2 Windows.Forms

2005-05-20 Thread peter
Brown, Robert wrote:
Actually.  I compiled it in VS.Net 2003 and SCP'd the exe over to Suse
and tried to run it.
 

snip /
I was hoping someone more knowledgeable than me (i.e. just about anyone) 
would chip in, but since no-one has, perhaps it's worth saying that 
there have been issues with System.Windows.Forms, I understand.

So just as an experiment, perhaps you could try recompiling under mono 
and see if that works.  That'd be my next move anyway.

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


RE: [Mono-list] MonoDevelop 0.7

2005-05-20 Thread Ben Maurer
On Fri, 2005-05-20 at 14:36 -0500, Carl Olsen wrote:
 I'm getting a message saying it can't find monodevelop in any subscribed
 channels.
 
 I'm subscribed to 
 
 subd? | Alias| Name
 --+--+---
  Yes  | gtk-sharp-official   | Gtk# 1.0.x
  Yes  | mono-1.1-official| Mono 1.1.x
  Yes  | mono-tools-official  | Tools for mono

You aren't on a distro that is new enough to have a new gtk#. I assume
this is rh9 or a rhel box?

-- Ben

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


Re: [Mono-list] MonoDevelop 0.7

2005-05-20 Thread peter
Carl Olsen wrote:
I guess this means that upgrading to Mono 1.1.7 on SuSe 9.2 Pro causes
monodevelop to stop working.
 

That was my experience, and the reason I upgraded to 9.3.  However it 
doesn't seem to be straightforward to get it to work on SuSE 9.3 Pro 
either: at least not for me.

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


RE: [Mono-list] MonoDevelop 0.7

2005-05-20 Thread Carl Olsen
I guess this means that upgrading to Mono 1.1.7 on SuSe 9.2 Pro causes
monodevelop to stop working.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ben Maurer
Sent: Friday, May 20, 2005 3:35 PM
To: [EMAIL PROTECTED]
Cc: mono-list@lists.ximian.com; 'peter'
Subject: RE: [Mono-list] MonoDevelop 0.7

On Fri, 2005-05-20 at 14:36 -0500, Carl Olsen wrote:
 I'm getting a message saying it can't find monodevelop in any subscribed
 channels.
 
 I'm subscribed to 
 
 subd? | Alias| Name
 --+--+---
  Yes  | gtk-sharp-official   | Gtk# 1.0.x
  Yes  | mono-1.1-official| Mono 1.1.x
  Yes  | mono-tools-official  | Tools for mono

You aren't on a distro that is new enough to have a new gtk#. I assume
this is rh9 or a rhel box?

-- Ben

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



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


Re: [Mono-list] Suse 9.2 Windows.Forms

2005-05-20 Thread Peter Dennis Bartok
would chip in, but since no-one has, perhaps it's worth saying that
there have been issues with System.Windows.Forms, I understand.
What issues have you heard about? Things are working quite well, actually. 
There are a few controls (RichText, DataGrid, UpDown) that are still 
missing, but simple apps (and even not so simple ones) just run.

So just as an experiment, perhaps you could try recompiling under mono
and see if that works.  That'd be my next move anyway.
Shouldn't make much of a difference. I compile regularily with VS.Net and 
just run on Linux.

Cheers,
  Peter 

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


Re: [Mono-list] Suse 9.2 Windows.Forms

2005-05-20 Thread Peter Dennis Bartok
Could you please provide the exact error? Is the libgdiplus RPM installed on 
your system?

Also, not sure you're aware, but there's a mailing list dedicated to 
winforms: mono-winforms-list@lists.ximian.com

Cheers,
  Peter


-Original Message-
From: Brown, Robert [EMAIL PROTECTED]
To: mono-list@lists.ximian.com
Date: 20 May, 2005 13:40
Subject: [Mono-list] Suse 9.2 Windows.Forms


I installed Mono 1.1.7 on Suse 9.2 Professional using Red Carpet.  I did
a quick test and I got a console app to run.  However, I was curious
about Windows.Forms support.  When I tried to execute an application
that had a form with a button on it.  I got an error saying that the
Windows.Forms namespace could not be found.

My questions are:

Even though the Windows.Forms namespace is still being worked on; is it
available on Suse 9.2 via Red Carpet?
If it is, does it have to be installed separately?

Thanks,
Robert


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


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


Re: [Mono-list] Businesses

2005-05-20 Thread Jon Walker
My company (http://www.versora.com) uses Mono in a real world 
application. We do software that migrates system settings, application 
settings and data from Windows to Linux. We chose it because we had a 
large code base in C# .NET on Windows and a large portion of that code 
was reusable with minimal effort on Linux/Mono.

Jon Walker
[EMAIL PROTECTED]
CTO, Versora
[EMAIL PROTECTED] wrote:
If this is inappropriate, my apologizes and please do not respond but I
watch the list and it is quite active. I just was wondering what companies
are actually using Mono in a real world application.
Thanks
Ralph
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list
 

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


Re: [Mono-list] Suse 9.2 Windows.Forms

2005-05-20 Thread peter
Peter Dennis Bartok wrote:
snip /
What issues have you heard about? Things are working quite well, actually. 
There are a few controls (RichText, DataGrid, UpDown) that are still 
missing, but simple apps (and even not so simple ones) just run.
 

Like SWF not working at all in mono 1.0.x??
So just as an experiment, perhaps you could try recompiling under mono
and see if that works.  That'd be my next move anyway.
   

Shouldn't make much of a difference. I compile regularily with VS.Net and 
just run on Linux.
 

Excellent, Peter, so you might like to give some help to the OP?
Cheers
Peter
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] MonoDevelop 0.7

2005-05-20 Thread peter
Kirill wrote:
Hi,
Did you try running MD after removing gtksourceview-sharp? I'm not in 
Linux currently, so I can't check that, but I am guessing that maybe 
there were 2 versions installed on your computer, which interferred 
with each other?
What's MD?
Your diagnosis is probably correct, though.
Cheers
Peter
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Suse 9.2 Windows.Forms

2005-05-20 Thread Peter Dennis Bartok
Like SWF not working at all in mono 1.0.x??
It was not included in 1.0. That's not an 'issue'. It was documented that 
it's not included. And the OP is not using 1.0.x


Peter

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


Re: [Mono-list] MonoDevelop 0.7

2005-05-20 Thread peter
peter wrote:
What's MD?
Doh!!!  Sorry.  Just realised.
Yes I did try to rerun it after removal.  No luck
Cheers
Peter
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] MonoDevelop 0.7

2005-05-20 Thread peter
Kirill wrote:
Hi,
Did you try running MD after removing gtksourceview-sharp? I'm not in 
Linux currently, so I can't check that, but I am guessing that maybe 
there were 2 versions installed on your computer, which interferred 
with each other?
Nope.  That didn't work either.
Went into synaptic and looked for gtksourceview-sharp and found it.  So 
I uninstalled it (which uninstalled monodevelop as well).  I then 
reinstalled monodevelop via rug - which reinstalled gtksourceview.  
Finally I tried running monodevelop from the command line - and got 
exactly the same result as before.

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


Re: [Mono-list] Suse 9.2 Windows.Forms

2005-05-20 Thread peter
Peter Dennis Bartok wrote:
Like SWF not working at all in mono 1.0.x??
   

It was not included in 1.0. That's not an 'issue'. It was documented that 
it's not included. And the OP is not using 1.0.x
 

It was an issue for me trying to learn to use mono from books that said 
that SWF was working and having to find out for myself that it had been 
dropped in 1.0.x.  The answer I had in this group that explained all 
that to me also explained that the reason it had been dropped was 
because of issues.  It was Miguel who replied, I think.

I had no idea whether the new version worked well or not: and I was just 
trying to help.  If the new version works well, then I'm pleased for 
you, believe me.

It's no big deal.
Cheers
Peter
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] asp.net mod_mono reference question

2005-05-20 Thread Dustin Aleksiuk

Hello,

I'm sure there's an easy answer to this,
but I can't find it. I'm running mod_mono on apache, on Linux. I want to
reference my own DLL in my codebehind. When the compiler tries to compile
my codebehind when the page is run, it can't find my classes. It can find
all the system classes.

Is there a config parameter where I
can tell it which DLLs to reference?

Thanks muchly,
Dustin


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


RE: [Mono-list] asp.net mod_mono reference question

2005-05-20 Thread Jesse Pasichnyk








-r MyCustomAssembly.dll





Mono C# compiler, (C) 2001 - 2003 Ximian,
Inc.

mcs [options] source-files


--about About
the Mono C# compiler

 -addmodule:MODULE Adds
the module to the generated assembly


-checked[+|-] Set default context to checked


-codepage:ID Sets code page to the one in
ID (number, utf8, reset)


-clscheck[+|-] Disables CLS Compliance verifications


-define:S1[;S2] Defines one or more symbols (short: /d:)

 -debug[+|-],
-g Generate debugging information


-delaysign[+|-] Only insert the public key into the assembly
(no signing)


-doc:FILE XML
Documentation file to generate

 -keycontainer:NAME The key
pair container used to strongname the assembly


-keyfile:FILE The strongname key file used to
strongname the assembly

 -langversion:TEXT
Specifies language version modes: ISO-1 or Default

 -lib:PATH1,PATH2
Adds the paths to the assembly link path


-main:class Specified the class that
contains the entry point


-noconfig[+|-] Disables implicit references to
assemblies


-nostdlib[+|-] Does not load core libraries


-nowarn:W1[,W2] Disables one or more warnings


-optimize[+|-] Enables code optimalizations


-out:FNAME Specifies output
file


-pkg:P1[,Pn] References packages P1..Pn


-recurse:SPEC Recursively compiles the files in
SPEC ([dir]/file)


-reference:ASS References the specified assembly
(-r:ASS)


-target:KIND Specifies the target (KIND is
one of: exe, winexe,


library, module), (short: /t:)


-unsafe[+|-] Allows unsafe code

 -warnaserror[+|-] Treat
warnings as errors


-warn:LEVEL Sets warning level (the
highest is 4, the default is 2)


-help2
Show other help flags



Resources:

 -linkresource:FILE[,ID] Links
FILE as a resource


-resource:FILE[,ID] Embed FILE as a resource


-win32res:FILE Specifies
Win32 resource file (.res)


-win32icon:FILE Use this icon
for the output

 @file
Read response file for more options



Options can be of the form -option or
/option











From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Dustin Aleksiuk
Sent: Friday, May 20, 2005 3:50 PM
To: mono-list@lists.ximian.com
Subject: [Mono-list] asp.net
mod_mono reference question






Hello, 

I'm
sure there's an easy answer to this, but I can't find it. I'm running mod_mono
on apache, on Linux. I want to reference my own DLL in my codebehind. When the
compiler tries to compile my codebehind when the page is run, it can't find my
classes. It can find all the system classes. 

Is
there a config parameter where I can tell it which DLLs to reference?


Thanks
muchly,
Dustin 








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


[Mono-list] Weird remoting problems under Windows.

2005-05-20 Thread George Farris
I have an app that will remote and run under Linux great but when run
under Win2k it works a few times and then the entry widget no longer
shows up.  It's very simple, the client connects to the remote object
and pops up a simple window asking for a line of text.  There are two
buttons (cancel, print).  Code follows:

Like I say I can run the server under Linux forever but under windows it
goes weird and displays everything but the entry widget after working a
couple of times.

Compiled under Linux, mono 1.0.5 and gtk#-1.9.2
Windows 2000 has the mono-1.1.7 version.

Any help greatly appreciated.  




Remoting server code:
-
using Gtk;
using System;
using System.IO;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Http;

class MainClass
{
public static void Main(string[] args)
{
Console.WriteLine(Cupsacc-server running, listening on port
8080...);
ChannelServices.RegisterChannel(new HttpChannel(8080));

RemotingConfiguration.RegisterWellKnownServiceType(typeof(AccountNumber), 
control, WellKnownObjectMode.SingleCall);

Console.WriteLine(Application loop...);
Console.ReadLine();
}
}

public class AccountNumber : MarshalByRefObject 
{
public string GetAccount()
{
Application.Init ();
MyWindow w = new MyWindow ();
Application.Run ();
return (w.AccountNo);
}
}



Gtk code
--
using System;
using Gtk;

public class MyWindow : Window {

private string returnValue;
private Entry accountNo;
private Window window;

public MyWindow () : base (Enter account code)
{
window = this;

//this.SetDefaultSize (400, 300);
this.DeleteEvent += new DeleteEventHandler (OnMyWindowDelete);

/* Sets the border width of the window. */
this.BorderWidth = 10;

HBox entrybox = new HBox();
entrybox.BorderWidth = 6;
entrybox.Spacing = 6;

HBox buttonbox = new HBox();
buttonbox.BorderWidth = 6;
buttonbox.Spacing = 6;

VBox vb = new VBox();
vb.Spacing = 6;
vb.PackStart(entrybox, false, false, 0);
vb.PackStart(buttonbox, false, false, 0);
vb.Show();

this.Add(vb);

Label l = new Label(Account Number);

accountNo = new Entry();
accountNo.Activated += accountNo_cb;

Button print = new Button(Print);
/* Connect the clicked signal of the button to our callback */
print.Clicked += print_cb;

Button cancel = new Button(Cancel);
cancel.Clicked += cancel_cb;

/* Pack and show all our widgets */
entrybox.Show();
entrybox.Add(l);
entrybox.Add(accountNo);

buttonbox.Show();
buttonbox.Add(print);
buttonbox.Add(cancel);

print.Show();
cancel.Show();
this.ShowAll ();

}

public string AccountNo
{
get { return returnValue; }
}

/* Our callback functions */
private void print_cb( object obj, EventArgs args)
{
returnValue = accountNo.Text;
window.Destroy();
Application.Quit();
}

private void accountNo_cb( object obj, EventArgs args)
{
returnValue = accountNo.Text;
window.Destroy();
Application.Quit();
}

private void cancel_cb( object obj, EventArgs args)
{
returnValue = null;
window.Destroy();
Application.Quit();
}


void OnMyWindowDelete (object o, DeleteEventArgs args)
{
returnValue = null;
window.Destroy();   
Application.Quit ();
}
}


-- 
George Farris   [EMAIL PROTECTED]
Malaspina University-College


-- 
George Farris   [EMAIL PROTECTED]
Malaspina University-College



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


Re: [Mono-list] asp.net mod_mono reference question

2005-05-20 Thread Joe Audette
Hi Dustin,

If I understand your question correctly it is a
ASP.NET question, nothing mono specific.

When using code behind rather than in-line code, you
have to compile your dll yourself and put it in the
bin folder in the root of your web app.

Your page will have a reference like this:
%@ Page language=c# Codebehind=YourPage.aspx.cs
AutoEventWireup=false
Inherits=YourNamepsace.YourCodeBehindClassName %

The .cs file for the code behind does not get compiled
by the JIT like inline code done inside Script
runat=server, you have to compile YourPage.aspx.cs
into YourNamespace.dll and put it in the bin folder at
the root of your web application.

Hope that helps,

Joe



--- Dustin Aleksiuk [EMAIL PROTECTED] wrote:

 Hello,
 
 I'm sure there's an easy answer to this, but I can't
 find it. I'm running 
 mod_mono on apache, on Linux. I want to reference my
 own DLL in my 
 codebehind. When the compiler tries to compile my
 codebehind when the page 
 is run, it can't find my classes. It can find all
 the system classes.
 
 Is there a config parameter where I can tell it
 which DLLs to reference?
 
 Thanks muchly,
 Dustin
 
 
  ___
 Mono-list maillist  -  Mono-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-list
 


joe_audette [at] yahoo dotcom
http://www.joeaudette.com
http://www.mojoportal.com
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Businesses

2005-05-20 Thread Miguel de Icaza
Hello,

 If this is inappropriate, my apologizes and please do not respond but I
 watch the list and it is quite active. I just was wondering what companies
 are actually using Mono in a real world application.

Am actually quite interested in knowing this as well ;-)

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