Re: [Mono-list] Npgsql error

2005-08-05 Thread Emil Emilov
thanx man, thats an elegant way to do it which I will use from now on :) Jaroslaw Kowalski wrote: Ok, but how does an exception fit in? You need to know if there was an error to log it or do additional stuff (like MsgBox.Show etc.). How about this: try { using (resource) { } }

Re: [Mono-list] Npgsql error

2005-08-04 Thread Emil Emilov
Check the lines: string operatingsystem = (string) reader[operatingsystem]; string nodeid = (string) reader[nodeid]; What happens of the results are NULL? You should check for NULL first. Then, are you sure that operatingsystem and nodeid are varchars or some other type that translate into

Re: [Mono-list] Npgsql error

2005-08-04 Thread Emil Emilov
Cool, a question on that: What happens if a exception occurs? I meand close() gets called at the end of the using block, but does it get also called when an exception occurs (sort of finally)? If yes, I'm changing my programming style :) Another question, how would it look like if you had to

Re: [Mono-list] Mono installer and Ubuntu AMD64

2005-08-01 Thread Emil Emilov
Hi :) You could get the tarball, compile it and install it yourself. It's not that hard. Consider this URL: http://www.mono-project.com/Compiling_Mono You will also need the ubuntu package build-essential i.e. following command: sudo apt-get install build-essential taken from Ubunutu Starter

Re: [Mono-list] Mono installer and Ubuntu AMD64

2005-08-01 Thread Emil Emilov
Oops, I must have pressed the wrong reply button ;) I meant to give Vincent a tip on how to get it working without an installer. Daniel Lopez wrote: Er... I was talking about porting the installer, not Mono :) On Mon, Aug 01, 2005 at 07:07:32PM +0200, Emil Emilov wrote: Hi :) You could get

Re: [Mono-devel-list] gtk-sharp failed to compile

2005-07-27 Thread Emil Emilov
Hi Anton, As I understand (I saw a discussion on the mono-list mailing list earlier), there is a problem trying to compile mono (and maybe gtk# for the same reason) under fedora core 4 as it uses gcc 4.0. I don't know why this is, try searching the messages from this list. Anton Andreev wrote:

Re: [Mono-devel-list] gtk-sharp failed to compile

2005-07-27 Thread Emil Emilov
If it compiled, its ok I suppose. Install it now and you should be set. Anton Andreev wrote: I removed the check for mono in the configure script and it compiled. Is it OK this way? Hi Anton, As I understand (I saw a discussion on the mono-list mailing list earlier), there is a problem

Re: [Mono-devel-list] SQLsharpgtk Makefile Bug

2005-07-27 Thread Emil Emilov
Yeah I also noticed that. I fixed the same way. I'll try and make a patch in the evening, when I get home from work. If you can do it earlier, please do. Matthias Felgner wrote: Hi, Just got and built SQLsharpgtk from SVN. The Makefile in subdir sqlsharpgtk defines “SQLSHARP_GTK_LIBS”

Re: [Mono-devel-list] SQLsharpgtk Makefile Bug

2005-07-27 Thread Emil Emilov
win (it works under linux i.e. escaping the slash) SQLSHARP_GTK_LIBS = $(GTK_SHARP_LIBS) /r:System.Data.dll /r:Mono.Data.dll /r:..\/browser\/Mono.Data.SqlSharp.DatabaseBrowser.dll Emil Emilov wrote: Yeah I also noticed that. I fixed the same way. I'll try and make a patch in the evening, when I get