Re: [Mono-list] gtk# with gtkhtml
You can install libgtkhtml from rug channels or use google to get this library. You would need to have version 3.x of this library. ~R >>> "Met @ Uber" <[EMAIL PROTECTED]> 2/1/2004 9:18:13 PM >>> How do configure gtk-sharp to install gtkhtml? ___ 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] Bug related to operator += and instance fields
Hello, Bug is filed at http://bugzilla.ximian.com/show_bug.cgi?id=54742 Thanks -Ravindra >>> "Rodolfo Campero" <[EMAIL PROTECTED]> 2/22/2004 2:51:34 AM >>> Hello everybody, I've found a bug, but I'm not sure about how to report it (I mean I can't find a suitable subject and other info): The following source code compiles but its execution results in incorrect behavior: using System; namespace Test { public class A { public static void Main () { A a = new A (); a.Test (); } public void Test () { A a = new A (); // the following is the problematic line _intValue += a.Value + a.Value / 2; Console.WriteLine (_intValue); } private int _intValue; public readonly int Value = 100; } } The actual result is 50 but I think it should be 150. I need someone to give me instructions about the affected product (Mono/Compilers or Mono/Runtime or ...) and a suitable subject if possible, or to tell me that this is not a bug and I'm plain wrong :-) If someone can file the bug report for me it's ok too. TIA, Rodolfo _ 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 ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Cannot find type `System.Windows.Forms.Form'
Hello, You need to reference System.Drawing.dll and System.Windows.Forms.dll while compiling your program, like this, $ mcs -r:System.Drawing -r:System.Windows.Forms HTH >>> npguy <[EMAIL PROTECTED]> 4/26/2004 12:12:31 PM >>> Hi, I am getting err message -- Cannot find type `System.Windows.Forms.Form' whats the possible reason. The paths are correct. -- Best regards, ___ 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] Getting started
Hello, You get it along with XD desktop. However, for installing it separately, you can have a look at http://www.ximian.com -Ravindra >>> "Abhishek Srivastava" <[EMAIL PROTECTED]> 5/5/2004 3:16:09 PM >>> Hello All, Red Carpet seems to be the favorite mode of installing mono. However I have two questions 1. Will it work on Mandrake / Red Hat? (If not, is there an equivalent of redcarpet on these flavors). 2. Is it free? Regards, Abhishek. -Original Message- From: Jonathan Pryor [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 6:21 PM To: abhishek srivastava Cc: [EMAIL PROTECTED] Subject: Re: [Mono-list] Getting started On Tue, 2004-05-04 at 05:45, abhishek srivastava wrote: > I have downloaded all the rpms. Is there any document giving me the > steps of installing mono? Generally, the recommendation is to use Ximian Red Carpet, but manual RPM installation is fairly straightforward. > Sorry if this repeated question annoys you. Please give me the steps > of installation. I have dowloaded the rpms > > cairo-0.1.17-0.ximian.6.1.i386.rpm > mod_mono-0.7-0.ximian.6.0.i386.rpm > cairo-devel-0.1.17-0.ximian.6.1.i386.rpm mono-0.31-1.ximian.6.0.i386.rpm > gtk-sharp-0.17-0.ximian.6.0.i386.rpm > mono-devel-0.31-1.ximian.6.0.i386.rpm > gtk-sharp-gapi-0.17-0.ximian.6.0.i386.rpm > monodoc-0.11-0.ximian.6.0.i386.rpm > icu-2.6.1-1.ximian.6.3.i386.rpm > perl-XML-LibXML-1.54-1.ximian.6.1.i386.rpm > libgdiplus-0.2-0.ximian.6.0.i386.rpm > perl-XML-LibXML-Common-0.13-1.ximian.6.1.i386.rpm > libgdiplus-devel-0.2-0.ximian.6.0.i386.rpm > perl-XML-NamespaceSupport-1.08-1.ximian.6.1.i386.rpm > libicu26-2.6.1-1.ximian.6.3.i386.rpm > perl-XML-NodeFilter-0.01-1.ximian.6.1.i386.rpm > libicu-devel-2.6.1-1.ximian.6.3.i386.rpm > perl-XML-SAX-0.12-1.ximian.6.1.i386.rpm > libpixman-0.1.0-1.ximian.6.2.i386.rpm xsp-0.9-0.ximian.6.0.i386.rpm > libpixman-devel-0.1.0-1.ximian.6.2.i386.rpm The short answer is that you don't worry about the install order. Let RPM worry about that. :-) In principal, you should be able to do this: $ rpm -ivh *.rpm In practice, you might not be able to, as you might be missing required packages. For example, when I did this with the beta 1 take-3 packages, RPM gave me errors for gtk-sharp-gapi, as I was missing a bunch of perl-XML-* packages (which I see you have, but I didn't). I wasn't interested in installing all those packages, which brings us to an alternative setup: # Get an editable list of all the RPMs $ ls -1 *.rpm > rpms.txt # edit rpms.txt to include only the RPMs that are easily # installable $ rpm -ivh `cat rpms.txt` The backtick (`) operator, not to be confused with a normal single quote (it's the key to the left of `1'), executes the command within the backticks, and substitutes the command's standard output in-place. This allows us to easily trim down the set of packages to install, so that you minimize the extra packages you require. Some of the required packages aren't part of mono. For example, glib2-devel may be required for some of the packages. You'll have to manually install such external dependencies. If the RPMs you downloaded are for you distribution, that should be it. Edit "rpms.txt" to include the packages you want, use `rpm -i', and you're done. If the RPMs aren't for your distribution, it may be impossible or you may need to do more work. (For example, I installed the Red Hat 9 RPMs on Fedora Core 2 Test 2, and they weren't a complete match.) `rpm --nodeps' can be your friend. (FC2T2 has a "gtkhtml3" package installed, but gtk-sharp wanted "gtkhtml3.0", even though they appear to be the same. I just installed gtk-sharp with --nodeps to permit installation.) - Jon ___ 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] err:module:import_dll Library mscoree.dll
Hello, That is not the right way to run an exe with mono. You need to do, $ mono or $ mono gtk.exe, in your case. - Ravindra >>> npguy <[EMAIL PROTECTED]> 6/29/2004 7:49:17 PM >>> sorry if this is already asked. i did check google no luck. i am using latest rc, and unzip mono-all.zip and rpm'ed all pacakges. although i compiled gtk.cs successfully but the during execution i got the `err:module:import_dll Library mscoree.dll ` .. [EMAIL PROTECTED] Mono.NET]$ mcs gtk.cs -r:gtk-sharp -r:System.Drawing -lib:/usr/lib/mono/gac/gtk-sharp/1.0.0.0__35e10195dab3c99f/ Compilation succeeded [EMAIL PROTECTED] Mono.NET]$ ./gtk.exe file_set_error: No such device or address err:module:import_dll Library mscoree.dll (which is needed by L"F:\\stuff\\Mono.NET\\gtk.exe") not found err:module:LdrInitializeThunk Main exe initialization for L"F:\\stuff\\Mono.NET\\gtk.exe" failed, status c135 [EMAIL PROTECTED] Mono.NET]$ PGDATA2=/home/postgres/data [EMAIL PROTECTED] Mono.NET]$ export PGDATA2 ___ 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] err:module:import_dll Library mscoree.dll
Hello, I haven't tried it myself, but I have seen some people talking about it. Please search through mono-list archives for 'binfmt' or something else. You might also want to look for Linux docs about binfmt. -Ravindra >>> npguy <[EMAIL PROTECTED]> 6/30/2004 9:16:47 AM >>> hi ravinda, thanks. can we make it a standalone binary. a native binary! thanks On Wednesday 30 June 2004 09:09 am, Ravindra Kumar wrote: > Hello, > That is not the right way to run an exe with mono. You need to do, > >$ mono or >$ mono gtk.exe, in your case. > > - Ravindra > > >>> npguy <[EMAIL PROTECTED]> 6/29/2004 7:49:17 PM >>> > > sorry if this is already asked. i did check google no luck. > > i am using latest rc, and unzip mono-all.zip and rpm'ed all > pacakges. > > although i compiled gtk.cs successfully but the during execution i got > the > `err:module:import_dll Library mscoree.dll ` .. > > [EMAIL PROTECTED] Mono.NET]$ mcs gtk.cs -r:gtk-sharp -r:System.Drawing > > -lib:/usr/lib/mono/gac/gtk-sharp/1.0.0.0__35e10195dab3c99f/ > Compilation succeeded > > [EMAIL PROTECTED] Mono.NET]$ ./gtk.exe > > file_set_error: No such device or address > err:module:import_dll Library mscoree.dll (which is needed by > L"F:\\stuff\\Mono.NET\\gtk.exe") not found > err:module:LdrInitializeThunk Main exe initialization for > L"F:\\stuff\\Mono.NET\\gtk.exe" failed, status c135 > [EMAIL PROTECTED] Mono.NET]$ PGDATA2=/home/postgres/data > [EMAIL PROTECTED] Mono.NET]$ export PGDATA2 > ___ > 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: RE : [Mono-list] How to create a simple graphic application with Mono
Hello, I think there is some packaging problem. Either you file a bug in bugzilla for the packages or you can build libpixman yourself. Pixman sources can be obtained from cairo cvs, http://www.cairographics.org . -Ravindra >>> "Yann Garcia" <[EMAIL PROTECTED]> 7/8/2004 9:16:14 PM >>> Hi, Thank you for your help. I have another problem: I try to install cairo-0.1.23 package (from mono.zip for RedHat 9 Intel). It failed on dependencies: [EMAIL PROTECTED] mono]# rpm -i cairo-0.1.23-2.ximian.6.1.i386.rpm error: Failed dependencies: libpixman >= 0.1.1 is needed by cairo-0.1.23-2.ximian.6.1 I do not find libpixman v0.1.1 on RPM search web site for redhat. The latest version I found is libpixman-0.1.0-1.ximian.6.2 Anyone knows where to find a version of libpixman >= 0.1.1 Thanks for your help, Cheers Yann -Message d'origine- De : Pedro Villaviencio [mailto:[EMAIL PROTECTED] Envoyé : mercredi 7 juillet 2004 15:56 À : [EMAIL PROTECTED] Objet : Re: [Mono-list] How to create a simple graphic application withMono On Tue, 2004-07-06 at 12:22, Yann Garcia wrote: > Hello, > > > > I'm novice in the project Mono. I already make running small > applications in 'console' mode. > > Now, I hope to create a 'Hello Word' GUI application (a form with a > label and a button for instance)? I don't understand how to do this. > with mono is really easy do that. > It seams I have to use GTK#, Wine*, but I don't know how to use them. > so i can send you a little example a 'hello world' > > > Thank you for your help, > > > no problema. > Cheers, > > > > Yann > > > > ___ 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: RE : RE : [Mono-list] How to create a simple graphic application with Mono
Hello, Please try $mcs -pkg:gtk-sharp.dll, instead of mcs -r:gtk-sharp.dll. -Ravindra >>> "Yann Garcia" <[EMAIL PROTECTED]> 7/9/2004 5:30:16 PM >>> Hi Thanks, now it's ok. - I add these paths /usr/lib/mono/gtk-sharp:/usr/lib/mono/gecko-sharp in LD_LIBRARY_PATH when I try to build the mono.cs sample sent by Pedro Villaviencio (mcs -r:gtk-sharp.dll HelloWordUI.cs -o ../bin/HelloWordUI.exe) I have this error: [EMAIL PROTECTED] src]$ mcs -r:gtk-sharp.dll HelloWordUI.cs -o ../bin/HelloWordUI.exe error CS0006: Cannot find assembly `gtk-sharp.dll' Log: Compilation failed: 1 error(s), 0 warnings I found an email that explain to set the variable MONO_PATH to /usr/lib/mono/gtk-sharp:/usr/lib/mono/gecko-sharp but it doesn't solve my problem. The installed gtk package is: gtk-sharp-1.0-1.ximian.6.0 Thanks for your help, Cheers, Yann -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ravindra Kumar Sent: Friday, July 09, 2004 7:06 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: RE : [Mono-list] How to create a simple graphicapplication with Mono Hello, I think there is some packaging problem. Either you file a bug in bugzilla for the packages or you can build libpixman yourself. Pixman sources can be obtained from cairo cvs, http://www.cairographics.org . -Ravindra >>> "Yann Garcia" <[EMAIL PROTECTED]> 7/8/2004 9:16:14 PM >>> Hi, Thank you for your help. I have another problem: I try to install cairo-0.1.23 package (from mono.zip for RedHat 9 Intel). It failed on dependencies: [EMAIL PROTECTED] mono]# rpm -i cairo-0.1.23-2.ximian.6.1.i386.rpm error: Failed dependencies: libpixman >= 0.1.1 is needed by cairo-0.1.23-2.ximian.6.1 I do not find libpixman v0.1.1 on RPM search web site for redhat. The latest version I found is libpixman-0.1.0-1.ximian.6.2 Anyone knows where to find a version of libpixman >= 0.1.1 Thanks for your help, Cheers Yann -Message d'origine- De : Pedro Villaviencio [mailto:[EMAIL PROTECTED] Envoyé : mercredi 7 juillet 2004 15:56 À : [EMAIL PROTECTED] Objet : Re: [Mono-list] How to create a simple graphic application withMono On Tue, 2004-07-06 at 12:22, Yann Garcia wrote: > Hello, > > > > I'm novice in the project Mono. I already make running small > applications in 'console' mode. > > Now, I hope to create a 'Hello Word' GUI application (a form with a > label and a button for instance)? I don't understand how to do this. > with mono is really easy do that. > It seams I have to use GTK#, Wine*, but I don't know how to use them. > so i can send you a little example a 'hello world' > > > Thank you for your help, > > > no problema. > Cheers, > > > > Yann > > > > ___ 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 ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] NUnit
Hello, You can get some good documentation about Nunit from http://www.nunit.org. For Mono port of Nunit, see 'cvs/mcs/nunit20' directory. -Ravi >>> Ales Vojacek <[EMAIL PROTECTED]> 7/13/2004 3:06:01 AM >>> Hi, I have working Mono on Fedora Core2, now. I want to try develop some small project and I want to try using NUnit Framework. Is there some totorial how to do that? When I try to find nunit-console tool, there is no file like that. Thanks Ales ___ 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] mono debugger
Hello, I'm not sure it has got integrated with MonoDevelop (MD) or not, but MD guys have planned that. You can get debugger from cvs. Module name is 'debugger'. Once you install it, you can use 'mdb' command to run it. -Ravi >>> <[EMAIL PROTECTED]> 7/14/2004 2:48:39 PM >>> Hello, I've installed the latest mono1.0 & monodevelop on redhat 9.0. What about mono debugger ? I don't seem to have it, or have I not enabled it ? Is it integrated with mono develop. If not, could you guide me on how I can get a latest version of monodebugger, to get going with my applications ? ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Which namespace to use?
Hi Eric and Jon, We have a good enough support for JPG and PNG files. Our implementation supports BMP, JPEG, PNG, GIF and TIFF formats. Except BMP format, you would need to install libjpeg, libpng, libungif and libtiff to save/load images of these formats. All you have to do is create an image from (.bmp, or .jpg, or .png or .gif or .tif) to modify existing image or create a new Bitmap object with dimensions, if you want to create a new image. See the Bitmap and Image classes under System.Drawing namespace. When you save a Bitmap, you can specify the format to use e.g. ImageFormat.Jpeg for JPEG. ImageFormat class lies under System.Drawing.Imaging namespace. Also, you might find the following URL useful (url might have been wrapped), http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpcondrawingeditingimages.asp -Ravi >>> Jonathan Pryor <[EMAIL PROTECTED]> 09/28/04 4:22 PM >>> On Tue, 2004-09-28 at 01:01, Eric Damron wrote: > Which namespace should I look at that would have methods to allow me to > draw and then create either a JPG or PNG file from the drawing? System.Drawing and it's related namespaces (System.Drawing.Imaging, System.Drawing.Printing, etc.) are what you're looking for. That's the good news. The bad news is that Mono's implementation of these namespaces is incomplete (last I knew, anyway). It is being worked on, so hopefully this won't be an impediment to your using it. - Jon ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] EntryPointNotFoundException: map_Mono_Posix_PollEvents
Hey, Installing from today's cvs should not have this problem. But even then, can you try update and install mcs/class/Mono.Posix and /mono/support ? -Ravi >>> Shaun Jackman <[EMAIL PROTECTED]> 10/02/04 3:15 AM >>> What is the cause of this exception? I am using mono and mcs from today's CVS (2004-10-01). Please cc me in your reply. Thanks, Shaun $ mono --debug FocusRemote.exe #region #line XplatUI Constructor called Menu.Menu False Menu.Menu False Unhandled Exception: System.EntryPointNotFoundException: map_Mono_Posix_PollEvents in <0x00050> (wrapper managed-to-native) Mono.Posix.Syscall:map_Mono_Posix_PollEvents (Mono.Posix.PollEvents) in <0x0008e> Mono.Posix.Syscall:poll (Mono.Posix.pollfd[],int,int) in <0x00176> System.Windows.Forms.XplatUIX11:UpdateMessageQueue () in <0x0009e> System.Windows.Forms.XplatUIX11:GetMessage (System.Windows.Forms.MSG&,intptr,int,int) in <0x0001f> System.Windows.Forms.XplatUI:GetMessage (System.Windows.Forms.MSG&,intptr,int,int) in <0x000da> System.Windows.Forms.Application:Run () in <0x0009c> System.Windows.Forms.Application:Run (System.Windows.Forms.ApplicationContext) in <0x00036> System.Windows.Forms.Application:Run (System.Windows.Forms.Form) in <0x00023> FocusRemote.FocusRemote:Main () $ mono --version Mono JIT compiler version 1.1.1, (C) 2002-2004 Novell, Inc and Contributors. www.go-mono.com TLS: __thread GC:Included Boehm (with typed GC) SIGSEGV : normal Globalization: none ___ 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] EntryPointNotFoundException: map_Mono_Posix_PollEvents
Hi Shaun, Ans [1]: It looks like you are using the old implementation. If you use the new one, I think it will get solved. Ans [2]: You just need to do 'make clean' inside the new MWF directory. and then try 'make' and 'make install'. -Ravi >>> Shaun Jackman <[EMAIL PROTECTED]> 10/08/04 2:19 AM >>> To be safe, I've removed all versions of Mono. I then installed mono 1.0.1 from Debian to bootstrap. I did make clean, cvs up, autogen.sh, make bootstrap, make install. I then removed mono 1.0.1. Now, my application compiles fine, but it gives exceptions when I try to run it [1]. While I was investigating, I tried to recompile Managed.Windows.Forms. It fails because it cannot find AccessibleEvents.cs [2]. Do you have any pointers? Thanks again, Shaun [1] $ mono FocusRemote.exe Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.Control ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.Win32 ---> System.NullReferenceException: Object reference not set to an instance of an object in <0x748ed9> (wrapper managed-to-native) System.Windows.Forms.Win32:WineLoadLibrary (string) in <0x4> (wrapper managed-to-native) System.Windows.Forms.Win32:WineLoadLibrary (string) in <0x00390> System.Windows.Forms.Win32:.cctor () --- End of inner exception stack trace --- in (unmanaged) System.Windows.Forms.Control:.cctor () in <0x000f1> System.Windows.Forms.Control:.cctor () --- End of inner exception stack trace --- in (unmanaged) System.Windows.Forms.ScrollableControl:.ctor () in <0x00011> System.Windows.Forms.ScrollableControl:.ctor () in <0xa> System.Windows.Forms.ContainerControl:.ctor () in <0x00016> System.Windows.Forms.Form:.ctor () in <0x00083> FocusRemote.FocusRemote:.ctor () in <0x0004a> (wrapper remoting-invoke-with-check) FocusRemote.FocusRemote:.ctor () in <0x0001a> FocusRemote.FocusRemote:Main () [2] mcs/class/Managed.Windows.Forms$ make make all-local make[1]: Entering directory `/home/sjackman/src/mono/mcs/class/Managed.Windows.Forms' make[1]: *** No rule to make target `System.Windows.Forms/AccessibleEvents.cs', needed by `../../class/lib/default/System.Windows.Forms.dll'. Stop. make[1]: Leaving directory `/home/sjackman/src/mono/mcs/class/Managed.Windows.Forms' make: *** [all.real] Error 2 > The problem with this specific issue (which is coming up in a cpl > places) is that people cvs up Managed-WinForms, or all of mcs, but leave > the mono stuff alone. When there is an addition (like this one) that > requires updating both, they get issues. > > It seems like anyone using cvs should be somehow *forced* to do make > bootstrap in mono/ and by default it should be more difficult (require > an option) to even build in the root mcs/ dir. > > That would cut down on a lot of these inane questions. > > --Todd ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] EntryPointNotFoundException: map_Mono_Posix_PollEvents
Hi Shaun, Sorry to disappoint you, it is not done yet. But, we have plans to do it soon. Regards, - Ravi >>> Shaun Jackman <[EMAIL PROTECTED]> 10/08/04 8:27 PM >>> Thanks Ravi! A make clean was in fact all it needed. Does Managed.Windows.Forms have a ComboBox? Cheers, Shaun On Thu, 07 Oct 2004 21:29:11 -0600, Ravindra Kumar <[EMAIL PROTECTED]> wrote: > Hi Shaun, > > Ans [1]: It looks like you are using the old implementation. If you use > the > new one, I think it will get solved. > Ans [2]: You just need to do 'make clean' inside the new MWF > directory. > and then try 'make' and 'make install'. > > -Ravi > > >>> Shaun Jackman <[EMAIL PROTECTED]> 10/08/04 2:19 AM >>> > > > To be safe, I've removed all versions of Mono. I then installed mono > 1.0.1 from Debian to bootstrap. I did make clean, cvs up, autogen.sh, > make bootstrap, make install. I then removed mono 1.0.1. Now, my > application compiles fine, but it gives exceptions when I try to run > it [1]. > While I was investigating, I tried to recompile Managed.Windows.Forms. > It fails because it cannot find AccessibleEvents.cs [2]. Do you have > any pointers? > > Thanks again, > Shaun > > [1] > $ mono FocusRemote.exe > Unhandled Exception: System.TypeInitializationException: An exception > was thrown by the type initializer for System.Windows.Forms.Control > ---> System.TypeInitializationException: An exception was thrown by > the type initializer for System.Windows.Forms.Win32 ---> > System.NullReferenceException: Object reference not set to an instance > of an object > in <0x748ed9> (wrapper managed-to-native) > System.Windows.Forms.Win32:WineLoadLibrary (string) > in <0x4> (wrapper managed-to-native) > System.Windows.Forms.Win32:WineLoadLibrary (string) > in <0x00390> System.Windows.Forms.Win32:.cctor () > --- End of inner exception stack trace --- > > in (unmanaged) System.Windows.Forms.Control:.cctor () > in <0x000f1> System.Windows.Forms.Control:.cctor () > --- End of inner exception stack trace --- > > in (unmanaged) System.Windows.Forms.ScrollableControl:.ctor () > in <0x00011> System.Windows.Forms.ScrollableControl:.ctor () > in <0xa> System.Windows.Forms.ContainerControl:.ctor () > in <0x00016> System.Windows.Forms.Form:.ctor () > in <0x00083> FocusRemote.FocusRemote:.ctor () > in <0x0004a> (wrapper remoting-invoke-with-check) > FocusRemote.FocusRemote:.ctor () > in <0x0001a> FocusRemote.FocusRemote:Main () > > [2] > mcs/class/Managed.Windows.Forms$ make > make all-local > make[1]: Entering directory > `/home/sjackman/src/mono/mcs/class/Managed.Windows.Forms' > make[1]: *** No rule to make target > `System.Windows.Forms/AccessibleEvents.cs', needed by > `../../class/lib/default/System.Windows.Forms.dll'. Stop. > make[1]: Leaving directory > `/home/sjackman/src/mono/mcs/class/Managed.Windows.Forms' > make: *** [all.real] Error 2 > > > The problem with this specific issue (which is coming up in a cpl > > places) is that people cvs up Managed-WinForms, or all of mcs, but > leave > > the mono stuff alone. When there is an addition (like this one) that > > requires updating both, they get issues. > > > > It seems like anyone using cvs should be somehow *forced* to do make > > bootstrap in mono/ and by default it should be more difficult > (require > > an option) to even build in the root mcs/ dir. > > > > That would cut down on a lot of these inane questions. > > > > --Todd > ___ 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] System.Drawing.Bitmap.GetThumbnail()
Hi, Yes, it's implemented in cvs HEAD as well as Mono 1.0. Please let us know, if you are facing any problems. -Ravi >>> Sijmen Mulder <[EMAIL PROTECTED]> 10/29/04 4:08 PM >>> Hi there, Is it true that System.Drawing.Bitmap.GetThumbnail isn't implemented yet? If so, is there a specific reason? -- 'May the Lord bless you and protect you. May the Lord smile on you and be gracious to you. May the Lord show you his favor and give you his peace.' 'De Heer zegent je, en Hij bewaart je. De Heer kijkt met liefde naar je, en Hij is je genadig. De Heer bedenkt het goede voor je, en geeft je vrede.' Sijmen Mulder ___ 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] System.Drawing.Bitmap.GetThumbnail()
Dude, Nothing weird, Bitmap is a subclass of Image and this is implemented in Image class. Please have a look at MSDN (URL might be wrapped), http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemDrawingImageClassGetThumbnailImageTopic.asp -Ravi >>> Sijmen Mulder <[EMAIL PROTECTED]> 10/29/04 4:57 PM >>> > Yes, it's implemented in cvs HEAD as well as Mono 1.0. > Please let us know, if you are facing any problems. That's weird. I used the online CVS browser and went to mcs/class/System.Drawing/System.Drawing/Bitmap.cs (iirc), and there was no such method. Have I been doing something wrong? -- 'May the Lord bless you and protect you. May the Lord smile on you and be gracious to you. May the Lord show you his favor and give you his peace.' 'De Heer zegent je, en Hij bewaart je. De Heer kijkt met liefde naar je, en Hij is je genadig. De Heer bedenkt het goede voor je, en geeft je vrede.' Sijmen Mulder ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Looking for a library
Hi Joshua, Would you mind telling us what problems did you face with System.Drawing ? Regards, Ravi >>> Joshua Brickel <[EMAIL PROTECTED]> 11/17/04 2:13 AM >>> Hi, I've seen from a number of posts that people are using a library specifically designed for MySql with mono. Could somebody point me in the direction of where I can find this library? I have tried to compile the sources from the mysql.com website but apparently some of the required attributes have not yet been implimented in mono (problem was in System.Drawing). For completenes sake, I am using a Debian system with mono at 1.0.4. Regards, Joshua II II AquaNet promises to take care and help its' customers stay safe II This Mail was Scanned By AquaNet's Anti-Virus Server And was Found OK! II http://www.aquanet.co.il II ___ 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] in search of a complete project as a demo
Hi, How about www.nunit.org ? Nunit is a tool for unit testing C# code. It has a GUI. You can use our test dlls to play with it ;-) - Ravi >>> hanasaki <[EMAIL PROTECTED]> 11/16/04 8:35 PM >>> Anyone know where a complete C# .net mono app can be downloaded? This would serve as a demo and learning tool. thanks ___ 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] GDI+ problems on 1.0.4
Hello, This code works fine with our SVN HEAD. Is there any specific reason for you to use libgdiplus and System.Drawing from 1.0.4 release ? As far as stability is concerned, I think our System.Drawing stack is more stable in HEAD, because it gets tested everyday with our new SWF implementation. If you don't mind, please update your libgdiplus and System.Drawing from HEAD. Thanks, Ravi >>> Dilton McGowan II <[EMAIL PROTECTED]> 11/23/04 4:46 AM >>> This code works on 1.0.2 when installed with the RPM collection in mono-all.zip. In 1.0.4, I'm trying to figure out what I'm to build from source and what I'm to install via RPM. Bitmap b = new Bitmap(400, 400); Graphics g = null; Font fnt = null; try { g = Graphics.FromImage(b); } catch(Exception e) { sw.WriteLine("A1: " + e.Message); } try { //This seems to be the problem line, moving //it to the above try block causes an exception there. //I've tried two fonts that are on the system and //this code works on 1.0.2. fnt = new Font("Sans Serif",10); g.DrawString("0", fnt, new SolidBrush(Color.Black), 100, 100); } catch(Exception e) { sw.WriteLine("A2: " + e.Message); } __ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com ___ 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] GDI+ problems on 1.0.4
Well, you might also want to try out updating from mono-1-0 branch, in case you don't want to update from HEAD. In any case (updating from mono-1-0 or HEAD), please let us know, if your problem is solved or not. Thanks, Ravi >>> "Ravindra Kumar" <[EMAIL PROTECTED]> 11/23/04 10:56 AM >>> Hello, This code works fine with our SVN HEAD. Is there any specific reason for you to use libgdiplus and System.Drawing from 1.0.4 release ? As far as stability is concerned, I think our System.Drawing stack is more stable in HEAD, because it gets tested everyday with our new SWF implementation. If you don't mind, please update your libgdiplus and System.Drawing from HEAD. Thanks, Ravi >>> Dilton McGowan II <[EMAIL PROTECTED]> 11/23/04 4:46 AM >>> This code works on 1.0.2 when installed with the RPM collection in mono-all.zip. In 1.0.4, I'm trying to figure out what I'm to build from source and what I'm to install via RPM. Bitmap b = new Bitmap(400, 400); Graphics g = null; Font fnt = null; try { g = Graphics.FromImage(b); } catch(Exception e) { sw.WriteLine("A1: " + e.Message); } try { //This seems to be the problem line, moving //it to the above try block causes an exception there. //I've tried two fonts that are on the system and //this code works on 1.0.2. fnt = new Font("Sans Serif",10); g.DrawString("0", fnt, new SolidBrush(Color.Black), 100, 100); } catch(Exception e) { sw.WriteLine("A2: " + e.Message); } __ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com ___ 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] GDI+ problems on 1.0.4
Thanks Peter, for clarifying this for me. Here are some more points I'd like to add to answer Dilton's queries. >>> "Peter Dennis Bartok" <[EMAIL PROTECTED]> 11/24/04 4:48 AM >>> >> Dilton McGowan II <[EMAIL PROTECTED]> 11/24/04 2:59 AM >>> >>What are SVN and HEAD? Are these CVS terms? I'm not >>trying to fix this *yet* as much as I'm trying to >>determine what is broken. >So is Ravindra. He's trying to narrow down changes to the >code to determine what could be broken. I hope you had a look at my subsequent mail too. I had requested you to try libgdiplus from mono-1-0 branch. Basically, we have two separate branches on SVN (earlier we had CVS), mono-1-0 and HEAD. HEAD means the latest code available. We are maintaining mono-1-0 separately to fix the bugs of 1.0 release. Now, the code you sent in your mails works fine here for me, that means HEAD is working fine for me. I don't have mono-1.0.4 installed, so I just suggested you to try using the latest libgdiplus from mono-1-0 branch or HEAD. mono-1.0.4 was released from mono-1-0 branch. FYI, we checkin the bug fixes in HEAD as well as mono-1-0, so there are chances that the bug you are hitting might have been fixed already. As you can see, it does not appear on my machine with HEAD. By doing what I suggested, you would have helped me in knowing, whether bug has been fixed already or not ? >> Is there any specific reason for you to use >>libgdiplus and System.Drawing from 1.0.4 release ? > >Uhm..yes, it's RELEASE'D, isn't it? >I believe the intent of the question to figure out if you could be helped by >simply switching to a newer version which does not appear to have the >problem/bug you are running into. In order to find that out he has to ask >whether there is a 'specific' reason. Well, there are two ways to look at any bug, either I make a setup similar to yours or you make a setup similar to what I can have here easily and then we try to reproduce the bug. Actually, I asked this Q just to know, if it would be possible for you to try out things from SVN. Some people are very particular about changing their setup and do not want to touch it. In that case, I would need to create a similar setup to reproduce the bug. >>Are you supporting or refuting my potential assertion >>that GDI *may* be broken in 1.0.4 RELEASE, not cvs >>yesterday, today or 1:00 AM tomorrow morning...but, >>RELEASE. I am trying to determine if I should log a >>bug against Mono 1.0.4 RELEASE so at least, everyone >>using and depending on 1.0.4 RELEASE will know that it >>is flawed and they may have to go back to an earlier >>RELEASE'D version of Mono or wait for a future >>RELEASE. >As Ravindra pointed out, a future RELEASE may not expose/have the problem >anymore, it may already be fixed since he could not reproduce. Which is why >he asked you to try a newer version from svn to confirm or refute those >findings. I'm not at all refuting your pointing. I just want to make sure, if this bug is still there with the code that we have on SVN right now ? If yes, we would love to fix it. Please keep in mind, that your code works for me with HEAD version. I tested it before replying to your mail. Since, we checkin the bug fixes to HEAD as well as mono-1-0 branch, there is high probability that this must have been fixed already, may be after 1.0.4 release was done. Otherwise, HEAD version would have failed for me. Well, if you don't want to try out what I suggested, please file a bug, we would look into it. Thanks, Ravi ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list