[Mono-list] compiling mono on windows
bobjohnson11@comcast.net
bobjohnson11@comcast.net
Wed, 17 Dec 2003 15:55:11 +0000
Zoltan -
Here are the first few lines where the error begins in my error log:
mono-hash.c:39:18: glib.h: No such file or directory
In file included from ../../mono/os/gc_wrapper.h:13,
from mono-hash.c:40:
../../libgc/include/gc.h:949: warning: function declaration isn't a prototype
In file included from mono-hash.c:41:
mono-hash.h:36:18: glib.h: No such file or directory
In file included from mono-hash.c:41:
It looks like mono-hash.c can not find my glib.h. This file is located in my directory "C:\cygwin\usr\include\glib-2.0". Is this the proper place to have this library? Do I need to move it or set some kind of switch so that make can find glib.h ?
Thanks for your time.
Rob
> Send Mono-list mailing list submissions to
> mono-list@lists.ximian.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.ximian.com/mailman/listinfo/mono-list
> or, via email, send a message with subject or body 'help' to
> mono-list-request@lists.ximian.com
>
> You can reach the person managing the list at
> mono-list-admin@lists.ximian.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Mono-list digest..."
>
>
> Today's Topics:
>
> 1. Re: compiling mono on windows (Varga Zoltan)
> 2. Re: missing inssel.h No such file or directory (Varga Zoltan)
> 3. RE: missing inssel.h No such file or directory (Kenneth Benson)
> 4. How can I run a c# applet on apache webserver on Linux Machine? (Sarika
> Puri)
> 5. Dynamically loading wx widgets (Kris Luyten)
> 6. mod_mono 0.6 issues on SuSe 9.0 (Jim Erwin)
> 7. Re: mod_mono 0.6 issues on SuSe 9.0 (Gonzalo Paniagua Javier)
> 8. Mono dailys taking a break during the holidays (Duncan Mak)
> 9. Re: Mono in Hong Kong (Duncan Mak)
> 10. Re: Mono in Hong Kong (Alan Knowles)
> 11. All this talk of mono meetups makes me misty. so... (Todd Berman)
> 12. Indexer mcs compilation failure on Mono 0.29/Fedora Core 1 (Roelof Blom)
>
> --__--__--
>
> Message: 1
> Date: Tue, 16 Dec 2003 12:46:55 +0100 (CET)
> From: Varga Zoltan <vargaz@freemail.hu>
> Subject: Re: [Mono-list] compiling mono on windows
> To: bobjohnson11@comcast.net
> Cc: mono-list@lists.ximian.com
>
>
> Hi,
>
> mono should build on windows. Could you attach the last
> part of
> your build logs where the errors are ?
>
> bye
>
> Zoltan
>
> bobjohnson11@comcast.net =EDrta:
>
> >=20
> > I have two quick questions about compiling mono for
> windows. I have set up all of the supporting files to
> compile under cygwin but my compile keeps giving me error
> messages on the file mono-hash.h under "mono/utils". The
> first message I can see says:
> >=20
> > (mono-hash.h:43: warning: function declaration isn't a
> prototype)
> >=20
> > Is there any particular switch I am supposed to use when I
> run config so the code in the utils directory will compile?
> I am also interested in trying to create a windows build of
> mono.exe using Bloodshed Dev-C/C++. Which files should I
> look at to find how mono.exe is built (config or make)?
> >=20
> > Thanks for your time
> >=20
> > Rob
> > _______________________________________________
> > Mono-list maillist - Mono-list@lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-list
> >=20
> >=20
> >=20
>
>
>
>
>
> --__--__--
>
> Message: 2
> Date: Tue, 16 Dec 2003 12:49:51 +0100 (CET)
> From: Varga Zoltan <vargaz@freemail.hu>
> Subject: Re: [Mono-list] missing inssel.h No such file or directory
> To: Chris Mavin <cmavin@recital.com>
> Cc: mono-list@ximian.com
>
>
> Hi,
>
> inssel.h is created during compilation by a statement
> like this:
> ../../mono/monoburg/monoburg <...........> -d inssel.h
>
> please check you build logs to see whenever they contain such a=20
> statement. You might have stumbled across bug:
>
> http://bugzilla.ximian.com/show_bug.cgi?id=3D51693
>
> bye
>
> Zoltan
>
> Chris Mavin <cmavin@recital.com> =EDrta:
>
> > Hi, I'm attempting to install mono 0.29 from source on RH
> 9. The ./configure
> > works fine but the make fails due to some missing file. I
> have searched for
> > it on my machine and I don't have it. This inssel.h is
> supposed to be in
> > /mono/mini but it is not. Has this been accidentally left
> out of the .tar.gz
> > ? Thanks.
> > =20
> > Chris Mavin
> > Recital Corporation
> > http://www.recital.com <http://www.recital.com/>=20
> > =20
> >=20
>
>
>
>
>
> --__--__--
>
> Message: 3
> From: Kenneth Benson <sdhmis@sheratondover.com>
> To: 'Varga Zoltan' <vargaz@freemail.hu>
> Cc: mono-list@ximian.com
> Subject: RE: [Mono-list] missing inssel.h No such file or directory
> Date: Tue, 16 Dec 2003 09:20:42 -0500
>
> This message is in MIME format. Since your mail reader does not understand
> this format, some or all of this message may not be legible.
>
> ------_=_NextPart_001_01C3C3DF.C9B17740
> Content-Type: text/plain;
> charset="iso-8859-2"
> Content-Transfer-Encoding: quoted-printable
>
> I have a question...where can I find the build logs or how do I create =
> them?
>
> -----Original Message-----
> From: Varga Zoltan [mailto:vargaz@freemail.hu]
> Sent: Tuesday, December 16, 2003 6:50 AM
> To: Chris Mavin
> Cc: mono-list@ximian.com
> Subject: Re: [Mono-list] missing inssel.h No such file or directory
>
>
>
> Hi,
>
> inssel.h is created during compilation by a statement
> like this:
> ../../mono/monoburg/monoburg <...........> -d inssel.h
>
> please check you build logs to see whenever they contain such a=20
> statement. You might have stumbled across bug:
>
> http://bugzilla.ximian.com/show_bug.cgi?id=3D51693
>
> bye
>
> Zoltan
>
> Chris Mavin <cmavin@recital.com> =EDrta:
>
> > Hi, I'm attempting to install mono 0.29 from source on RH
> 9. The ./configure
> > works fine but the make fails due to some missing file. I
> have searched for
> > it on my machine and I don't have it. This inssel.h is
> supposed to be in
> > /mono/mini but it is not. Has this been accidentally left
> out of the .tar.gz
> > ? Thanks.
> > =20
> > Chris Mavin
> > Recital Corporation
> > http://www.recital.com <http://www.recital.com/>=20
> > =20
> >=20
>
>
>
>
> _______________________________________________
> Mono-list maillist - Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
> ------_=_NextPart_001_01C3C3DF.C9B17740
> Content-Type: text/html;
> charset="iso-8859-2"
> Content-Transfer-Encoding: quoted-printable
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
> <HTML>
> <HEAD>
> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
> charset=3Diso-8859-2">
> <META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
> 5.5.2653.12">
> <TITLE>RE: [Mono-list] missing inssel.h No such file or =
> directory</TITLE>
> </HEAD>
> <BODY>
>
> <P><FONT SIZE=3D2>I have a question...where can I find the build logs =
> or how do I create them?</FONT>
> </P>
>
> <P><FONT SIZE=3D2>-----Original Message-----</FONT>
> <BR><FONT SIZE=3D2>From: Varga Zoltan [<A =
> HREF=3D"mailto:vargaz@freemail.hu">mailto:vargaz@freemail.hu</A>]</FONT>=
>
> <BR><FONT SIZE=3D2>Sent: Tuesday, December 16, 2003 6:50 AM</FONT>
> <BR><FONT SIZE=3D2>To: Chris Mavin</FONT>
> <BR><FONT SIZE=3D2>Cc: mono-list@ximian.com</FONT>
> <BR><FONT SIZE=3D2>Subject: Re: [Mono-list] missing inssel.h No such =
> file or directory</FONT>
> </P>
> <BR>
> <BR>
>
> <P><FONT =
> SIZE=3D2> &nb=
> sp; &nb=
> sp; &nb=
> sp; &nb=
> sp; Hi,</FONT>
> </P>
>
> <P><FONT SIZE=3D2> inssel.h is created during compilation =
> by a statement</FONT>
> <BR><FONT SIZE=3D2>like this:</FONT>
> <BR><FONT SIZE=3D2>../../mono/monoburg/monoburg <...........> -d =
> inssel.h</FONT>
> </P>
>
> <P><FONT SIZE=3D2>please check you build logs to see whenever they =
> contain such a </FONT>
> <BR><FONT SIZE=3D2>statement. You might have stumbled across =
> bug:</FONT>
> </P>
>
> <P><FONT SIZE=3D2><A =
> HREF=3D"http://bugzilla.ximian.com/show_bug.cgi?id=3D51693" =
> TARGET=3D"_blank">http://bugzilla.ximian.com/show_bug.cgi?id=3D51693</A>=
> </FONT>
> </P>
>
> <P><FONT SIZE=3D2> bye</FONT>
> </P>
>
> <P><FONT =
> SIZE=3D2> &nb=
> sp; Zoltan</FONT>
> </P>
>
> <P><FONT SIZE=3D2>Chris Mavin <cmavin@recital.com> =EDrta:</FONT>
> </P>
>
> <P><FONT SIZE=3D2>> Hi, I'm attempting to install mono 0.29 from =
> source on RH</FONT>
> <BR><FONT SIZE=3D2>9. The ./configure</FONT>
> <BR><FONT SIZE=3D2>> works fine but the make fails due to some =
> missing file. I</FONT>
> <BR><FONT SIZE=3D2>have searched for</FONT>
> <BR><FONT SIZE=3D2>> it on my machine and I don't have it. This =
> inssel.h is</FONT>
> <BR><FONT SIZE=3D2>supposed to be in</FONT>
> <BR><FONT SIZE=3D2>> /mono/mini but it is not. Has this been =
> accidentally left</FONT>
> <BR><FONT SIZE=3D2>out of the .tar.gz</FONT>
> <BR><FONT SIZE=3D2>> ? Thanks.</FONT>
> <BR><FONT SIZE=3D2>> </FONT>
> <BR><FONT SIZE=3D2>> Chris Mavin</FONT>
> <BR><FONT SIZE=3D2>> Recital Corporation</FONT>
> <BR><FONT SIZE=3D2>> <A HREF=3D"http://www.recital.com" =
> TARGET=3D"_blank">http://www.recital.com</A> <<A =
> HREF=3D"http://www.recital.com/" =
> TARGET=3D"_blank">http://www.recital.com/</A>> </FONT>
> <BR><FONT SIZE=3D2>> </FONT>
> <BR><FONT SIZE=3D2>> </FONT>
> </P>
> <BR>
> <BR>
> <BR>
>
> <P><FONT =
> SIZE=3D2>_______________________________________________</FONT>
> <BR><FONT SIZE=3D2>Mono-list maillist - =
> Mono-list@lists.ximian.com</FONT>
> <BR><FONT SIZE=3D2><A =
> HREF=3D"http://lists.ximian.com/mailman/listinfo/mono-list" =
> TARGET=3D"_blank">http://lists.ximian.com/mailman/listinfo/mono-list</A>=
> </FONT>
> </P>
>
> </BODY>
> </HTML>
> ------_=_NextPart_001_01C3C3DF.C9B17740--
>
> --__--__--
>
> Message: 4
> From: "Sarika Puri" <sarika.puri@vertisoft.com>
> To: <mono-list@ximian.com>
> Date: Tue, 16 Dec 2003 15:05:12 -0500
> Subject: [Mono-list] How can I run a c# applet on apache webserver on Linux
> Machine?
>
> I am able to successfully run the c# applet in IIS but I am not able to do
> so on apache even though I have mono installed. On the other hand I am able
> to compile the c# scripts with no issues at all.
>
> any thoughts?
>
> Sarika Puri
> VertiSoft Corp
> (770) 640 5587 x 26
>
>
> --__--__--
>
> Message: 5
> From: Kris Luyten <kris.luyten@luc.ac.be>
> To: Mono mailing list <mono-list@lists.ximian.com>
> Date: Wed, 17 Dec 2003 00:56:20 +0100
> Subject: [Mono-list] Dynamically loading wx widgets
>
> Hi,
>
> I got some problems executing the following code:
> ======
> Gtk.Application.Init();
> Assembly wxAssembly = Assembly.Load("wx.NET.dll");
> Type wxClassType = wxAssembly.GetType("wx.Button");
> System.Object wxObject = Activator.CreateInstance(wxClassType);
> ======
> (small test file here:
> http://lumumba.luc.ac.be/kris/projects/uiml.net/test11.cs).
>
> This gives me:
> Unhandled Exception: System.Reflection.TargetInvocationException:
> Exception has been thrown by the target of an invocation. --->
> System.NullReferenceException: A null value was found where an object
> instance was required
> in (unmanaged)
> /usr/local/lib/libwx-c.so(__eq__C8wxCursorRC8wxCursor+0x9) [0x419a7bf5]
> in (unmanaged)
> /usr/local/lib/libwx-c.so(__as__8wxCursorRC8wxCursor+0x18) [0x419a7bd0]
> ....
>
> I suppose this is caused by Wx.NET.dll, because the same code for Gtk#
> works fine:
> =====
> Gtk.Application.Init();
> Assembly gtkAssembly = Assembly.Load("gtk-sharp.dll");
> Type gtkClassType = gtkAssembly.GetType("Gtk.Button");
> System.Object gtkObject = Activator.CreateInstance(gtkClassType);
> =====
>
> Anyone an idea what causes this exception?
>
> Thanks,
> Kris
> --
> Kris Luyten
> email: kris.luyten@luc.ac.be
> http://lumumba.luc.ac.be/kris/projects/uiml.net
>
>
>
> --__--__--
>
> Message: 6
> From: Jim Erwin <mono@eyekahn.com>
> Reply-To: mono@eyekahn.com
> To: Mono List <mono-list@lists.ximian.com>
> Organization: Eyekahn\VDSI
> Date: Tue, 16 Dec 2003 21:00:32 -0600
> Subject: [Mono-list] mod_mono 0.6 issues on SuSe 9.0
>
> I am running SuSe 9.0 with the most recent updated Apache 2 packages
> installed. I have downloaded, configured, and compiled the following
> tarballs:
>
> mono-0.29.tar.gz
> mcs-0.29.tar.gz
> xsp-0.8.tar.gz
> mod_mono-0.6.tar.gz
>
> I have everything configured with a prefix of /usr/local
>
> The way the configuration files for Apache are set up in SuSe 9.0 is
> rather funky. I have attempted to make modifications in the appropriate
> config files for all of the entries listed by the INSTALL file in the
> mod_mono tarball, but eventually removed them from inidividual config
> files and added them to a config file that gets placed at the end of the
> configuration for your custom entries (httpd.local.conf) and included
> this with the appropriate directives in the apache configuration.
>
>
> AddType application/x-asp-net .aspx .ashx .asmx .ascx .asax .config
> .ascx
> LoadModule mono_module /usr/lib/apache2/mod_mono.so
> MonoUnixSocket /tmp/mod_mono_server
> Alias /mono "/usr/share/doc/xsp/test"
>
> After dealing with various permissions issues in the way the default
> configuration of apache is set up on SuSe 9.0, I got to a point where I
> had everything set up correctly (according to the documentation). I
> start mod-mono-server with the following line.
>
> mono /usr/local/bin/mod-mono-server.exe --root
> /usr/local/share/doc/xsp/test --applications
> /mono:/usr/local/share/doc/xsp/test
>
> I verified that the configuration points correctly to
> /tmp/mod-mono-server for the socket. I set the permissions on that file
> to 777 after starting mod-mono-server.exe. The message from
> mod-mono-server.exe gives me the impression that it all starts and
> points to the right places. Unfortunately, if I try to pull up
> http://localhost/mono/index.aspx It prompts me to open or save the file.
> If I open, it shows me the source of the aspx file. It's as if a handler
> never gets set up for sending the requests to the socket file. I thought
> just loading the mono module
>
> The requests generate no errors in the apache error log. I just don't
> get my requests compiled and parsed as an asp.net page should be.
>
> Suggestions on how to get this to work would be appreciated.
>
> regards,
>
> --
> Jim Erwin <mono@eyekahn.com>
> Eyekahn\VDSI
>
>
> --__--__--
>
> Message: 7
> Subject: Re: [Mono-list] mod_mono 0.6 issues on SuSe 9.0
> From: Gonzalo Paniagua Javier <gonzalo@ximian.com>
> To: Mono List <mono-list@lists.ximian.com>
> Organization: Ximian Inc.
> Date: Wed, 17 Dec 2003 05:22:25 +0100
>
> El mié, 17-12-2003 a las 04:00, Jim Erwin escribió:
> > I am running SuSe 9.0 with the most recent updated Apache 2 packages
> > installed. I have downloaded, configured, and compiled the following
> > tarballs:
> >
> > mono-0.29.tar.gz
> > mcs-0.29.tar.gz
> > xsp-0.8.tar.gz
> > mod_mono-0.6.tar.gz
> >
> > I have everything configured with a prefix of /usr/local
> >
> > The way the configuration files for Apache are set up in SuSe 9.0 is
> > rather funky. I have attempted to make modifications in the appropriate
> > config files for all of the entries listed by the INSTALL file in the
> > mod_mono tarball, but eventually removed them from inidividual config
> > files and added them to a config file that gets placed at the end of the
> > configuration for your custom entries (httpd.local.conf) and included
> > this with the appropriate directives in the apache configuration.
> >
> >
> > AddType application/x-asp-net .aspx .ashx .asmx .ascx .asax .config
> > .ascx
> > LoadModule mono_module /usr/lib/apache2/mod_mono.so
> > MonoUnixSocket /tmp/mod_mono_server
> > Alias /mono "/usr/share/doc/xsp/test"
>
> That should be "/usr/local/share/doc/xsp/test" for you, right?
>
> >
> > After dealing with various permissions issues in the way the default
> > configuration of apache is set up on SuSe 9.0, I got to a point where I
> > had everything set up correctly (according to the documentation). I
> > start mod-mono-server with the following line.
> >
> > mono /usr/local/bin/mod-mono-server.exe --root
> > /usr/local/share/doc/xsp/test --applications
> > /mono:/usr/local/share/doc/xsp/test
> >
> > I verified that the configuration points correctly to
> > /tmp/mod-mono-server for the socket. I set the permissions on that file
> > to 777 after starting mod-mono-server.exe. The message from
> > mod-mono-server.exe gives me the impression that it all starts and
> > points to the right places. Unfortunately, if I try to pull up
> > http://localhost/mono/index.aspx It prompts me to open or save the file.
> > If I open, it shows me the source of the aspx file. It's as if a handler
> > never gets set up for sending the requests to the socket file. I thought
> > just loading the mono module
> >
> > The requests generate no errors in the apache error log. I just don't
> > get my requests compiled and parsed as an asp.net page should be.
> >
> > Suggestions on how to get this to work would be appreciated.
>
> Apart from that, make sure that all the directories in the path
> /usr/local/share/doc/xsp/test are +rx for the user running apache and
> all the files in there too.
>
> -Gonzalo
>
>
>
> --__--__--
>
> Message: 8
> From: Duncan Mak <duncan@ximian.com>
> To: mono-list mailing list <mono-list@lists.ximian.com>,
> mono-devel mailing list <mono-devel-list@lists.ximian.com>
> Date: Wed, 17 Dec 2003 00:55:31 -0500
> Subject: [Mono-list] Mono dailys taking a break during the holidays
>
> Hey guys,
>
> Heads up:
>
> I just finished packing up my cube and will be in Hong Kong for the next
> three weeks until early January. While my desktop is still on and
> running, it'll be turned off and moved to the new office some time in
> the next three weeks. Once that happens, mono daily snapshots will not
> be available until I'm back in Boston.
>
> Happy holidays,
>
> Duncan.
>
> --__--__--
>
> Message: 9
> Subject: Re: [Mono-list] Mono in Hong Kong
> From: Duncan Mak <duncan@ximian.com>
> To: mono-list mailing list <mono-list@lists.ximian.com>
> Cc: Alan Knowles <alan@akbkhome.com>
> Date: Wed, 17 Dec 2003 01:04:41 -0500
>
> So...
>
> On Sun, 2003-12-14 at 18:48, Duncan Mak wrote:
> > I'll be going home to Hong Kong for the Christmas vacation this
> > Wednesday and will be there until the 5th of January. If there are any
> > Mono hackers, or interested contributors with questions, please contact
> > me, because it would be great to have a Mono get-together in Hong Kong.
>
> I'm heading out to Hong Kong tomorrow and I thought I'll post an update.
>
> I got a nice reply from Derek about a possible meet-up, and I also
> talked with Hingwah on IRC briefly, so he might also be able to come. I
> see that Alan is still in Hong Kong, so he'll probably be able to join
> us, even though he hasn't been active in the Mono community lately ;-)
>
> If anyone else is interested, please contact me. Once I get to Hong
> Kong, I'll make some phone calls and we can arrange for a time and place
> to meet.
>
> Duncan.
>
> --__--__--
>
> Message: 10
> Date: Wed, 17 Dec 2003 14:39:47 +0800
> From: Alan Knowles <alan@akbkhome.com>
> To: Duncan Mak <duncan@ximian.com>
> Cc: mono-list mailing list <mono-list@lists.ximian.com>
> Subject: Re: [Mono-list] Mono in Hong Kong
>
>
> Yeap, I'm still here :).. - give us a call when you get in, I'm free
> most evenings.
>
> Regards
> Alan
>
>
> Duncan Mak wrote:
> > So...
> >
> > On Sun, 2003-12-14 at 18:48, Duncan Mak wrote:
> >
> >>I'll be going home to Hong Kong for the Christmas vacation this
> >>Wednesday and will be there until the 5th of January. If there are any
> >>Mono hackers, or interested contributors with questions, please contact
> >>me, because it would be great to have a Mono get-together in Hong Kong.
> >
> >
> > I'm heading out to Hong Kong tomorrow and I thought I'll post an update.
> >
> > I got a nice reply from Derek about a possible meet-up, and I also
> > talked with Hingwah on IRC briefly, so he might also be able to come. I
> > see that Alan is still in Hong Kong, so he'll probably be able to join
> > us, even though he hasn't been active in the Mono community lately ;-)
> >
> > If anyone else is interested, please contact me. Once I get to Hong
> > Kong, I'll make some phone calls and we can arrange for a time and place
> > to meet.
> >
> > Duncan.
> > _______________________________________________
> > Mono-list maillist - Mono-list@lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-list
>
>
> --
> Can you help out?
> Need Consulting Services or Know of a Job?
> http://www.akbkhome.com
>
>
> --__--__--
>
> Message: 11
> From: Todd Berman <tberman@gentoo.org>
> Reply-To: tberman@gentoo.org
> To: mono-list@lists.ximian.com
> Date: Wed, 17 Dec 2003 01:45:19 -0500
> Subject: [Mono-list] All this talk of mono meetups makes me misty. so...
>
> I've always known that Toronto has a fairly active .NET community, and
> I'm curious how active our Mono community might be.
>
> I have no doubt we have a couple lurkers here on the list from the area,
> and I know Tim, another mono contributor is in the area (Waterloo), so
> if you are in the general (or specific) area, lets get a reply and maybe
> we can get a group together and wax mono for a bit and snag some pizza.
>
> --Todd
>
>
> --__--__--
>
> Message: 12
> Date: Wed, 17 Dec 2003 08:51:10 +0100
> From: Roelof Blom <roelof@blombrothers.com>
> Organization: blombrothers.com
> To: mono-list@lists.ximian.com
> Subject: [Mono-list] Indexer mcs compilation failure on Mono 0.29/Fedora Core 1
>
> This is a multi-part message in MIME format.
> --------------030103010502000509050509
> Content-Type: text/plain; charset=us-ascii; format=flowed
> Content-Transfer-Encoding: 7bit
>
> Hi,
>
> In the attached file (part of the ConfigurationManagement Application
> Block supplied by Microsoft), mcs fails to compile the following indexer:
>
> ~ public string this [ string key, params object[] par ]
> ~ {
> ~ get
> ~ {
> ~ return string.Format( CultureInfo.CurrentUICulture,
> _resourceManager.GetString( key, CultureInfo.CurrentCulture ), par );
> ~ }
> ~ }
>
> It fails with this error:
> Unhandled Exception: System.NullReferenceException: A null value was
> found where an object instance was required
> in <0x00695> Mono.CSharp.Indexer:Define (Mono.CSharp.TypeContainer)
> in <0x002cc> Mono.CSharp.TypeContainer:DefineIndexers ()
> in <0x00768> Mono.CSharp.TypeContainer:DefineMembers
> (Mono.CSharp.TypeContainer)in <0x00353>
> Mono.CSharp.RootContext:PopulateTypes ()
> in <0x007cf> Mono.CSharp.Driver:MainDriver (string[])
> in <0x0001b> Mono.CSharp.Driver:Main (string[])
>
> Is this a known bug? If so, does it have a workaround?
>
> Regards,
> Roelof.
>
>
>
> --------------030103010502000509050509
> Content-Type: text/plain;
> name="Resource.cs"
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline;
> filename="Resource.cs"
>
> //
> ===============================================================================
> // Microsoft Configuration Management Application Block for .NET
> // http://msdn.microsoft.com/library/en-us/dnbda/html/cmab.asp
> //
> // Resource.cs
> //
> // Wrapper to make the use of resources easy on the code.
> //
> // For more information see the Configuration Management Application Block
> Implementation Overview.
> //
> //
> ===============================================================================
> // Copyright (C) 2000-2001 Microsoft Corporation
> // All rights reserved.
> // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
> // OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
> // LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR
> // FITNESS FOR A PARTICULAR PURPOSE.
> //
> ==============================================================================
>
> using System;
> using System.Globalization;
> using System.IO;
> using System.Resources;
> using System.Reflection;
>
> namespace Microsoft.ApplicationBlocks.ConfigurationManagement
> {
> /// <summary>
> /// Helper class used to manage application resources
> /// </summary>
> internal sealed class Resource
> {
> #region Static part
>
> private static readonly Resource _resource;
>
> // static constructor private by nature. Initialize our
> read-only member _resourceManager here,
> // there will only ever be one copy.
> static Resource()
> {
> _resource = new Resource();
> }
>
>
> // return the singleton instance of Resource
> public static Resource ResourceManager
> {
> get
> {
> return _resource;
> }
> }
>
>
> #endregion
>
> #region Instance part
>
> // this is the ACTUAL resource manager, for which this class is
> just a convenience wrapper
> private ResourceManager _resourceManager = null;
>
> // make constructor private so no one can directly create an
> instance of Resource, only use the Static Property ResourceManager
> private Resource()
> {
> _resourceManager = new ResourceManager(this.GetType().Namespace +
> ".ConfigurationManagerText", Assembly.GetExecutingAssembly());
> }
>
>
> // a convenience Indexer that access the internal resource
> manager
> public string this [ string key ]
> {
> get
> {
> return _resourceManager.GetString( key,
> CultureInfo.CurrentCulture );
> }
> }
>
>
> public string this [ string key, params object[] par ]
> {
> get
> {
> return string.Format(
> CultureInfo.CurrentUICulture, _resourceManager.GetString( key,
> CultureInfo.CurrentCulture ), par );
> }
> }
>
> public Stream GetStream( string name )
> {
> return
> Assembly.GetExecutingAssembly().GetManifestResourceStream( name );
> }
> #endregion
> }
> }
>
>
> --------------030103010502000509050509--
>
>
> --__--__--
>
> _______________________________________________
> Mono-list mailing list
> Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
> End of Mono-list Digest