[Mono-list] XSP and Mono-0.31 bug
Hi. Since I upgraded from mono-0.30 to mono-0.31 I am having some problems with XSP. I all runs fine, but when I press ENTER to quit, I get exceptions or the program crashes. Example: bash-2.05b$ run-orionsbelt Listening on port: 8080 Listening on address: 0.0.0.0 Root directory: /home/pre/Projects/orionsbelt/alnitak Hit Return to stop the server. Unhandled Exception: System.NullReferenceException: A null value was found where an object instance was required. Sometimes I get errors in the sokect Finalize call also. -- Pedro Santos www.psantos.net Si minor plus est ergo nihil sunt omnia... signature.asc Description: This is a digitally signed message part
[Mono-list] Web site
Thanks Gonzallo, I have jsut finished downloading 0.31, I was waiting for the MS Windows version, as I am developing using the VS.NET IDE and compiling with mono before copying the files to Linux. I will get it set up on my development machine tomorrow hopefully. -- Regards Tracy Barlow Phone: 07 4124 5092 Mobile: 0146 00 38 61 mail: [EMAIL PROTECTED] Website:www.tracyannesoftware.com ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Re: Npgsql doesn't work anymore
Sorry, obviously I forgot to add the diff. Jarek - Original Message - From: Jaroslaw Kowalski [EMAIL PROTECTED] To: Francisco Figueiredo Jr. [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, March 19, 2004 10:02 PM Subject: Re: [Mono-list] Re: Npgsql doesn't work anymore I've made some tests. My new diff is attached (I've added two WriteLine's, one of them never was never executed). The output is: ZZZ ServerVersion: False _serverVersion is null - Hope it helps. BTW. I've tried to add MaxPoolSize=0 to the CS but it just caused the connection to hang. Jarek - Original Message - From: Francisco Figueiredo Jr. [EMAIL PROTECTED] To: Jaroslaw Kowalski [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, March 19, 2004 9:35 PM Subject: [Mono-list] Re: Npgsql doesn't work anymore --- Jaroslaw Kowalski [EMAIL PROTECTED] escreveu: I'm using Fedora Core 1 with postgresql-server-7.3.4-11 installed from RPM and Npgsql (from Mono/CVS) doesn't work for me (while it used to work properly about one month ago). I get System.NullReferenceException : Object reference not set to an instance of an object when connecting. The problem seems to occur in NpgsqlConnection.ProcessServerVersion(). if (BackendProtocolVersion == ProtocolVersion.Version2) { and it prints _serverVersion is null. It obviously fails on _serverVersion.IndexOf() right after that. My ConnectionString is: 'Server=fw.home.lan;Initial Catalog=SoodaUnitTests;User Id=mono;Password=mono' I can provide more debug info but I don't know what exactly is needed here. Any ideas? Hi Jaroslaw. I'm checking that. In my nunit tests here I'm not getting this problem. We had this problem some time ago, but we already fixed it. But may there is some case which is still getting problems. In the Open method, near its end, and before the call to ProcessServerVersion there is a line: ServerVersion = Connector.ServerVersion; Could you check what is the value of ServerVersion when this code executes? Also, a little bit above, is where we set the Connector.ServerVersion. Could you also check what value is being set? Thanks in advance. Regards, Francisco Figueiredo Jr. __ Yahoo! Mail - O melhor e-mail do Brasil! Abra sua conta agora: http://br.yahoo.com/info/mail.html ___ 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 npgsql.diff Description: Binary data
RE: [Mono-list] Npgsql namespace problem and nohup problem
Hello If do you like work with Npgsql.dll do you copy this assembly at the directory /bin/ in your directory of work the aspx files Namespace problem: Use %@ Assembly name=Npsql % instead of %@ import namespace=Npgsql % From: http://lists.ximian.com/archives/public/mono-list/2003-May/014140.html Npgsql: At http://www.go-mono.com/postgresql.html and under bullet item Npgsql you see included with Mono. However, when I use the %@ import namespace=Npgsql % directive I get: Error message: /tmp/tmp5cb222ed.cs(25,0) : error CS0246: The namespace `Npgsql' can not be found (missing assembly reference?) (0,0) : error failed: 1 error(s), 0 warnings Do I need to install Mono Class Libraries? I haven't need that yet. Out of curiosity, why is there a separate download for extra class libraries when you get a ton with Mono Runtime? Are these additional / less critical assemblies? Nohup: I get help from this newsgroup before and I very much thank everyone who contributed. But I'm suddenly getting errors where I wasn't before. Doing this: nohup mono /usr/local/bin/mod-mono-server.exe --nonstop --root . --applications /mono:. Gives me this: nohup: appending output to `nohup.out' nohup: cannot run command `mono /usr/local/bin/mod-mono-server.exe --nonstop --root . --applications /mono:.': No such file or directory However, if I do the same w/o the like this: nohup mono /usr/local/bin/mod-mono-server.exe --nonstop --root . --applications /mono:. Then it works fine ... only I can't regain control of the terminal of course. Then only thing I might have changed is permissions on the directory where I run the command. But everyone was wrx on it. Thanks for any help. Are you guys are doing a superb job! -Abe _ All the action. All the drama. Get NCAA hoops coverage at MSN Sports by ESPN. http://msn.espn.go.com/index.html?partnersite=espn ___ 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] gdiplus
Well, I am having some troubles. I just installed mono-0.31, libgdi, wine, etc. I am just running a simple Hello World and I got this: bash-2.05b$ mono h.exe Unhandled Exception: System.EntryPointNotFoundException: GdipCreateFontFamilyFromName in 0x00053 (wrapper managed-to-native) System.Drawing.GDIPlus:GdipCreateFontFamilyFromName (string,intptr,intptr) in 0x0007c System.Drawing.FontFamily:.ctor (string,System.Drawing.Text.FontCollection) in 0x00012 System.Drawing.FontFamily:.ctor (string) in 0x00056 (wrapper remoting-invoke-with-check) System.Drawing.FontFamily:.ctor (string) in 0x0005b System.Drawing.Font:.ctor (string,single,System.Drawing.FontStyle,System.Drawing.GraphicsUnit,byte,bool) in 0x00028 System.Drawing.Font:.ctor (string,single,System.Drawing.FontStyle) in 0x00083 (wrapper remoting-invoke-with-check) System.Drawing.Font:.ctor (string,single,System.Drawing.FontStyle) in 0x00039 System.Drawing.Font:FromHfont (intptr) in 0x00018 System.Windows.Forms.Control:get_DefaultFont () in 0x00055 System.Windows.Forms.Control:get_Font () in 0x0002d System.Windows.Forms.Control:OnHandleCreated (System.EventArgs) in 0x00026 System.Windows.Forms.Form:OnHandleCreated (System.EventArgs) in 0x0025a System.Windows.Forms.Control:CreateHandle () in 0xa System.Windows.Forms.Form:CreateHandle () in 0x00033 System.Windows.Forms.Control:CreateControl () in 0x0004f (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:CreateControl () in 0x00015 System.Windows.Forms.Application:Run (System.Windows.Forms.Form) in 0x00024 Microsoft.Samples.WinForms.Cs.SimpleHelloWorld.SimpleHelloWorld:Main (string[]) Segmentation fault On Fri, 2004-03-19 at 12:24, Ravindra wrote: Hello Kevin, On Fri, 2004-03-19 at 17:22, Kevin Jones wrote: I've installed the libgdiplus RPM, I assume from your reply that this isn't enough? Actually, I meant you do not need gdiplus.dll separately. You need this dll, only if you are running mono on windows. On Linux, you just need libgdiplus library as all the calls to gdiplus.dll are passed to libgdiplus library. So, just go ahead and try it out :-) If you are facing any problems in using it, please let us know the exact error with the relevant details. Hope this helps! -Ravindra. ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list -- Pedro Santos www.psantos.net Si minor plus est ergo nihil sunt omnia... signature.asc Description: This is a digitally signed message part
Re: [Mono-list] Mac OS X and Windows.Forms
Yes, our Windows.Forms implementation relies on Wine. I believe that's the only way to run Windows .NET applications who go around the .NET API and p/Invoke a whole lot of win32 APIs. One could have a 'native' implementation but it would not run very many Windows .NET applications. I had heard of Wine efforts on MacOS though, I think. Erik On Mar 19, 2004, at 9:00 AM, Lee Malatesta wrote: Do I read the release notes for 0.31 correctly that Wine (and not just winelib) must be installed for Windows.Forms to work? If so, this would preclude from Windows.Forms working on Mac OS as Wine doesn't run on OS X, no? ___ 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] need some help abt .net
hi, first of all i would like to say that u guys are doing great work by building such a project(mono)! Keep it up!! The Next thing is that i would like to know whether we can build High Quality 3D games using mono in present or in future? My aim is to build a game which can be used on both win and linux platforms ,so building it on .net platform is the best solution. In case of win i would be using managed DirectX9 which has been newly introduced by MS. So are u even planning to introduce something like DirectX in mono so that apps build using DirectX(Managed i.e .NET compatible) can be run on mono (and in turn on linux). Or u are building 3D Graphics support in Graphics lib of mono? It would be of great help if u introduce some equivalent of DirectX in mono. Reply soon.. _ Check out MSN PC Safety Security to help ensure your PC is protected and safe. http://specials.msn.com/msn/security.asp ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Mono performance on Windows vs. Linux
I'm trying to benchmark a .NET application I wrote (IronPython) under mono. I've developed the program completely under windows xp so far. I've installed mono (0.31) on windows and my application runs on it but the performance is not as good as I had hoped for. The benchmark doesn't do any I/O or gui work and is processor and memory bound (it's the pystone benchmark program). Before I invest the time to setup my machine to dual-boot into linux, I wanted to ask for some advice. Should I expect mono to run substantially faster under linux for processor and memory bound programs? Are there any obvious tricks I should be using to get the top performance out of mono? I've tried running with -O=all but that makes no difference I can see. Thanks for your advice - Jim Hugunin - http://hugunin.net ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] monodoc-cvs mono debugger don't compile on mac os x
hello all, finally with build 0.31 i am able to make a fullbuild of mono - great work! ;] - and gtk# compiles without errors, too, though i'm getting this weird message when trying to build monodoc: Processing input file SqlTypeException.xml Processing namespace System.Xml Processing input file XmlDataDocument.xml Have 121 elements in the System.Runtime.InteropServices make[1]: *** [netdocs.tree] Bad system call make: *** [all-recursive] Error 1 if i understand it right, this means there's a problem with one of the xml files from those the documentation is built. i don't understand though that if there's problem only with one file, why can't i still run the program itself? also i have a problem with debugger: checking for a BSD-compatible install... /usr/bin/install -c checking host platform characteristics... configure: error: *** This platform is not yet supported. configure: error: /bin/sh './configure' failed for debugger does anyone have any ideas, workarounds for these issues? thanks in advance, Attila Balogh ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] monodoc-cvs mono debugger don't compile on mac os x
hello all, finally with build 0.31 i am able to make a fullbuild of mono - great work! ;] - and gtk# compiles without errors, too, though i'm getting this weird message when trying to build monodoc: Processing input file SqlTypeException.xml Processing namespace System.Xml Processing input file XmlDataDocument.xml Have 121 elements in the System.Runtime.InteropServices make[1]: *** [netdocs.tree] Bad system call make: *** [all-recursive] Error 1 if i understand it right, this means there's a problem with one of the xml files from those the documentation is built. i don't understand though that if there's problem only with one file, why can't i still run the program itself? also i have a problem with debugger: checking for a BSD-compatible install... /usr/bin/install -c checking host platform characteristics... configure: error: *** This platform is not yet supported. configure: error: /bin/sh './configure' failed for debugger does anyone have any ideas, workarounds for these issues? thanks in advance, Attila Balogh ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] encoding german umlauts
Hello folks I'm having some troubles with german umlauts (ä, ü, ö, ß) in mono-0.31. I haven't had these issues in mono-0.26, so I don't think that this is a bug, but a configuration problem. I made some sample code: using System; class Test { public static void Main() { string test = a; string uml = ä; //String.IndexOf(string) if(test.IndexOf(uml) = 0) Console.WriteLine(contains umlaut 1); //String.IndexOf(char) if(test.IndexOf(uml.ToCharArray()[0]) = 0) Console.WriteLine(contains umlaut 2); //String.Replace(string,string) Console.WriteLine(test.Replace(uml, umlaut)); //String.Replace(char,char) Console.WriteLine(test.Replace(uml.ToCharArray()[0], 'e')); } } -- the output is: -- $ ./test.exe contains umlaut 1 umlaut a -- Of course the IndexOf() Methods should always return -1 and the Replace() Methods should replace nothing. As you can see, on my computer IndexOf(char) and Replace(char,char) work, but they don't work with the string overloads. As I said I used 0.26 for a long time and there it worked I compiled from source (official release) with ICU 2.8 ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
RE: [mono] [Mono-list] XSP and Mono-0.31 bug
Compile a debug version of XSP to get a stack trace. http://www.int64.org - When 4GiB of RAM just isn't enough -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pedro Santos Sent: Saturday, March 20, 2004 1:41 AM To: [EMAIL PROTECTED] Subject: [mono] [Mono-list] XSP and Mono-0.31 bug Hi. Since I upgraded from mono-0.30 to mono-0.31 I am having some problems with XSP. I all runs fine, but when I press ENTER to quit, I get exceptions or the program crashes. Example: bash-2.05b$ run-orionsbelt Listening on port: 8080 Listening on address: 0.0.0.0 Root directory: /home/pre/Projects/orionsbelt/alnitak Hit Return to stop the server. Unhandled Exception: System.NullReferenceException: A null value was found where an object instance was required. Sometimes I get errors in the sokect Finalize call also. -- Pedro Santos www.psantos.net Si minor plus est ergo nihil sunt omnia... ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Mono performance on Windows vs. Linux
On Fri, 2004-03-19 at 18:47 -0800, Jim Hugunin wrote: I'm trying to benchmark a .NET application I wrote (IronPython) under mono. I've developed the program completely under windows xp so far. I've installed mono (0.31) on windows and my application runs on it but the performance is not as good as I had hoped for. The benchmark doesn't do any I/O or gui work and is processor and memory bound (it's the pystone benchmark program). Before I invest the time to setup my machine to dual-boot into linux, I wanted to ask for some advice. Should I expect mono to run substantially faster under linux for processor and memory bound programs? Are there any obvious tricks I should be using to get the top performance out of mono? I've tried running with -O=all but that makes no difference I can see. I don't think you can expect a huge increase for mono on linux although I am certainly not an expert on this. What might be helpful is identifying the areas it is slower, using mono --profile, then the relevent people could probably tell you and improve it. I know there is a relatively high demand for a python compiler, so it would be great to get it performing well on mono also. Also, you could use ahead of time compiling to remove the JIT cost, using: mono --aot the.exe ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Re: Npgsql doesn't work anymore
Jaroslaw Kowalski wrote: I've made some tests. My new diff is attached (I've added two WriteLine's, one of them never was never executed). Hi Jaroslaw... The AAA output should have be executed. This is the output I get with the latest cvs code... AAA ServerVersion: PostgreSQL 7.3.4 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5) True ZZZ ServerVersion: PostgreSQL 7.3.4 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5) True If you aren't seeing the AAA output, it's because the connector is already initialized, but it shouldn't!! Could you add the following lines in your test app? NpgsqlEventLog.Level = LogLevel.Debug; NpgsqlEventLog.LogName = NpgsqlTests.LogFile; This will create a file NpgsqlTests.LogFile with logging which could help track the problem. Thanks in advance. The output is: ZZZ ServerVersion: False _serverVersion is null - Hope it helps. BTW. I've tried to add MaxPoolSize=0 to the CS but it just caused the connection to hang. Yeap, it has to be at least 1 :) I will add a check for that. -- Regards, Francisco Figueiredo Jr. Membro Fundador do Projeto MonoBrasil - MonoBrasil Project Founder Member http://monobrasil.softwarelivre.org - Science without religion is lame; religion without science is blind. ~ Albert Einstein ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Mono performance on Windows vs. Linux
On Fri, 2004-03-19 at 21:47, Jim Hugunin wrote: I'm trying to benchmark a .NET application I wrote (IronPython) under mono. I've developed the program completely under windows xp so far. I've installed mono (0.31) on windows and my application runs on it but the performance is not as good as I had hoped for. The benchmark doesn't do any I/O or gui work and is processor and memory bound (it's the pystone benchmark program). Before I invest the time to setup my machine to dual-boot into linux, I wanted to ask for some advice. Should I expect mono to run substantially faster under linux for processor and memory bound programs? Are there any obvious tricks I should be using to get the top performance out of mono? I've tried running with -O=all but that makes no difference I can see. What would be most helpful is source + the benchmark source ;-). Failing that, a profile output would be helpful (mono --profile myapp.exe [args]), however, this will give someone looking at the profile much less information, as they will have to assume things they would not have to with the source code. Also, with the source it is easier to see the benefits of fixes. -- Ben ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Bad feelings on mono.
Well I announced a C#, GTK#, Mono port of Gfax for Gnome on Footnotes and it seems to have caused some bad feelings. I hope this is something that will eventually go away but at this point there seems some people who just hate Mono and the whole idea behind it. Too bad. Cheers all. -- George Farris [EMAIL PROTECTED] ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
RE: [mono] [Mono-list] Bad feelings on mono.
some people who just hate Mono Lots of ignorant C zealots or anti-microsoft people are like that. I was like that, until I tried out C# as a joke. Now I love C#, and even have an MCAD.NET cert :) http://www.int64.org - When 4GiB of RAM just isn't enough -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of George Farris Sent: Saturday, March 20, 2004 1:02 PM To: Mono list Subject: [mono] [Mono-list] Bad feelings on mono. Well I announced a C#, GTK#, Mono port of Gfax for Gnome on Footnotes and it seems to have caused some bad feelings. I hope this is something that will eventually go away but at this point there seems some people who just hate Mono and the whole idea behind it. Too bad. Cheers all. -- George Farris [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
Re: [Mono-list] Bad feelings on mono.
On Sun, 2004-03-21 at 02:32, George Farris wrote: Well I announced a C#, GTK#, Mono port of Gfax for Gnome on Footnotes and it seems to have caused some bad feelings. I hope this is something that will eventually go away but at this point there seems some people who just hate Mono and the whole idea behind it. Too bad. This seems natural. Every new technology faces resistance in the beginning. Then as it continues to deliver, people start liking and using it. Lastly it gains acceptance and the resistance dies down. Regards, Shantanu -- In a world without walls and fences, who needs windows and gates? ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list