Re: [Mono-list] Debugger problem

2004-04-02 Thread Marco Canini
On Thu, 2004-04-01 at 20:07 -0800, Scott Boston wrote:

 Hello - 
 
 I've run into a couple of issues with the mono debugger that I'd
 appreciate some help with.  
 
 First, to get it to make I had to configure with --disable-readline. 
 What do I lose by doing this?  How do I work around it?  I do have a
 /usr/lib/libreadline.so.
Probably you need to devel package for readline that contains
libreadline.la

 
 Second, every time I try to run the debugger, from the command line or
 from MonoDevelop, I get this error:
 ** ERROR **: i386-linux-ptrace.c:282: Can't open (/proc/26251/mem): No
 such file or directory
 aborting...
 
No idea for this one sorry


 Any ideas?
 
 Thanks much,
 Scott Boston
 
 
 ___
 Mono-list maillist  -  [EMAIL PROTECTED]
 http://lists.ximian.com/mailman/listinfo/mono-list
-- 
Marco Canini [EMAIL PROTECTED]

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


Re: [Mono-list] Mono on Debian

2004-04-01 Thread Marco Canini
IIRC packages are in debian unstable now.

Cheers

On Thu, 2004-04-01 at 17:30 +0100, Patrick Kirk wrote:

 Hi all,
 
 Does anyone have an up to date link for Mono on debian?  debianplanet 
 seems to have gone off air about a week ago.
 
 Patrick
 
 
 ___
 Mono-list maillist  -  [EMAIL PROTECTED]
 http://lists.ximian.com/mailman/listinfo/mono-list
-- 
Marco Canini [EMAIL PROTECTED]

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


Re: [Mono-list] mono-debugger graphical mode

2004-03-01 Thread Marco Canini
On Mon, 2004-03-01 at 18:07, Bart Van Rompaey wrote:
 I checked mono-debugger out of cvs and builded it. The textual mode
 works fine, but when I try to launch the graphical mode (that's what the
 mono-debug script launches, right?), I get the following error:
 
 cannot open assembly /bin/Debugger.exe
 
 and that's logical, because the build process didn't create that file.
 Do I have to add any configure parameters or is graphical mode broken at
 this moment?
I think the latter is the answer.

 Then I tried mono-debug-0.5, but that one is broken with
 Mono 0.30, as mentioned before on this group by Gustavo Ramos.
 
 Bart
-- 
Marco Canini [EMAIL PROTECTED]

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


Re: [Mono-list] Mono and Local Date Format

2004-02-21 Thread Marco Canini
On Sat, 2004-02-21 at 23:37, Tracy Barlow wrote:
 I have an application that displays dates. I have tested it on both 
 Microsoft Windows and Linux.
 
 When running on Microsoft Windows it displays the date string correctly, 
 according to the Local date format , in this case Australian Date Format 
 dd/mm/.
 
 When running it on Linux (Mandrake 9.2 set correctly for Australia 
 local) it displays the date string in US date format mm/dd/
 
 Is this a Mono issue or a Linux issue.

try to see if current locale is picked up correctly in mono

-- 
Marco Canini [EMAIL PROTECTED]

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


Re: [Mono-list] UDP and ICMP

2004-02-05 Thread Marco Canini
On Thu, 2004-02-05 at 05:41, P Oscar Boykin wrote:
 Hello All.
 
 I am using using mono to send udp packets between two hosts.  At some
 point, one host may go offline.  If I watch the network (using ethereal)
 I see the UDP packet go from A-B, and host B responds with a ICMP
 destination unreachable packet.  However, I don't see how I can get
 access to that packet in my application.
Sorry but if B goes down how do you see the ICMP packets from B?

Anyway you can make B send UDP packets to A as an acknowledge, setting a
timeout to wait for B responses in A

 
 I was hoping that SendTo or ReceiveFrom could throw exceptions, but I
 don't believe that is how they work.
 
 I also tried to make a separate socket to listen for the ICMP packets,
 but under Linux and Mono 0.30, I get an exception when I try to create
 the socket to listen for ICMP messages:
 
 Unhandled Exception: System.Net.Sockets.SocketException: Access denied
 in (unmanaged) /usr/local/lib/libmono.so.0(mono_raise_exception+0x1f)
 [0x4009176f]
 in (unmanaged) /usr/local/lib/libmono.so.0 [0x400b1d7d]
 in 0x00054 System.Net.Sockets.Socket:.ctor
 (System.Net.Sockets.AddressFamily,System.Net.Sockets.SocketType,System.Net.Sockets.ProtocolType)
 in 0x000d3 Gnucla.UdpEdgeListener:.ctor (int)
 in 0x001b0 Gnucla.EchoTest:Main (string[])
 
 Can anyone suggest a method that host A can see that host B is no longer
 listening without doing it at the application layer?  I just want the
 ICMP packet to have an effect.
 
 Thanks.
 POB
-- 
Marco Canini [EMAIL PROTECTED]

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


RE: [Mono-list] Status of WinForms?

2004-02-02 Thread Marco Canini
On Mon, 2004-02-02 at 23:25, John BouAntoun wrote:
[...]
 (gtk# is a OO wrapper of Gtk).

sorry to dissent you here but Gtk is already a OO toolkit, what Gtk#
really is it's closer to a binding to c# for Gtk plus other classes to
make Gtk APIs more consistent with .Net

-- 
Marco Canini [EMAIL PROTECTED]

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


Re: [Mono-list] GET ME OF THIS LIST

2004-01-23 Thread Marco Canini
On Fri, 2004-01-23 at 12:06, Paolo Molaro wrote:
 On 01/22/04 Chris Wertman wrote:
  I have sent now 3 messages to the list admins and one to the list itself.
 
 Then why only one of them is in the archived mono-list-admin mailbox?
 Maybe you sent the other mails to the wrong address? Your only mail
 (on Jan, 20) received a reply the same day (well, at least in my timezone)
 and your server got it:
 == server log ==
 Jan 20 17:20:33 luna postfix/smtp[10472]: 14F302EF94:
 to=[EMAIL PROTECTED], relay=64.32.145.88[64.32.145.88], delay=7,
 status=sent (250 OK, Submitted  queued (50952ecd.in))
 == server log ==
 
 In the mail you asked for instructions and I sent you the
 http://lists.ximian.com/mailman/listinfo/mono-list address where you can
 find instructions on subscribing and unsubscribing. Maybe you also need
 to read mail, not only send it, especially when you ask for information.
 Since you apparently don't read your email or can't read instructions on
 a web page, I did you a favour and unsubscribed you from the list.
 
  How do I get the F*** off this list !?!?!?!?
 
 Thank you for your precise accounting of the facts and your polite
 manners.
 
 *plonk*
 
 lupus

as we say it in italy: e quando ce vo ce vo!

-- 
Marco Canini [EMAIL PROTECTED]

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


[Mono-list] AppDomain.CreateInstanceAndUnwrap

2004-01-23 Thread Marco Canini
I've a question related to AppDomain.CreateInstanceAndUnwrap
Such method invokes Activator.CreateInstance(string, string) which
return an ObjectHandle and when unwrapped the reference to the created
object.
What I don't understand is if the newly created object lives in the
context of the AppDomain (current) from which i called
my2AppDomain.CreateInstanceAndUnwrap or the object lives inside
my2AppDomain context where my2AppDomain != current AppDomain and the
object reference returned in current AppDomain is a proxy to it.
I think it's the first by considering that Activator.CreateInstance is
called from current AppDomain but since the msdn documentation doesn't
help me too much I ask to you guys.
Any help is appreciated.

-- 
Marco Canini [EMAIL PROTECTED]

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


Re: [Mono-list] asp.net or php

2004-01-22 Thread Marco Canini
On Thu, 2004-01-22 at 07:16, Michael J. Ryan wrote:
 Matt Ryan wrote:
  Just to get everyone's opinion, how interesting would it be to make
  PHP a .NET-enabled language with Mono?
 
 not much, since IMHO, the zend engine sucks.. and C# is a much nicer language
 to work with over PHP, where the OO stuff looks like it was tacked on, and
 the modules (mysql, etc) are all global functions, etc, with pretty much no
 real structure to it...
 
 But that is just my $.02 + Inflation.

I absolutely agree with you.
The PHP language has also several limitations that don't permit to use
it as a .Net language, see if to make Python a .Net compatible language
you give 10, to make PHP a .Net compatible language you give 100.

-- 
Marco Canini [EMAIL PROTECTED]

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


Re: [Mono-list] FileSystemWatcher throws NotSupportedException on Windows

2004-01-21 Thread Marco Canini
On Wed, 2004-01-21 at 17:10, Tom Cabanski wrote:
 I am using Mono under Windows right now.
 
  
 
 Cant build from CVS so I got the latest daily and built from there
 successfully.  Now when I run the program I am porting I get
 NotSupportedException thrown when I try to construct a file system
 watcher.  Ive worked around it for the time-being by commenting out
 the FileSystemWatchers in my code.
 
  
 
 Im going to need to get the FileSystemWatcher working.  Is this in
 the middle of development somewhere or should I be looking for a bug
 in the runtime?
 
  
 
 I ask because I have seen messages bouncing around the last couple of
 days.
 
For linux it uses FAM and should be in CVS.
Gonzalo has implemented also a defaultfilesystemwatcher that uses timer,
but dunno if it already landed in cvs.
Gonzalo?

  
 
 Thanks
 
 -
 
 Tom Cabanski
 
  
 
  
-- 
Marco Canini [EMAIL PROTECTED]

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


Re: [Mono-list] System.Data.DataTable + mysql year field

2004-01-21 Thread Marco Canini
On Wed, 2004-01-21 at 19:39, felipe maya wrote:
 When the data of mysql table is filled in a DataTable, the mysql year
 field is unrecognized causing a NUL REFERENCE EXCEPTION. 
 
 I having to change the year field to unsigned smallint for a correct
 execution program. 
 
 How I put a year field in a DataTable? 
 
IIRC bytefx's mysql data provider doesn't support the year data type


-- 
Marco Canini [EMAIL PROTECTED]

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


Re: [Mono-list] FileSystemWatcher() problem ..??

2004-01-20 Thread Marco Canini
On Tue, 2004-01-20 at 19:09, Gonzalo Paniagua Javier wrote:
 El vie, 09-01-2004 a las 05:37, Kieren Drapala escribió:
  Hello,
  
  I'm a newbie to mono and I'm struggling with the use of the object
  FileSystemWatcher() on Linux version 2.4.23 (gcc version 3.3.2
  (Debian)) running mono 0.29 Mono JIT compiler version 0.29, (C) 2002,
  2003 Ximian, Inc.
  
  The code doesn't pick up on any events I have setup.
  Should I have FAM daemon installed ?
  
  Heres the code I'm trying to use, and it all compiles ok.
 
 If you have FAM and libfam installed on your system, the code should
 work now. I'm finishing a default filesystem watcher that will be used
 when fam is not available.
interesting, how will that work?

-- 
Marco Canini [EMAIL PROTECTED]

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


Re: [Mono-list] Mono - mcs:Help

2004-01-08 Thread Marco Canini
Please take a look at README or consult mono handbook at 
http://www.go-mono.com:8080/

MC

Sanira M wrote:

Hi there,
I tried downloading the mono source code from go-mono.com/downloads and 
tried  to compile the compiler.csproj that resides in the mcs folder 
using VS.NET 2003.I got an error saying Unable to open cs-parser.cs
Can i not use the mono Compiler in VS.NET ?
 
How should i generate the cs-parser.cs from cs-parser.jay?.Could some 
one tell me how to use the Jay tool.
Plea...se reply as soon as possible
Thanks in advance
Sanira

*Yahoo! India Mobile* http://in.mobile.yahoo.com*:* Ringtones, 
Wallpapers, Picture Messages and more. Download *now* 
http://in.mobile.yahoo.com.



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


Re: [Mono-list] Monodoc: Failed to load library ./libgtk-win32-2. 0-0.dll

2003-12-23 Thread Marco Canini
Goes in config file and modify the line listing libc.so
In my fs i've lic.so.6
or make a link to your libc.so.X as lib.so
MC

Tiago Lima wrote:

Yes!!! That did it !! Thanks !
Now I can see a small window of mono develop, thats nice :)
Yet this appears this with monodoc make index:

$ monodoc --make-index

** (browser.exe:8726): WARNING **: Failed to load library ./libc.so 
(libc.so): ./libc.so: cannot open shared object file: No such file or 
directory

** (browser.exe:8726): WARNING **: Failed to load library ./libc.so 
(libc.so): ./libc.so: cannot open shared object file: No such file or 
directory

Unhandled Exception: System.MissingMethodException: A missing method exception 
has occurred.
in 0x00042 (wrapper managed-to-native) Monodoc.RootTree:chmod (string,int)
in [0x00089] (at /data/builds/mono-cvs/monodoc/browser/provider.cs:1088) 
Monodoc.RootTree:MakeIndex ()
in [0x00074] (at /data/builds/mono-cvs/monodoc/browser/browser.cs:47) 
Monodoc.Driver:Main (string[])

But I think it creates the index, at least the date of the file is updated...

Thanks,
Tiago Lima
On Tuesday 23 December 2003 14:02, Marco Canini wrote:

Yeah, here too does the same joke.
I installed from cvs two days ago, and had to rename it manually.
Btw, why mono-debugger 0.5 has been released if it's broken?

MC

Gonia Eric - egonia wrote:

I had to rename my config.in to just config in /usr/etc/mono. This may be
a bug in the build system. I did a fresh install last week, and the make
install created /usr/etc/mono/config.in instead of /usr/etc/mono/config
which it seemed mono was looking for.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Tiago Lima
Sent: Monday, December 22, 2003 9:51 AM
To: mono-list mailing list
Subject: [Mono-list] Monodoc: Failed to load library
./libgtk-win32-2.0-0.dll
Hi,

I start by appologysing my last so called urgent mails... I am very sorry
about that... I learned something (thanks to Ben): We must not try to
save all the kittens at once, we should save them one by one... :) I was
trying to
save all the kittens at once... I now, I was greedy  sorry...
Secondly I would like to thank you all, Gonzalo, Miguel and all the other
developers, in helping me deploying the site using the mono platform.
Without
your effort I couldnt do it. Thanks... I wish you all a good Christmas
and a
Happy New Year.

Uf! I feel much better now :)
Ok, now for the good stuff :)
I'am having trouble running monodoc perhaps I'am forgetting something
here: I have monodoc-0.8, I compiled it with a daily (day 21), and when I
run it it
returns this:
** (browser.exe:11583): WARNING **: Failed to load
library ./libgtk-win32-2.0-0.dll
(libgtk-win32-2.0-0.dll): ./libgtk-win32-2.0-0.dll: cannot open shared
object
file: No such file or directory
** (browser.exe:11583): WARNING **: Failed to load
library ./libgtk-win32-2.0-0.dll
(libgtk-win32-2.0-0.dll): ./libgtk-win32-2.0-0.dll: cannot open shared
object
file: No such file or directory
Unhandled Exception: System.MissingMethodException: A missing method
exception
has occurred.
in 0x00042 (wrapper managed-to-native) Gtk.Application:gtk_init
(int,intptr)
in 0x0002a Gtk.Application:Init ()
in 0x00279 Monodoc.Driver:Main (string[])
I've verified and I have in /usr/etc/mono the config.ini file like this:

configuration
dllmap dll=cygwin1.dll target=@LIBC@ /
dllmap dll=libc target=@LIBC@ /
dllmap dll=libxslt.dll target=libxslt.so /
dllmap dll=libmySQL.dll target=libmysqlclient.so /
dllmap dll=odbc32.dll target=libodbc.so /
dllmap dll=libglib-2.0-0.dll target=libglib-2.0.so /
dllmap dll=libgobject-2.0-0.dll target=libgobject-2.0.so /
dllmap dll=libgthread-2.0-0.dll target=libgthread-2.0.so /
dllmap dll=libpango-1.0-0.dll target=libpango-1.0.so /
dllmap dll=libatk-1.0-0.dll target=libatk-1.0.so /
dllmap dll=libgdk-win32-2.0-0.dll target=libgdk-x11-2.0.so /
dllmap dll=libgdk_pixbuf-2.0-0.dll target=libgdk_pixbuf-2.0.so
/
dllmap dll=libgtk-win32-2.0-0.dll target=libgtk-x11-2.0.so /
dllmap dll=libgtk-win32-2.0-0.dll target=libgtk-x11-2.0.so /
dllmap dll=libglade-2.0-0.dll target=libglade-2.0.so /
dllmap dll=oci target=clntsh /
dllmap dll=gtkhtml-3.0 target=libgtkhtml-3.0.so.2 /
dllmap dll=db2cli target=libdb2_36.so/
dllmap dll=gstreamer target=libgstreamer-0.6.so /
/configuration
Is this ok?

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




**
The information contained in this communication is
confidential, is intended only for the use of the recipient
named above, and may be legally privileged.
If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination,
distribution

Re: [Mono-list] System.Data.DirectoryClient

2003-12-05 Thread Marco Canini
Parameswaran S wrote:
Hi all
We are planning to provide a SQL interface to any LDAP
directory. This will help the database clients which access directories.
Please let me know you views on this.
If i understand you correctly you want to implement a data provider for 
a ldap data source, right?
So you'll write a dbconnection, dataadapter, datareader, etc. classes 
which wrap on ldap client?
Are you also planning to use SQL as query language?

However i don't see the benefits of mapping an hierarchical structure to 
a relational one. What have you thought about that?

MC

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


[Mono-list] Exception ignored in ConfigurationData

2003-11-27 Thread Marco Canini
I ran in troubles with app config file and spent a lot of time just 
because an exception is ignored into ConfigurationData.
In file ConfigurationSettings.cs, almost at line 160, there's a generic 
catch clause followed by return false.
I don't why it's so, but IMHO the exception should not be ignored here: 
as i said i lost much time figuring out why my app config file wasn't 
loaded, and in the end i had to modify the file and recompile system.dll
So if there's no good motivation to ignore exceptions there pls remove 
the catch clause.

MC

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


Re: [Mono-list] System.Data.OleDb

2003-11-27 Thread Marco Canini
Timothy Parez wrote:

Hello,
 
I have an Access database which I access with System.Data.OleDb
but I would like to enumerate all the tables in that database
 
How can I do this ?
 
you have to call GetOleDbSchemaTable on your instance of OleDbConnection 
in this way:

DataTable dt = dbcon.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, new
object[4] {null, null, null, TABLE});
foreach(Row r in dt.Rows) {
string tableName = r[TABLE_NAME];
...
}
look at GetOleDbSchemaTable docs on msdn for more info.
btw this code won't work with mono since that method is not implemented.
MC

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


Re: [Mono-list] More image buttons

2003-11-21 Thread Marco Canini
Cool stuff.

One question: when should i place a mono compatible icon instead of 
works with?

MC

Miguel de Icaza wrote:
Hey guys,

   A collection of icons for Mono for your web page:

	Powered by, Works with, Mono Compatible:

	http://primates.ximian.com/~jimmac/Mono/

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


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


Re: [Mono-list] More image buttons

2003-11-21 Thread Marco Canini
Miguel de Icaza wrote:

Hello,


Cool stuff.

One question: when should i place a mono compatible icon instead of 
works with?


Good question!   I would leave this as a personal choice.
Well IMO compatible is a stronger concept than works with, and except 
for the words i receive a better message with the green color in 
compatible icon rather the the red used in works with.
Just my 2 cents.

MC

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


Re: [Mono-list] ProviderSectionHandler revisited

2003-10-29 Thread Marco Canini
On Thu, 2003-10-30 at 01:59, Gonzalo Paniagua Javier wrote:
 El lun, 27-10-2003 a las 10:43, Marco Canini escribió:
  Could someone review this new version of ProviderSectionHandler.cs and 
  if right commit it please.
  I need ProviderFactory to work for my job.
 
 May be someone already told you to do so, if not, go ahead and commit.
mhm, i don't have cvs access, so i would be happy if you could do it for
me
 Next time, please send a unified format diff (diff -u).
sure, but the last time i provided a -u diff miguel had problems to
apply
 
 Thanks.
 
 -Gonzalo
 
 
 ___
 Mono-list maillist  -  [EMAIL PROTECTED]
 http://lists.ximian.com/mailman/listinfo/mono-list
-- 
Marco Canini [EMAIL PROTECTED]

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


Re: [Mono-list] ProviderSectionHandler revisited

2003-10-27 Thread Marco Canini
Could someone review this new version of ProviderSectionHandler.cs and 
if right commit it please.
I need ProviderFactory to work for my job.

MC
//
// Mono.Data.ProviderSectionHandler
//
// Authors:
//   Brian Ritchie ([EMAIL PROTECTED]) 
//  
//
// Copyright (C) Brian Ritchie, 2002
// 
// Modified by Marco Canini [EMAIL PROTECTED] on 24 October 2003
// * Use XPath to select all provider node under providers to get sure it doesn't
//   throw exception when there're comments and whitespaces in providers node

using System;
using System.Xml;
using System.Configuration;

namespace Mono.Data
{
public class ProviderSectionHandler : IConfigurationSectionHandler
{
public virtual object Create(object parent,object 
configContext,XmlNode section)
{
ProviderCollection providers = new ProviderCollection ();

XmlNodeList ProviderList = section.SelectNodes (./provider);

foreach (XmlNode ProviderNode in ProviderList) {
Provider provider = new Provider (
GetStringValue (ProviderNode,name,true),
GetStringValue 
(ProviderNode,connection,true),
GetStringValue (ProviderNode,adapter,true),
GetStringValue (ProviderNode,command,true),
GetStringValue (ProviderNode,assembly,true),
GetStringValue 
(ProviderNode,description,false));
providers.Add (provider);
}
return providers;
}

private string GetStringValue(XmlNode _node, string _attribute, bool 
required)
{
XmlNode a = _node.Attributes.RemoveNamedItem (_attribute);
if (a == null) {
if (required)
throw new ConfigurationException (Attribute 
required:  + _attribute);
else
return null;
}
return a.Value; 
}
}
}


[Mono-list] ProviderSectionHandler revisited

2003-10-24 Thread Marco Canini
I attach here a modified versrion of ProviderSectionHandler that solves 
some pbs i had while trying to use mono.data.providerfactory.
A more detailed comment is included in the file header.

I don't send a patch because last time Miguel wasn't able to apply.

I modified ProviderSectionHandler.cs shipped with mcs 0.28

Please commit it to CVS and let Mono.Data.dll be built by default in 
make all.

If you've questions i'm here.

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


Re: [Mono-list] ProviderSectionHandler revisited

2003-10-24 Thread Marco Canini
Ok, here's the attachment :-)

Marco Canini wrote:

I attach here a modified versrion of ProviderSectionHandler that solves 
some pbs i had while trying to use mono.data.providerfactory.
A more detailed comment is included in the file header.

I don't send a patch because last time Miguel wasn't able to apply.

I modified ProviderSectionHandler.cs shipped with mcs 0.28

Please commit it to CVS and let Mono.Data.dll be built by default in 
make all.

If you've questions i'm here.

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

//
// Mono.Data.ProviderSectionHandler
//
// Authors:
//   Brian Ritchie ([EMAIL PROTECTED]) 
//  
//
// Copyright (C) Brian Ritchie, 2002
// 
// Modified by Marco Canini [EMAIL PROTECTED] on 24 October 2003
// * Use XPath to select all provider node under providers to get sure it doesn't
//   throw exception when there're comments and whitespaces in providers node

using System;
using System.Xml;
using System.Configuration;

namespace Mono.Data
{
public class ProviderSectionHandler : IConfigurationSectionHandler
{
public virtual object Create(object parent,object 
configContext,XmlNode section)
{
ProviderCollection providers = new ProviderCollection ();

XmlNodeList ProviderList = section.SelectNodes (./provider);

foreach (XmlNode ProviderNode in ProviderList) {
Provider provider = new Provider (
GetStringValue (ProviderNode,name,true),
GetStringValue 
(ProviderNode,connection,true),
GetStringValue (ProviderNode,adapter,true),
GetStringValue (ProviderNode,command,true),
GetStringValue (ProviderNode,assembly,true),
GetStringValue 
(ProviderNode,description,false));
providers.Add (provider);
}
return providers;
}

private string GetStringValue(XmlNode _node, string _attribute, bool 
required)
{
XmlNode a = _node.Attributes.RemoveNamedItem (_attribute);
if (a == null) {
if (required)
throw new ConfigurationException (Attribute 
required:  + _attribute);
else
return null;
}
return a.Value; 
}
}
}


RE: [Mono-list] mono provider factory

2003-10-14 Thread Marco Canini
Hello Daniel,

On Tue, 2003-10-14 at 02:06, Daniel Morgan wrote:
 If its not included in the build, and you can build it manually, just enable
 it the build.
what do you mean? should i modify the makefile in mcs/class?

 
 Brian Ritchie created the Mono.Data.ProviderFactory.
 
 If you have an application named  /abc/def/ghi/somenetapp.exe,
 then you would create a config file named /abc/def/ghi/somenetapp.exe.config
 and that is you app settings file.
yes, i understand this. but should i copypaste the settings in
app.config under mcs/class/Mono.Data into my somenetapp.exe.config?

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Marco Canini
 Sent: Monday, October 13, 2003 6:19 PM
 To: [EMAIL PROTECTED]
 Subject: [Mono-list] mono provider factory
 
 
 i would like to know the status of mono.data.providerfactory.
 first i noticed that mono.data.dll is not built with make all in mcs/class.
 second mono.data.providerfactory uses a .config file to store info about
 dataproviders and system.configuration.appsettings to load them. i was
 able to compile mono.data.dll but i don't know where to place the
 .config file in order to get providerfactory working properly.
 wouldn't it be better to use a simple xmltextreader instead of
 system.configuration.appsettings?
 
 MC
 
 ___
 Mono-list maillist  -  [EMAIL PROTECTED]
 http://lists.ximian.com/mailman/listinfo/mono-list
 
 ___
 Mono-list maillist  -  [EMAIL PROTECTED]
 http://lists.ximian.com/mailman/listinfo/mono-list
-- 
Marco Canini [EMAIL PROTECTED]

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


[Mono-list] ExpressionElement.cs patch

2003-10-06 Thread Marco Canini
This patch solves a problem in ExpressionSingleElement class when using
integer number bigger than Int32.Max or floating point number.
I've also added the support for datetime.
I've tested it with my app and now i don't get an overflow exception.

-- 
Marco Canini [EMAIL PROTECTED]
Index: ExpressionElement.cs
===
RCS file: /mono/mcs/class/System.Data/System.Data/ExpressionElement.cs,v
retrieving revision 1.4
diff -u -r1.4 ExpressionElement.cs
--- ExpressionElement.cs	4 Sep 2003 15:51:07 -	1.4
+++ ExpressionElement.cs	6 Oct 2003 23:36:31 -
@@ -1646,13 +1646,17 @@
 Element = s.Substring (1, s.Length - 2);
 _ResultType = typeof (string);
 			}
+			if (s.StartsWith (#)  s.EndsWith (#)) {
+Element = DateTime.Parse (s.Substring (1, s.Length - 2));
+_ResultType = typeof (DateTime);
+			}
 			else if (!Char.IsDigit (s [0])  s [0] != '-'  s [0] != '+') {
 Element = s;
 _ResultType = typeof (DataColumn);
 			}
 			else {
-_ResultType = typeof (int);
-Element = int.Parse (s);
+Element = Decimal.Parse (s);
+_ResultType = typeof (Decimal);
 			}
 	}
 
@@ -1768,8 +1772,8 @@
 			Type RT1 = E1.ResultType (Row);
 			Type RT2 = E2.ResultType (Row);
 
-			// If one of elements are string they both should be??? FIXME 
 			if (t1 == typeof (string) || t2 == typeof (string)) {
+// FIXME: If one of elements are string they both should be???
 
 //TempType = typeof (string);
 if (t1 != typeof (string))
@@ -1782,13 +1786,7 @@
 	value1 = ((string)value1).ToLower ();
 	value2 = ((string)value2).ToLower ();
 }
-			}
-			else if (t1 != t2) {
-
-value2 = Convert.ChangeType (value2, Type.GetTypeCode (t1));
-			}
-
-			else if (t1 != t2) {
+			} else if (t1 != t2) {
 
 value2 = Convert.ChangeType (value2, Type.GetTypeCode (t1));
 			}


Re: [Mono-list] How do you debug?

2003-07-04 Thread Marco Canini
On Fri, 2003-07-04 at 13:24, Jörg Rosenkranz wrote:
 Hi all,
 
 I have a question to all Mono developers out there:
 How do you debug your programs?
 
 I have not managed to get the Mono debugger working and
 all statements on the list regarding this subject are saying:
 It's broken in CVS.
 
 So I have to debug a fairly complex app using Console.WriteLine...
 Is there another way to search for bugs in Mono under Linux?
 
 Maybe someone can point me in the right direction ;-)
sorry, but at the moment console.writeline is the only way :((
 
 Thanks
 Joerg
 ___
 Mono-list maillist  -  [EMAIL PROTECTED]
 http://lists.ximian.com/mailman/listinfo/mono-list
-- 
Marco Canini [EMAIL PROTECTED]

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


Re: [Mono-list] How do you debug?

2003-07-04 Thread Marco Canini
On Fri, 2003-07-04 at 17:23, Ivan Hawkes wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 On Friday 04 Jul 2003 3:29 pm, Marco Canini wrote:
  On Fri, 2003-07-04 at 13:24, Jörg Rosenkranz wrote:
   Hi all,
  
   I have a question to all Mono developers out there:
   How do you debug your programs?
  
   I have not managed to get the Mono debugger working and
   all statements on the list regarding this subject are saying:
   It's broken in CVS.
  
   So I have to debug a fairly complex app using Console.WriteLine...
   Is there another way to search for bugs in Mono under Linux?
  
   Maybe someone can point me in the right direction ;-)
 
  sorry, but at the moment console.writeline is the only way :((
 
 Are there any indications of how long it will be before it is operational 
 again?

For what i know Martin, the debugger mantainer, is working hard on it,
but i don't know when it will works again.

  I am kicking off porting a largish (~20,000 lines) project to run 
 under Mono and I'm going to need a bit of debugging support ;-
 
 The project uses multiple assemblies, ADO.NET, ASP.NET, XML SqlClient, and all 
 sorts of other stuff so it will be fairly involved to get it all working. On 
 the plus side, the whole thing compiled with only 2 lines of code changed 
 (can't write to EventLog) but it doesn't run my simple test app, instead 
 complaining about type conversions:
 
  
 Unhandled Exception: System.InvalidCastException: Cannot cast from source type 
 to destination type
 in 0x0007a 00 System.Data.SqlClient.SqlDataReader:GetInt32 (int)
 in 0x00189 00 Interesource.Publish.Client.ContentList:.ctor 
 (System.Data.IDataReader,bool)
 in 0x00012 00 Interesource.Publish.Client.ContentList:.ctor 
 (System.Data.IDataReader)
 in 0x000a2 00 Interesource.Publish.Client.ContentProvider:ListContentItems 
 (Interesource.Publish.Entities.ContentTypeKey)
 in 0x0009e 00 simpletest.SimpleTest:Main (string[])
 
this could be a different type mapping between mono's SqlClient and
.net's SqlClient

Could you report the table definition (sql), the datacolumn definition,
and the code that raises the exception.

btw, with some pain you can get some dbg information my compiling with
/g and running with mono --debug

i said with some pain because the line numbers in exception backtrace
are many times wrong

 Now, this code works on both Framework 1.0 and 1.1, so I'm guessing there is a 
 little work needed on the type casting for Mono. Without a debugger it's 
 going to be a nightmare trying to get it all working, so I'm hoping that 
 debugger will be available again soon.
we all hope so
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.2.1 (GNU/Linux)
 
 iQIVAwUBPwWb8vr1e7bH1pzBAQIWXA//Rqt59/IhC4yjreRIFT8og7L+g02jZNom
 +qHfJoKGzRd1WthU9EQiccfbbn8yxeIARohouqz4ADlQvs2FBDBVi899BEu30DMo
 peCEumCCx8ljt24aLqCtAPCNF1m1YKRqmMQNAgQaS/ScVyF3VKPmYS3nGrTNa2Ty
 3n/ogCJZsfevdZHJ/5Qkn+RhpIoejxBglMeJCOqtIqw8MU67UgaeVOPAi8eIPzOI
 vrJzLHbJQg+jAalvpyDZEaWhjIHXTYbseXuPT4fqvUUuRnjW1gHNNv/XbEUCSeMN
 6OfVLWOwa3rZABhgCEu2spJ61uTEbP2YhF+NPNpqXcY8a9GwCT2p+4HFaCDtnoI2
 k9qXMiQfqIg89enVPAQH0Mva+1/MCWrW69vVYUePzVYXriOEnvdVI9YKVgG2YTvz
 bmkUe6yy0+XOQX/Ym6D41ZjgCBiynU3avzkGlGjvxb+mt7MyAJsMvS+ca3zGHBjH
 +TO/1Er2KRpzAxZCQsgtrtpuQYNLpnDPdLBah7AdGNJqDRL9FfAnP1LFqkS+CuWf
 ti0eXwTdvCDHR+96QZQj0IILEVlhYviYA7EB4nYnDp36fQ4qRM301GsPTCfS2YSW
 /Pw2bJDb4suYxWWWfGyMlqgc3Vmz7jTaLCxT41jdLl7GSL8q5H1KzqU08m/xTctK
 UnmRblxEA1U=
 =3jki
 -END PGP SIGNATURE-
 ___
 Mono-list maillist  -  [EMAIL PROTECTED]
 http://lists.ximian.com/mailman/listinfo/mono-list
-- 
Marco Canini [EMAIL PROTECTED]

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


[Mono-list] ByteFX.Data namespace

2003-07-02 Thread Marco Canini
What's the rigth ns of mysqlnet?

ByteFX.Data.MySqlClient  -- bytefx's cvs

or

ByteFX.Data.MySQLClient  -- mono's cvs

thanks
-- 
Marco Canini [EMAIL PROTECTED]

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


RE: [Mono-list] ByteFX.Data namespace

2003-07-02 Thread Marco Canini
On Wed, 2003-07-02 at 21:25, Reggie Burnett wrote:
 The case of the namespace was changed some time back to
 ByteFX.Data.MySqlClient (on user's request) to be more like existing
 providers such as SqlClient and OleDbClient.
 
Ok, but why in mono's cvs it's still MySQL?
I think we should update it asap.
 Reggie
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:mono-list-
  [EMAIL PROTECTED] On Behalf Of Marco Canini
  Sent: Wednesday, July 02, 2003 8:57 AM
  To: [EMAIL PROTECTED]
  Subject: [Mono-list] ByteFX.Data namespace
  
  What's the rigth ns of mysqlnet?
  
  ByteFX.Data.MySqlClient  -- bytefx's cvs
  
  or
  
  ByteFX.Data.MySQLClient  -- mono's cvs
  
  thanks
  --
  Marco Canini [EMAIL PROTECTED]
  
  ___
  Mono-list maillist  -  [EMAIL PROTECTED]
  http://lists.ximian.com/mailman/listinfo/mono-list
 
 ___
 Mono-list maillist  -  [EMAIL PROTECTED]
 http://lists.ximian.com/mailman/listinfo/mono-list
-- 
Marco Canini [EMAIL PROTECTED]

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


Re: [Mono-list] mono debugger

2003-07-01 Thread Marco Canini
On Tue, 2003-07-01 at 21:22, Herscovici, Avi wrote:
 I get compile errors with the latest CVS version of the debugger (I used to
 get missing binutils error, but i made soft links to the libraries with the
 version number and that seemed to fix it).  Anyone know a version of the
 debugger that compiles and runs well with the latest CVS of mono?  I tried
 updating garbage collection separately (as stated in a readme for version
 .3) but it gave me an error in configure that says that GC is included in
 mono and should not be compiled separately anymore.  Any help appreciated.
 
The mono debugger is currently broken in cvs, and you won't be able to
compile any released version of it with mono cvs.
Miguel, when we'll get a working debugger?
 -Avi
 ___
 Mono-list maillist  -  [EMAIL PROTECTED]
 http://lists.ximian.com/mailman/listinfo/mono-list
-- 
Marco Canini [EMAIL PROTECTED]

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


Re: [Mono-list] Debugger

2003-06-26 Thread Marco Canini
On Wed, 2003-06-25 at 22:51, Herscovici, Avi wrote:
 Trying to configure the debugger (version 0.21), configure says I need a
 version of binutils-dev = 2.12.  I have binutils (= 2.12) and for the life
 of me I can't find binutils-dev or binutils-devel to download online.  I am
 running Redhat 9.  I've tried compiling and installing many a versions of
 binutils and I still get the same error.  Please help.
 
If nothing has changed in the last two weeks the mono debugger is broken
in cvs and ver 0.3 won't compile with mono cvs.
 -Avi
 ___
 Mono-list maillist  -  [EMAIL PROTECTED]
 http://lists.ximian.com/mailman/listinfo/mono-list
-- 
Marco Canini [EMAIL PROTECTED]

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


Re: [Mono-list] SharpWT

2003-06-26 Thread Marco Canini
On Wed, 2003-06-25 at 23:30, amerigo5 amerigo5 wrote:
 Hello,
 
 I have been reading about the SharpWT. I think it is a promising 
 multi-platform GUI for C# (or other Mono/.Net language). I am wondering 
 about the diffence between the GTK-Sharp and SharpWT in terms of it's use? 
 What would be the advantage of using GTK-Sharp over SharpWT and vice versa? 
 Thanks in advance for any comments.
 
The advantages of sharpwt are the same as SWT: portability, speed of
execution and lookfeel consistent with your platform and not through
platform like java swing and gtk#.
 -G
 
 _
 MSN 8 with e-mail virus protection service: 2 months FREE*  
 http://join.msn.com/?page=features/virus
 
 ___
 Mono-list maillist  -  [EMAIL PROTECTED]
 http://lists.ximian.com/mailman/listinfo/mono-list
-- 
Marco Canini [EMAIL PROTECTED]

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


Re: [Mono-list] Cannot build mono cvs (README.building is wrong!:-( )

2003-06-26 Thread Marco Canini
On Thu, 2003-06-26 at 21:20, Maurizio Colucci wrote:
 Hi,
 
 I've been trying for days to build mono. Now it's time I speak :-)
 
 I am following the README.building in mcs/, as Gonzalo suggested many
 times.
 
 apt-get remove mono-assemblies
 
 cvs -z5 update mono
 cvs -z5 update mcs
 
   (now i have got the mono and mcs directories, side by side).
 
 cd mono/doc
 
 ./mono-build.sh
 
 This doesn't work. I get many error messages:
[...]
 It seems this batch expects the dlls from mcs. Which obviously aren't
 there, since README.building says I must start in the mono directory!
 
  I'm getting crazy :-)
 
 Please help
 
 
Did you bootstrap your mono install with the mono-charge package?
Before you can compile mcs you need a working mono+mcs install.
 
 ___
 Mono-list maillist  -  [EMAIL PROTECTED]
 http://lists.ximian.com/mailman/listinfo/mono-list
-- 
Marco Canini [EMAIL PROTECTED]

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


Re: [Mono-list] Cannot build mono cvs (README.building is wrong!:-( )

2003-06-26 Thread Marco Canini
On Thu, 2003-06-26 at 22:07, Maurizio Colucci wrote:
 On Thursday 26 June 2003 21:36, Marco Canini wrote:
  Did you bootstrap your mono install with the mono-charge package?
  Before you can compile mcs you need a working mono+mcs install.
 
 Thanks Marco.
 
 Obviously no, I didn't :-) , because
 
 1. README.building explicitly says to do that _after_ launching the
shell script mono-build.sh:
 
 1. Get mono and mcs from CVS (http://www.go-mono.com/download.html)
 
 2. Use the script to build mono (mono/doc/mono-build.sh).
 
 3. Copy the dlls and mcs.exe from the latest monocharge tarball
 (http://www.gnome-db.org/~gonzalo/mono/) to
 /where/you/installed/mono/lib and  /bin respectively.
 
 
 2. the above link doesn't work (I tried yesterday and today). And I
can't seem to find monocharge elsewhere.
 
 What can I do?
 
It should be here: http://www.gotmono.com/sapians/jackson
 Thanks again!
 
 Maurizio
 
 
 
 ___
 Mono-list maillist  -  [EMAIL PROTECTED]
 http://lists.ximian.com/mailman/listinfo/mono-list
-- 
Marco Canini [EMAIL PROTECTED]

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


Re: [Mono-list] mysql on xsp ?

2003-06-23 Thread Marco Canini
On Mon, 2003-06-23 at 23:57, Maurizio Colucci wrote:
 Hello,
 
Hi
 I am writing a small ASP.NET site for an exam. I am using with xsp
 from cvs.
 
 Everything so far seems to work fine... session management, asp:label,
 asp:textbox, asp:listbox.
 
 Now I just need to add some mysql query. :-)
 
 Is it possible with xsp, or must I install apache 2? :-(
Well, there's no relation between mysql, xsp, apache 2: so no you can
stay with xsp.
What you need to use is ADO.NET (http://go-mono.org/ado-net.html).
 Some quick starter/examples/pointers-to-existing-docs?
Check the page on mysqlnet provider for a brief example on how to use
ado.net to access data, then you may read something on msdn
(http://msdn.microsoft.com)

 
 Thanks!
 
 Maurizio
 
 
 
 
 
 
 ___
 Mono-list maillist  -  [EMAIL PROTECTED]
 http://lists.ximian.com/mailman/listinfo/mono-list
-- 
Marco Canini [EMAIL PROTECTED]

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


[Mono-list] About mono-debugger

2003-06-06 Thread Marco Canini
From the msgs i get in irc it seems that mono-debugger is not ready for
use, while reading the site i get the opposite impression.
What's the true?
I've a fresh mono cvs install and i can't compile version 0.3 nor cvs
version.
Is it still in development?
How do i debug a c# application? (the trivial answer Console.WriteLine()
is not admitted :-)

-- 
Marco Canini [EMAIL PROTECTED]

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


Re: [monoing] Re: [Mono-list] Mysql (ByteFX) VS Mysql (Mono)

2003-06-05 Thread Marco Canini
On Wed, 2003-06-04 at 14:44, Pablo Fischer wrote:
 Hi!
 
 El día Wednesday 04 June 2003 12:08 a Marco Canini mandó el siguiente correo:
  On Tue, 2003-06-03 at 14:05, Pablo Fischer wrote:
   Hi guys!
  
   Yesterday I was trying to connect to one of my mysql databases with the
   two forms (ByteFx and Mono.Data.MySql), the results are:
  
   a) With ByteFX I can compile it without problems, BUT when I run it (mono
   mysql.exe) I get this:
 
  From what I know this mean that your MySQL server is not configure to
  accept connection through a TCP/IP port.
 So, whats the difference between Mono and ByteFX modules for MySql?, in both I 
 use: localhost, and I have this in my database:
 
 grant all on mydatabase.* to [EMAIL PROTECTED] identified by 'mypasswd';
 
 What could be happening?
 Thanks!
The difference is that mono.data.mysql is only a binding of
libmysqlclient to c# (mono), so it uses the standard libmysqlclient
which can connect to a mysql server through standard unix socket.
That said mysqlnet is a 100% managed data provider and i guess it
supports only tcp/ip connection.
In order to use it you need to reconfigure your mysqld to allow tcp/ip
connection.
 
 
   Unhandled Exception: System.Net.Sockets.SocketException: Connection
   refused in (unmanaged) mono(mono_raise_exception+0x20) [0x80c1460]
   in (unmanaged)
   mono(ves_icall_System_Net_Sockets_Socket_Connect_internal+0x72)
   [0x80da4c6]
   in 0x0005a 00 System.Net.Sockets.Socket:Connect (System.Net.EndPoint)
   in 0x000b3 00 ByteFX.Data.MySQLClient.Driver:CreateSocketStream
   (string,int) in 0x00038 00 ByteFX.Data.MySQLClient.Driver:Open
   (string,int,string,string,bool)
   in 0x000e4 00 ByteFX.Data.MySQLClient.MySQLConnection:Open ()
   in 0x00095 00 .Test:Main (string[])
  
   b) With Mono.Data.Mysql, I can compile it without problems, when I run it
   (mono mysql2.exe) I get the data of the database (that is ok) but I also
   get this:
 
  For this i've no idea!
 Sh...t :-(, somebody knows why I get this errors with Mono? 
 
 Thanks!
 
 
   ** (mysql2.exe:2517): WARNING **: Failed to load function my_thread_end
   from libmySQL
  
   ** (mysql2.exe:2517): WARNING **: Failed to load function my_thread_end
   from libmySQL
  
   ** (mysql2.exe:2517): WARNING **: Failed to load function my_thread_init
   from libmySQL
  
   ** (mysql2.exe:2517): WARNING **: Failed to load function my_thread_init
   from libmySQL
   /*The next lines are the DB data*/
   Name: Nike 06/02/2003 00:00:00
   Name: Nike 06/02/2003 00:00:00
   Name: Nike 06/02/2003 00:00:00
   /*End of DB Data*/
   Unhandled Exception: System.MissingMethodException: A missing method
   exception has occurred.
   in 0x00046 06 Mono.Data.MySql.MySql:ThreadEnd ()
   in 0x000b5 00 Mono.Data.MySql.MySqlConnection:CloseDataSource ()
   in 0x00053 00 Mono.Data.MySql.MySqlConnection:Close ()
   in 0x0023e 00 .Test:Main (string[])
  
   However, the code of both exes are from
   http://www.go-mono.com/mysql.html, and in both Im using the same server,
   username, password and server.
  
   What could be happening?
  
   I would like to discover why Im getting this error, thats why Im asking
   to the list cause Im using a MySql DataBase for a Point of Sale (PoS).
  
   thanks!
   Pablo Fischer (MX)
 
  ___
  Mono-list maillist  -  [EMAIL PROTECTED]
  http://lists.ximian.com/mailman/listinfo/mono-list

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


RE: [Mono-list] Review of mono's ADO.NET

2003-05-28 Thread Marco Canini
On Wed, 2003-05-28 at 02:17, Francisco Figueiredo Jr. wrote:
 On Tue, 2003-05-27 at 18:03, Reggie Burnett wrote:
 
   Marco
  
   Though I haven't had a lot of time lately to update it, I have been the
   general maintainer of the MySQL provider named ByteFX.Data.  It is 
 pure C#
   and has been accepted has the replacement for the original 
 Mono.Data.MySql
   provider (which used libmysql.so)
 
 
 Hi Marco, I hope you don't mind I answer some of the questions which 
 also apply to Npgsql, a data provider for Postgresql which works on Mono 
 and also in MS runtime. Thanks Daniel Morgan and Mono Team, it was 
 accepted as one provider for Postgresql on Mono.
 
Oh really thanks!
 
 
  What're the motivations that conduced you to implement a provider in
  pure C#?
 
 The main motivation was to work with a type of programming I like most: 
 middleware software (I mean, any software piece which is not directly 
 related to user application but in its infrastructure) and the 
 opportunity to implement a protocol.
 Also, there is the dependency issues. IMHO, with the 100% managed 
 provider you don't have to worry about .so/.dll files. I mean, I looked 
 at Java model, and I think the model 4 drivers are much more flexible 
 and so, I tooked the same approach when developing Npgsql.
 
  Isn't it more difficult to mantain than the wrapper over
  libmysqlclient.so?
 
 I think that at first it could be more difficult. As you have to do all 
 the work which already exists in the .so/.dll. But once you did the base 
 code, things start to become less harder.
 
 
   Is the right man power allocated for this project?
 
 I think so. At gborg we have already some good guys helping and here at 
 Mono we got more good guys too.
 
   What kind of maturity has MySQLNEt reached?
 
 Npgsql will be short in the 0.5 version (I wil be doing a new release 
 soon). It already supports a lot of expected functionality and support 
 for most common datatypes (bool, int2, int4, int8, timestamp, text and 
 numeric). It allows you to work with datasets, the dataadapter allows 
 you to select, insert, update and delete data. you have transaction 
 support and md5 authentication. There are many bugs yet, and many 
 features missing as connection pool, support for user data types, but I 
 hope we can get it working soon. :)
 
 
 
 
 In another mail Marco asks:
 
  But what I wanna know is: is it really faster than the wrapper?
  And if yes, does the gap between them justifie the effort of mantaining
  a native provider?
 
 I didn't do this comparison. But at long time, I think it could be as 
 fast as or faster, as we would not use managed-native code calls and 
 the jit would allow us to get a performance close to native code.
 
 Thanks for attention, and please let me know if I said anything wrong.

Well, I don't see anything wrong in what you said.
In the next week i'll start to test your stuff.
Many thanks to you.

-- 
Marco Canini [EMAIL PROTECTED]

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


RE: [Mono-list] Review of mono's ADO.NET

2003-05-27 Thread Marco Canini
On Tue, 2003-05-27 at 18:03, Reggie Burnett wrote:
 Marco
 
 Though I haven't had a lot of time lately to update it, I have been the
 general maintainer of the MySQL provider named ByteFX.Data.  It is pure C#
 and has been accepted has the replacement for the original Mono.Data.MySql
 provider (which used libmysql.so)

What're the motivations that conduced you to implement a provider in
pure C#?

Isn't it more difficult to mantain than the wrapper over
libmysqlclient.so?

Is ByteFX still believing in this project?

Is the right man power allocated for this project?

What kind of maturity has MySQLNEt reached?

Thanks in advice

 Reggie
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:mono-list-
  [EMAIL PROTECTED] On Behalf Of Marco Canini
  Sent: Sunday, May 25, 2003 3:50 PM
  To: [EMAIL PROTECTED]
  Subject: [Mono-list] Review of mono's ADO.NET
  
  Hi all,
  I'm a student at computer engineering at university of genoa (italy); me
  and other 2 students are starting a review of the work that has been
  done on the implementation of ADO.NET.
  In particular we are interested in the support that mono's ADO.NET has
  for the MySQL and PostreSQL databases.
  I've already read the info on mono's site about the data providers for
  those dbs, I want to ask if Rodrigo Moya and Daniel Morgan are the right
  people for us, aren't them?
  Our job is the base for a project of porting some applications from MS
  .NET + SQL Server to the linux OS and MySQL or pgsql.
  If you have some suggestions or ideas for us I'll be happy to discuss
  with you.
  I'll stay subscribed to this list at least to the completion of my job.
  Thanks in advice.
  
  --
  Marco Canini [EMAIL PROTECTED]
  
  ___
  Mono-list maillist  -  [EMAIL PROTECTED]
  http://lists.ximian.com/mailman/listinfo/mono-list
 
 ___
 Mono-list maillist  -  [EMAIL PROTECTED]
 http://lists.ximian.com/mailman/listinfo/mono-list

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


RE: [Mono-list] Review of mono's ADO.NET

2003-05-27 Thread Marco Canini
On Tue, 2003-05-27 at 19:33, Reggie Burnett wrote:
  On Tue, 2003-05-27 at 18:03, Reggie Burnett wrote:
   Marco
  
   Though I haven't had a lot of time lately to update it, I have been the
   general maintainer of the MySQL provider named ByteFX.Data.  It is pure
  C#
   and has been accepted has the replacement for the original
  Mono.Data.MySql
   provider (which used libmysql.so)
  
  What're the motivations that conduced you to implement a provider in
  pure C#?
  
  Isn't it more difficult to mantain than the wrapper over
  libmysqlclient.so?
 
 It is more difficult to maintain than libmysqlclient.so.  Initially I did it
 because I wanted to but you should read all the email I get saying they are
 glad I developed a native provider instead of wrapping an existing one.

Well, I'm glad too for this native provider.
But what I wanna know is: is it really faster than the wrapper?
And if yes, does the gap between them justifie the effort of mantaining
a native provider?
That said i wanna you to know that i really appreciate what you are
doing, i'm just asking you these questions because i need to write a
well done review.

  
  
  Is ByteFX still believing in this project?
 
 Oh yes.  My schedule is starting to clear and I plan on releasing a 1.0 very
 soon.
 
  
  Is the right man power allocated for this project?
 
 Is all we have enough?  :-)
 
  
  What kind of maturity has MySQLNEt reached?
 
 The same maturity any project at a alpha/beta version 0.68 might have.  Not
 finished, works pretty well, still has bugs.
 
 Reggie
 
 ___
 Mono-list maillist  -  [EMAIL PROTECTED]
 http://lists.ximian.com/mailman/listinfo/mono-list
-- 
Marco Canini [EMAIL PROTECTED]

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