Re: [Mono-devel-list] Arguments with spaces when starting external program through System.Diagnostics.Process
Hi Miquel R., On 5/22/05, Miquel Ramírez <[EMAIL PROTECTED]> wrote: > You must escape also the backlashes. For instance, to invoke a program like > this > $ tar -cf rock.tar This file rocks.txt > the command string in you C# program should be: > "tar -cf rock.tar This\\ file \\ rocks.txt" Thanks, that was it. I actually tried it, but the shell script file is invalid in that I use parameter $1 unescaped, so its broken down again in the shellscript, not in Mono. Sorry for blaming Mono ;-) Thanks, Sebastian ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: Spam: [Mono-devel-list] minor xslttest makefile patch
Hello, I put the test result archive in release/test-ext/xslt-standalone so update the related URL to there (we can't put that archive directory under "release"). Atsushi Eno Andrew Skiba wrote: Please, use a new patch instead of the one I sent few minutes ago. Sorry for the inconvenience. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-devel-list] monodevelop-0.7
On Mon, 2005-05-23 at 02:27 +0200, Michael Rasmussen wrote: > Hi Cory, > > søn, 22 05 2005 kl. 20:04 -0400, skrev Cory Trese: > > * C# compiler: /usr/local/bin/mcs -define:GTK_SHARP_2_6 > > > My config summary shows this: > * C# compiler: /usr/local/bin/mcs > No -define. Is that important, and if so, how to you activate that? It's not needed. That is to enable the gtk+ 2.6 apis. However, at this time we do not recommend developing applications with that. -- Ben ___ 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...
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Konstantin Triger wrote: > Hello Francisco, > Hi Konstantin! > Does the Npqsql initialize each property? i.e. if some column is not a > key, will the corresponding code succeed? > bool b = (bool)schemaTable["IsKey"]; Yeap, it initialize each property for each column in metadata. The previous code would return false. > > No, currently I don't use any additional metadata, thanks :). > Thanks for feedback. If you need some other metadata info, please let me know so that I can add it. - -- 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 iQEVAwUBQpE5mv7iFmsNzeXfAQI24gf7Bep9YbsTwe8zLtBEKAHsWHDHBJb7VM4R wOV591Z9uoO5v9nmZrVFFN25bTkTN++xxfex15SiypJQYW83HdGhFnKZ/V2Hx2iV nwz+Bh6BDu9t1hiE/oPGDni/pI3sHHDIe09y3IqHLloDxl+TeObiQrduel+vKZUD C2mWuFJt5Wu8TBA2I6FQIpzK10gxI46Hszy5cTWHw+rvt2RknndaBuCehVkKQW2B Tv9g8tULpfF9vvahfiu3RVu3mMv2kETD59KOndohMIblRYvjTaI9lPy3CT+o782w j8NvhD1igu+QcbYKuNQrCO+4+RJNqadnL1kqFAeq/SUa6iVtDX2ryw== =D6la -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] monodevelop-0.7
Hi Cory, søn, 22 05 2005 kl. 20:04 -0400, skrev Cory Trese: > * C# compiler: /usr/local/bin/mcs -define:GTK_SHARP_2_6 > My config summary shows this: * C# compiler: /usr/local/bin/mcs No -define. Is that important, and if so, how to you activate that? > Optional assemblies included in the build: > > * art-sharp.dll: yes > * gnomevfs-sharp.dll: yes > * gnome-sharp.dll: yes > * glade-sharp.dll: yes > * gda-sharp.dll: yes > * gnomedb-sharp.dll: yes > * rsvg-sharp.dll: yes > * gtkhtml-sharp.dll: yes > * vte-sharp.dll: yes > * gtk-dotnet.dll: yes > --- check > You, in particular, should check for the "gnome-sharp.dll" library. > If it is present and the MD environment still reports the same error, > check your installation prefix (/usr/local for me) and compare it to > /etc/ld.so.conf > This help some: added /usr/local/lib to /etc/ld.so.conf and run ldconfig. Now I get a splash screen but it ends with this error message: loke:/tmp/monodevelop-0.7$ monodevelop Unhandled Exception: System.DllNotFoundException: gnomesharpglue-2 in (wrapper managed-to-native) Gnome.Program:gtksharp_gnome_program_init (string,string,Gnome.ModuleInfo&,int,string[],int,Gnome.Program/PropertyArg[]) in <0x00284> Gnome.Program:.ctor (System.String app_id, System.String app_version, ModuleInfo module, System.String[] argv, System.Object[] props) in <0x004c1> MonoDevelop.SharpDevelopMain:Main (System.String[] args) loke:/tmp/monodevelop-0.7$ sudo vi /etc/ld.so.conf loke:/tmp/monodevelop-0.7$ sudo ldconfig loke:/tmp/monodevelop-0.7$ monodevelop 2005-05-23 02:25:35,534 [-1210334560] INFO MonoDevelop.Services.ILoggingService [(null)] - WARNING Could not find stock Icons.16x16.FindPrevIcon 2005-05-23 02:25:35,611 [-1210334560] INFO MonoDevelop.Services.ILoggingService [(null)] - WARNING Could not find stock gtk-stop 2005-05-23 02:25:35,685 [-1210334560] INFO MonoDevelop.Services.ILoggingService [(null)] - Creating DefaultWorkbench Loading error, please reinstall : System.NullReferenceException: Object reference not set to an instance of an object in <0x00111> Gdl.DockLayout:SetupObject (System.Xml.XmlNode node) in <0x00097> Gdl.DockLayout:RecursiveBuild (System.Xml.XmlNode parentNode, Gdl.DockObject parent) in <0x0015d> Gdl.DockLayout:Load (System.Xml.XmlNode node) in <0x0006d> Gdl.DockLayout:LoadLayout (System.String name) in <0x000b0> MonoDevelop.Gui.SdiWorkbenchLayout:set_CurrentLayout (System.String value) in <0x001ca> MonoDevelop.Gui.SdiWorkbenchLayout:SwitchContext (MonoDevelop.Gui.WorkbenchContext ctxt) in <0x00296> MonoDevelop.Gui.SdiWorkbenchLayout:CreateDefaultLayout () in <0x00640> MonoDevelop.Gui.SdiWorkbenchLayout:Attach (IWorkbench wb) in <0x00050> MonoDevelop.Gui.DefaultWorkbench:set_WorkbenchLayout (IWorkbenchLayout value) in <0x00037> MonoDevelop.Gui.WorkbenchSingleton:SetWbLayout () in <0x7> MonoDevelop.Gui.WorkbenchSingleton:CreateWorkspace () in <0x00044> MonoDevelop.Commands.InitializeWorkbenchCommand:Run () in <0x007ac> MonoDevelop.SharpDevelopMain:Main (System.String[] args) Any clues? Hilsen/Regards Michael Rasmussen Get my public GnuPG keys: michael rasmussen cc http://keyserver.veridis.com:11371/pks/lookup?op=get&search=0xD3C9A00E mir datanom net http://keyserver.veridis.com:11371/pks/lookup?op=get&search=0xE501F51C mir miras org http://keyserver.veridis.com:11371/pks/lookup?op=get&search=0xE3E80917 -- Make it clear before you make it faster. - The Elements of Programming Style (Kernighan & Plaugher) signature.asc Description: This is a digitally signed message part ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-devel-list] monodoc-1.06 and mono-1.1.7
Hi all, It seems that monodoc-1.0.6 is broken under mono-1.1.7. I get this error message trying to run it: loke:/tmp/monodoc-1.0.6$ monodoc Unhandled Exception: System.DllNotFoundException: glibsharpglue in (wrapper managed-to-native) GLib.ObjectManager:gtksharp_get_type_name (intptr) in <0x00035> GLib.ObjectManager:CreateObject (IntPtr raw) in <0x000be> GLib.Object:GetObject (IntPtr o, Boolean owned_ref) in <0xc> GLib.Object:GetObject (IntPtr o) in <0x0003f> Glade.XML:GetWidget (System.String name) in <0x00177> Glade.XML:BindFields (System.Object target, System.Type type) in <0x00019> Glade.XML:BindFields (System.Object target) in <0x00016> Glade.XML:Autoconnect (System.Object handler) in <0x0005f> Monodoc.Browser:.ctor () in <0x002e2> Monodoc.Driver:Main (System.String[] args) Any clues? Hilsen/Regards Michael Rasmussen Get my public GnuPG keys: michael rasmussen cc http://keyserver.veridis.com:11371/pks/lookup?op=get&search=0xD3C9A00E mir datanom net http://keyserver.veridis.com:11371/pks/lookup?op=get&search=0xE501F51C mir miras org http://keyserver.veridis.com:11371/pks/lookup?op=get&search=0xE3E80917 -- printk("autofs: Out of inode numbers -- what the heck did you do??n"); linux-2.0.38/fs/autofs/root.c signature.asc Description: This is a digitally signed message part ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-devel-list] monodevelop-0.7
Michael, You should see at the bottom of your "gtk-sharp" configuration a listing of all the libraries built, as below. This list depends on what GTK/Gnome libraries you have installed for the package to generate bindings to. --- Configuration summary * Installation prefix = /usr/local * C# compiler: /usr/local/bin/mcs -define:GTK_SHARP_2_6 Optional assemblies included in the build: * art-sharp.dll: yes * gnomevfs-sharp.dll: yes * gnome-sharp.dll: yes * glade-sharp.dll: yes * gda-sharp.dll: yes * gnomedb-sharp.dll: yes * rsvg-sharp.dll: yes * gtkhtml-sharp.dll: yes * vte-sharp.dll: yes * gtk-dotnet.dll: yes --- You, in particular, should check for the "gnome-sharp.dll" library. If it is present and the MD environment still reports the same error, check your installation prefix (/usr/local for me) and compare it to /etc/ld.so.conf You may also need to run 'ldconfig'. I can, however, assure you that it does work out of SVN. I have been doing it every few days for about a week now. The error your reported is one that I early in my attempts as well. - Cory Trese On 5/22/05, Michael Rasmussen <[EMAIL PROTECTED]> wrote: > Hi all, > > Anybody been able to run monodevelop-0.7 under mono-1.1.7? > > I have fetch all mono-1.1.7 from source, build and installed it. This > works. > > I have fetch all packages from monodevelop an build and deploy in the > recommended order but it still does not work. It installs and deploys > without any errors. > > When starting monodevelop I get this error message: > loke:/tmp/monodevelop-0.7/build/bin$ mono MonoDevelop.exe > > Unhandled Exception: System.DllNotFoundException: gnomesharpglue-2 > in (wrapper managed-to-native) Gnome.Program:gtksharp_gnome_program_init > (string,string,Gnome.ModuleInfo&,int,string[],int,Gnome.Program/PropertyArg[]) > in <0x00284> Gnome.Program:.ctor (System.String app_id, System.String > app_version, ModuleInfo module, System.String[] argv, System.Object[] > props) > in <0x004c1> MonoDevelop.SharpDevelopMain:Main (System.String[] args) > > I have even tried gtk#-1.0.6 instead of gtk#-1.9.5 but I get the same > error. > > OS: Debian Sid (2.6.11-1-686) > loke:/tmp/monodevelop-0.7/build/bin$ mono --version > Mono JIT compiler version 1.1.7, (C) 2002-2005 Novell, Inc and > Contributors. www.mono-project.com > TLS: __thread > GC:Included Boehm (with typed GC) > SIGSEGV : normal > Globalization: normal > > Hilsen/Regards > Michael Rasmussen > > Get my public GnuPG keys: > michael rasmussen cc > http://keyserver.veridis.com:11371/pks/lookup?op=get&search=0xD3C9A00E > mir datanom net > http://keyserver.veridis.com:11371/pks/lookup?op=get&search=0xE501F51C > mir miras org > http://keyserver.veridis.com:11371/pks/lookup?op=get&search=0xE3E80917 > -- > Q: What do you call a half-dozen Indians with Asian flu? > A: Six sick Sikhs (sic). > > > > > BodyID:12878188.2.n.logpart (stored separately) > > ___ > Mono-devel-list mailing list > Mono-devel-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-devel-list > > > ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-devel-list] monodevelop-0.7
Hi all, Anybody been able to run monodevelop-0.7 under mono-1.1.7? I have fetch all mono-1.1.7 from source, build and installed it. This works. I have fetch all packages from monodevelop an build and deploy in the recommended order but it still does not work. It installs and deploys without any errors. When starting monodevelop I get this error message: loke:/tmp/monodevelop-0.7/build/bin$ mono MonoDevelop.exe Unhandled Exception: System.DllNotFoundException: gnomesharpglue-2 in (wrapper managed-to-native) Gnome.Program:gtksharp_gnome_program_init (string,string,Gnome.ModuleInfo&,int,string[],int,Gnome.Program/PropertyArg[]) in <0x00284> Gnome.Program:.ctor (System.String app_id, System.String app_version, ModuleInfo module, System.String[] argv, System.Object[] props) in <0x004c1> MonoDevelop.SharpDevelopMain:Main (System.String[] args) I have even tried gtk#-1.0.6 instead of gtk#-1.9.5 but I get the same error. OS: Debian Sid (2.6.11-1-686) loke:/tmp/monodevelop-0.7/build/bin$ mono --version Mono JIT compiler version 1.1.7, (C) 2002-2005 Novell, Inc and Contributors. www.mono-project.com TLS: __thread GC:Included Boehm (with typed GC) SIGSEGV : normal Globalization: normal Hilsen/Regards Michael Rasmussen Get my public GnuPG keys: michael rasmussen cc http://keyserver.veridis.com:11371/pks/lookup?op=get&search=0xD3C9A00E mir datanom net http://keyserver.veridis.com:11371/pks/lookup?op=get&search=0xE501F51C mir miras org http://keyserver.veridis.com:11371/pks/lookup?op=get&search=0xE3E80917 -- Q: What do you call a half-dozen Indians with Asian flu? A: Six sick Sikhs (sic). signature.asc Description: This is a digitally signed message part ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-devel-list] [Patch] Another patch for Runtime.InteropServices in corlib
Hi, here is another patch for corlib, which hopefully fixes a lot of issues in System.Runtime.InteropServices ;) Somebody please review and commit. Andreas SystemInteropServices.diff Description: Binary data ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [E-devel] Re: [Mono-devel-list] EFL-Sharp
We've already established contact and are working together. (= We should be updating the sf.net site soon. Edje and Ecore_Evas are done. Evas is almost done. The rest of Ecore and EWL are being worked on. -- Hisham Mardam Bey MSc (Computer Science) http://hisham.cc/ +9613609386 Codito Ergo Sum (I Code Therefore I Am) ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-devel-list] Patch for generating debug info in System.Reflection.Emit
is this already in? On 5/18/05, Ben Maurer <[EMAIL PROTECTED]> wrote: > Miguel asked me to look at the memory impact of this patch. > ... > So, this is probably ok. > > -- Ben > ___ 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...
Hello Francisco, Does the Npqsql initialize each property? i.e. if some column is not a key, will the corresponding code succeed? bool b = (bool)schemaTable["IsKey"]; No, currently I don't use any additional metadata, thanks :). Regards, Konstantin Triger Francisco Figueiredo Jr. wrote: -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 ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-devel-list] Arguments with spaces when starting external program through System.Diagnostics.Process
You must escape also the backlashes. For instance, to invoke a program like this $ tar -cf rock.tar This file rocks.txt the command string in you C# program should be: "tar -cf rock.tar This\\ file \\ rocks.txt" Miguel. On 5/22/05, Sebastian Nowozin <[EMAIL PROTECTED]> wrote: > Hello everybody, > > I try to use the System.Diagnostics.Process class on Debian with Mono > 1.1.6, to execute an external program, which takes as first parameter > an absolute pathname. As I do not know anything about the pathname > except that it is a valid file, it may contain spaces. > > I use Process.StartInfo.Arguments, which is of type string, to pass > the arguments. However, I discovered that the Mono implementation of > the Process class seems to act like a shell in that it splits the > arguments on whitespaces. I tried to escape spaces using '"' and "\ > ", with no success. (The attached program illustrates the problem.) > > Hence, my question: > > Is it possible to explicitly escape the arguments, or - alternatively > - a way to explicitly set each argument vector on its own? (like > argv[1], argv[2], etc.) > > > Regards, > Sebastian Nowozin > > > ___ > 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: Spam: [Mono-devel-list] minor xslttest makefile patch
Please, use a new patch instead of the one I sent few minutes ago. Sorry for the inconvenience. Index: ChangeLog === --- ChangeLog (revision 44748) +++ ChangeLog (working copy) @@ -1,3 +1,10 @@ +2005-05-22 Andrew Skiba <[EMAIL PROTECTED]> + + * Makefile : permit to create reference results on Mono; change + comments in Makefile, so they are not printed during the + build + * xslttest.cs : forgot to write the generated results + 2005-05-19 Andrew Skiba <[EMAIL PROTECTED]> * ignore.lst : ignore 2 performance tests, as we don't time them Index: Makefile === --- Makefile(revision 44748) +++ Makefile(working copy) @@ -29,10 +29,10 @@ REFERENCE_RESULTS_URL = http://svn.myrealbox.com/source/trunk/release/$(REFERENCE_RESULTS_ARCHIVE) REFERENCE_RESULTS = $(REFERENCE_RESULTS_NAME)/timestamp -test : $(TEST_EXE) $(FIXED_CATALOG) $(REFERENCE_RESULTS) +test : $(TEST_EXE) $(FIXED_CATALOG) -run-test : $(TEST_EXE) $(FIXED_CATALOG) - # Redirect stdout to /dev/null because it has only xsl:message garbage +# Redirect stdout to /dev/null because it has only xsl:message garbage +run-test : $(TEST_EXE) $(FIXED_CATALOG) $(REFERENCE_RESULTS) $(RUNTIME) $(RUNTIME_FLAGS) $(TEST_EXE) $(TEST_FLAGS) >/dev/null clean : @@ -47,13 +47,23 @@ # Check that we are running on MS.NET - otherwise the reference output can be # created on mono - and we will compare mono with mono must-be-dotnet: +ifdef GENERATE_REFERENCE_ON_MONO + true +else uname | grep CYGWIN || uname | grep Windows +endif create-reference-output : must-be-dotnet $(TEST_EXE) + rm -rf $(REFERENCE_RESULTS_NAME) +ifdef GENERATE_REFERENCE_ON_MONO + $(RUNTIME) ./$(TEST_EXE) $(TEST_DOM) --generate +else ./$(TEST_EXE) $(TEST_DOM) --generate - cd $(REFERENCE_RESULTS_NAME); echo "$(TEST_DOM)" > generate_options # Must cd to work with any path separator +endif +# Must cd to work with any path separator symbols + cd $(REFERENCE_RESULTS_NAME); echo "$(TEST_DOM)" > generate_options tar -c $(REFERENCE_RESULTS_NAME) | gzip > $(REFERENCE_RESULTS_ARCHIVE) - echo "Now you can upload $(REFERENCE_RESULTS_ARCHIVE) to $(REFERENCE_RESULTS_URL)" + @echo "Now you can upload $(REFERENCE_RESULTS_ARCHIVE) to $(REFERENCE_RESULTS_URL)" .cs.exe : $(CSCOMPILE) $< Index: xslttest.cs === --- xslttest.cs (revision 44748) +++ xslttest.cs (working copy) @@ -279,6 +279,7 @@ if (generateOutput) { StreamWriter fw = new StreamWriter (outfile, false, Encoding.UTF8); + fw.Write (sw.ToString ()); fw.Close (); Report (TestResult.Success, testid, "Created reference result"); // ... and don't run comparison ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-devel-list] minor xslttest makefile patch
Permit to create reference results on mono, to check regressions caused by another System.Xml.dll. To protect the innocent, this is allowed only when GENERATE_REFERENCE_ON_MONO defined Index: ChangeLog === --- ChangeLog (revision 44748) +++ ChangeLog (working copy) @@ -1,3 +1,9 @@ +2005-05-22 Andrew Skiba <[EMAIL PROTECTED]> + + * Makefile : permit to create reference results on Mono; change + comments in Makefile, so they are not printed during the + build + 2005-05-19 Andrew Skiba <[EMAIL PROTECTED]> * ignore.lst : ignore 2 performance tests, as we don't time them Index: Makefile === --- Makefile(revision 44748) +++ Makefile(working copy) @@ -31,8 +31,8 @@ test : $(TEST_EXE) $(FIXED_CATALOG) $(REFERENCE_RESULTS) -run-test : $(TEST_EXE) $(FIXED_CATALOG) - # Redirect stdout to /dev/null because it has only xsl:message garbage +# Redirect stdout to /dev/null because it has only xsl:message garbage +run-test : $(TEST_EXE) $(FIXED_CATALOG) $(REFERENCE_RESULTS) $(RUNTIME) $(RUNTIME_FLAGS) $(TEST_EXE) $(TEST_FLAGS) >/dev/null clean : @@ -47,13 +47,23 @@ # Check that we are running on MS.NET - otherwise the reference output can be # created on mono - and we will compare mono with mono must-be-dotnet: +ifdef GENERATE_REFERENCE_ON_MONO + true +else uname | grep CYGWIN || uname | grep Windows +endif create-reference-output : must-be-dotnet $(TEST_EXE) + rm -rf $(REFERENCE_RESULTS_NAME) +ifdef GENERATE_REFERENCE_ON_MONO + $(RUNTIME) ./$(TEST_EXE) $(TEST_DOM) --generate +else ./$(TEST_EXE) $(TEST_DOM) --generate - cd $(REFERENCE_RESULTS_NAME); echo "$(TEST_DOM)" > generate_options # Must cd to work with any path separator +endif +# Must cd to work with any path separator symbols + cd $(REFERENCE_RESULTS_NAME); echo "$(TEST_DOM)" > generate_options tar -c $(REFERENCE_RESULTS_NAME) | gzip > $(REFERENCE_RESULTS_ARCHIVE) - echo "Now you can upload $(REFERENCE_RESULTS_ARCHIVE) to $(REFERENCE_RESULTS_URL)" + @echo "Now you can upload $(REFERENCE_RESULTS_ARCHIVE) to $(REFERENCE_RESULTS_URL)" .cs.exe : $(CSCOMPILE) $< ___ 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
Hello all, This is definitely a bug. Suresh, you are right, there should be a GetDateTimeSafe(), which was sadly missed and not found with tests because our structs are actually classes, so there was no exception. In addition, the docs say that IsDBNull should be called before a call to a get method. The attached patch provides the relevant fixes, please let me know whether it works. Regards, Konstantin Triger Sureshkumar T wrote: 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.C