[Mono-winforms-list] Casting question (creating things on the fly)

2010-05-25 Thread Paul
Hi, Is it possible to create a winform object using something stored in a string? For example string m = Label; object n = (object)m; n foo = new n(); I'd imagine it can be, but after 20 mins of googling around, can't see anything that says I can... TTFN Paul -- Biggles was quietly reading

Re: [Mono-winforms-list] Casting question (creating things on the fly)

2010-05-25 Thread Ivan Zlatev
On Tue, May 25, 2010 at 7:13 AM, Paul p...@all-the-johnsons.co.uk wrote: Hi, Is it possible to create a winform object using something stored in a string? Take a look at Type.GetType(string) and Activator.CreateInstance methods. Depending on how you do things you might also have to call

Re: [Mono-winforms-list] Casting question (creating things on the fly)

2010-05-25 Thread Mauricio Henriquez
Hi Paul: What you can do is deserialize a object from a previously XML serialized object, something like: http://www.devhood.com/tutorials/tutorial_details.aspx?tutorial_id=236 When you serialize a object to a XML file, you are saving the string representation of the object state at a

Re: [Mono-winforms-list] Is this possible? (casting Q)

2010-05-25 Thread Rafael Teixeira
You need to use something like some of the Activator.CreateInstance overloads, probably this one: http://msdn.microsoft.com/en-us/library/d133hta4%28v=VS.100%29.aspx But you need to deal with full-names System.Windows.Forms.Label instead of just Label, but you'll have to make your helper classes

Re: [Mono-dev] Altering our build system.

2010-05-25 Thread Atsushi Eno
Since - 1 won't be determined without the actually altered build system, - 2 is just impossible (no make install alternative and we need it), and - 3 in VS requires non-express versions as long as it depends on NUnit addin (and of course we can't migrate our tons of existing NUnit tests to

[Mono-dev] gnome/and gconf-sharp2

2010-05-25 Thread Lyndon Lu
Hi All, I am not sure if I should ask the questions here. I try to install ifolder client in Fedora 12 and always got the error messages: [r...@cook i586]# rpm -ivh ifolder3-3.8.0.9328.1-3.1.i586.rpm warning: ifolder3-3.8.0.9328.1-3.1.i586.rpm: Header V3 DSA signature: NOKEY, key ID

[Mono-dev] [PATCH] eglib fails to build under Solaris 10

2010-05-25 Thread Burkhard Linke
Hi, current SVN revision of eglib (157827) fails to build unter Solaris 10. The function vasprintf() is missing, and the function nanosleep() is defined in the rt library. The applied patch fixes the compilation issues, using the already provided implemtation for Win32 and AC_SEARCH_LIBS to

Re: [Mono-dev] openSUSE upgrade to 2.6+

2010-05-25 Thread Greg Robinson
I get a 'Couldn't resolve host 'ftp.novel.com' when I try: zypper refresh --repo mono-stable On Mon, May 24, 2010 at 7:38 PM, Stephen Shaw ss...@decriptor.com wrote: On Mon, May 24, 2010 at 14:52, Greg Robinson gregarobin...@gmail.com wrote: I am trying out openSUSE to compare it to

Re: [Mono-dev] openSUSE upgrade to 2.6+

2010-05-25 Thread Robert Jordan
On 25.05.2010 14:16, Greg Robinson wrote: I get a 'Couldn't resolve host 'ftp.novel.com' when I try: Try 'ftp.novell.com'. zypper refresh --repo mono-stable Robert ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com

Re: [Mono-dev] System.NotImplementedException: The requested feature is not implemented. at System.ServiceModel.Configuration.WSHttpBindingElement.OnApplyConfiguration

2010-05-25 Thread Greg Robinson
I changed the config file settings to basicHttpBinding, removed all of the related WSHttpBinding values and ran under Mono 2.6+. Now I receive this exception System.NotImplementedException: The requested feature is not implemented. at

Re: [Mono-dev] System.NotImplementedException: The requested feature is not implemented. at System.ServiceModel.Configuration.WSHttpBindingElement.OnApplyConfiguration

2010-05-25 Thread Atsushi Eno
In general, when you see NotImplementedException, it is not implemented yet i.e. you cannot use it in mono. It here means ClientCredentialsElement and clientCredentials configuration element. Atsushi Eno On 2010/05/25 22:27, Greg Robinson wrote: I changed the config file settings to

Re: [Mono-dev] SGen improved and looking for testers

2010-05-25 Thread Jonathan Gagnon
Here's a simple test case that doesn't behave properly with sgen. The runtime doesn't crash, but I get a NullReferenceException where I shouldn't. The same program runs perfectly with Boehm. Jonathan -Message d'origine- De : Mark Probst [mailto:mark.pro...@gmail.com] Envoyé : Friday,

Re: [Mono-dev] Cannot compile monodebugger with mono from svn trunk

2010-05-25 Thread xplicit
For me it does not matter, which debbuger to use. I just want to have the ablity to debug my applications in monodevelop with the latest mono. I tried to debug mono 2.7 application in monodevelop 2.2 without compiling and installing debugger, but I got the error:

[Mono-dev] PATCH: fix memory leak in MonoSymbolFile unloading

2010-05-25 Thread Lucas Meijer
Hi. Mono forgets to release the memory of any debug image file that was loaded from memory. Attach patch fixicates. Bye, Lucas Index: debug-mono-symfile.c === --- debug-mono-symfile.c(revision 42294) +++

Re: [Mono-dev] PATCH: fix memory leak in MonoSymbolFile unloading

2010-05-25 Thread Martin Baulig
Hi Lucas, thanks a lot for your patch, I just committed it to SVN. Martin On 05/25/2010 04:40 PM, Lucas Meijer wrote: Hi. Mono forgets to release the memory of any debug image file that was loaded from memory. Attach patch fixicates. Bye, Lucas

Re: [Mono-dev] [PATCH] eglib fails to build under Solaris 10

2010-05-25 Thread Zoltan Varga
Committed. Zoltan On Tue, May 25, 2010 at 1:17 PM, Burkhard Linke bli...@cebitec.uni-bielefeld.de wrote: Hi, current SVN revision of eglib (157827) fails to build unter Solaris 10. The function vasprintf() is missing, and the function nanosleep() is defined in the rt library.

Re: [Mono-dev] openSUSE upgrade to 2.6+

2010-05-25 Thread Greg Robinson
I am not following you; I did use ftp.novell.com and ftp.novel.com. Am I missing something? Also, when I use your shortcuts I am not providing the ftp address...it seems to know it already. On Tue, May 25, 2010 at 8:35 AM, Robert Jordan robe...@gmx.net wrote: On 25.05.2010 14:16, Greg

Re: [Mono-dev] Altering our build system.

2010-05-25 Thread Miguel de Icaza
Hello, This would dovetail nicely with the idea of splitting up mcs into smaller modules as part of the git migration; see: http://www.mono-project.com/GitMigration I would also suggest using xbuild to build the non-core libraries. This will make it easier for people who aren't

Re: [Mono-dev] Altering our build system.

2010-05-25 Thread Miguel de Icaza
Hello, 1. Can we build using either .Net compilers or mono compilers? I think that in this move to just build for the regular user, I do not mind if we use either one. 2. Is there the concept of make and make install (building class libs versus installing them in some location)? It exists

Re: [Mono-dev] System.NotImplementedException: The requested feature is not implemented. at System.ServiceModel.Configuration.WSHttpBindingElement.OnApplyConfiguration

2010-05-25 Thread Miguel de Icaza
When I go to: http://mono-project.com/DistroPackages/Ubuntu it tells me Mono comes installed by default. We are running Ubuntu 10.04. What do I need to do to upgrade to Mono 2.6 on Ubuntu 10.04? I am told that there are no 2.6 packages available for Ubuntu by the Debian/Ubuntu

Re: [Mono-dev] Playing with Mono.Terminal, no success

2010-05-25 Thread Miguel de Icaza
Problem is that the app ends immediately, I don't see anything on the screen... Maybe I'm just misunderstanding the whole thing, I don't know... That is usually a crash, but you do not see it. Miguel ___ Mono-devel-list mailing list

Re: [Mono-dev] Playing with Mono.Terminal, no success

2010-05-25 Thread Miguel de Icaza
Application.Iteration += delegate { Application.Refresh(); }; With the above you will be busy-looping. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com

Re: [Mono-dev] [PATCH] Block map support for sgen

2010-05-25 Thread Miguel de Icaza
Hello, For the sake of us that do not really speak the GC lingo, would you mind explaining what block map support for SGen is? The attached patch set implements block map support for sgen. It uses a schema similar to boehm's, which is a 2 level sparse map. Under 64 bits it uses hashing.

Re: [Mono-dev] Playing with Mono.Terminal, no success

2010-05-25 Thread Miguel de Icaza
Problem is that the app ends immediately, I don't see anything on the screen... Maybe I'm just misunderstanding the whole thing, I don't know... It works fine for me. I bet the problem is that you did not install the shared library in a place where your dynamic linker can find it.

Re: [Mono-dev] Playing with Mono.Terminal, no success

2010-05-25 Thread Miguel de Icaza
However, clicking on Terminal-Reset gives me a bit of an idea whats going off here. Mono-curses is in my GAC, and mono-curses.dll is also in the folder with the executable; I've tried removing and re-gac'ing the assembly, with the package option too. This means that it cant load

Re: [Mono-dev] Cannot compile mono from trunk at sles

2010-05-25 Thread Zoltan Varga
Hi, Sorry about that, should be fixed by the revertion of the broken changes. Zoltan On Tue, May 25, 2010 at 9:45 AM, krlm kr...@poczta.onet.pl wrote: Hi, Thanks for your reply. I've updated sources but now I've got a seg fault. Exactly the same like here:

Re: [Mono-dev] System.NotImplementedException: The requested feature is not implemented. at System.ServiceModel.Configuration.WSHttpBindingElement.OnApplyConfiguration

2010-05-25 Thread Greg Robinson
I am new to Linux, new to Mono. I am really hoping we can use Mono for our .NET application to Linux port/migration. The other option on the table is to totally re-write in Java. So what do folks usually do at this point; the point where they find that something they need, our .NET Server

Re: [Mono-dev] System.NotImplementedException: The requested feature is not implemented. at System.ServiceModel.Configuration.WSHttpBindingElement.OnApplyConfiguration

2010-05-25 Thread Stifu
The obvious answer: contribute to Mono and help implement it. Or pay someone to do it. That's what some companies do. If you can afford it, that's an option (which might turn out to be cheaper than rewriting everything in Java; that said, I have no idea how much work is needed here). Greg

Re: [Mono-dev] System.NotImplementedException: The requested feature is not implemented. at System.ServiceModel.Configuration.WSHttpBindingElement.OnApplyConfiguration

2010-05-25 Thread Greg Robinson
Understood, and that was my first thought. Was just wondering if there were alternative solutions. I am thinking of a Java/.NET split if you will where we keep what we can that WILL run under Mono and port the rest to Java. That assumes we can get the two to play nicely together. Is there a way

Re: [Mono-dev] [PATCH] Block map support for sgen

2010-05-25 Thread Rodrigo Kumpera
When doing major collections, sgen must know where a given object lives (it's space), if it's on the nursery, a major block, a large object and so on. Right now, to identify a large object we calculate the object size and check against a constant. This is not very cache friendly and requires 5

Re: [Mono-dev] _wapi_connect stuck in poll()

2010-05-25 Thread Geoff Norton
Can you try this patch? -g poll-fix.diff Description: Binary data On 2010-05-25, at 3:05 PM, yoni shalom wrote: Tested on Mono 2.4.2.3, 2.6.x Both leopard and snow leopard. It seems as though _sometime_ (ranges from 0 to 5 out of 50) threads that are in the middle of performing

Re: [Mono-dev] System.NotImplementedException: The requestedfeature is not implemented. atSystem.ServiceModel.Configuration.WSHttpBindingElement.OnApplyConfiguration

2010-05-25 Thread Greg Robinson
Thanks, running MoMA is one of the first things I did when I started looking at Mono. Much to my surprise it did not find any errors. On Tue, May 25, 2010 at 3:40 PM, Matt Dargavel m...@shout-telecoms.comwrote: Hi Greg, Have you tried running MoMA (http://www.mono-project.com/MoMa)

Re: [Mono-dev] System.NotImplementedException: The requestedfeature is not implemented. atSystem.ServiceModel.Configuration.WSHttpBindingElement.OnApplyConfiguration

2010-05-25 Thread Greg Robinson
Matt, it looks like most of the ClientCredentials class is done so you might be able to configure the necessary ClientCredentials in code rather than using .config files. So are you stating Mono is not app.config file friendly? So it's possible if we hard code these bits will run under Mono?

Re: [Mono-dev] System.NotImplementedException: The requestedfeature is not implemented. atSystem.ServiceModel.Configuration.WSHttpBindingElement.OnApplyConfiguration

2010-05-25 Thread Alan McGovern
I am thinking of a Java/.NET split if you will where we keep what we can that WILL run under Mono and port the rest to Java. That assumes we can get the two to play nicely together. Depending on what it is that doesn't work, it's possible that it'd only take you a couple of days could fix your

Re: [Mono-dev] System.NotImplementedException: The requestedfeature is not implemented. atSystem.ServiceModel.Configuration.WSHttpBindingElement.OnApplyConfiguration

2010-05-25 Thread Atsushi Eno
Hello, First of all, MoMA is not anything you can think this app SHOULD run on mono because MoMA reported nothing. It is rather to find out that MoMA reported some items that should be implemented, so this app won't run. It is because: - It only checks exposed API. Anything that depends on

Re: [Mono-list] Building Mono on Windows

2010-05-25 Thread Giles Thomas
Hi Robert, Thanks for the answers; my replies inline below. Robert Jordan wrote: The bad news first: the Windows build is broken at present. Ah, OK. I guess it's still worth trying to get my build to fail in the right way, though. Here's the error message: -- make[8]: Entering

Re: [Mono-list] Building Mono on Windows

2010-05-25 Thread Atsushi Eno
I have ended up to file the windows build breakage as a critical bug awhile ago: https://bugzilla.novell.com/show_bug.cgi?id=605810 Basically eglib migration is all of the cause of the issues. Just disable it by autogen.sh --with-glib=system. And you can't actually use mono without problem.

[Mono-list] Using Virtual-PC image with Hyper-V

2010-05-25 Thread Jochen Wezel - CompuMaster GmbH
Hi, has anybody got the same problems when trying to use the mono appliance created for VirtualPC at a Hyper-V system? As soon as I try to insert the .vhd file as the hard disc, I get the following errors: GERMAN LOG Mono: Die Anlage G:\Virtual Machines\Mono\Mono-2.6.4.vhd kann nicht

Re: [Mono-list] Using Virtual-PC image with Hyper-V

2010-05-25 Thread Ivan Lopez
I was not able to get the VirtualPC image to work under Hyper-V either. I tried mounting the VHD just to get a peek inside the image and it failed to mount as well. I don't think this particular VirtualPC image works with Hyper-V. However, I was able to get the LiveCD iso to work fine under

[Mono-list] Mono.Addins 0.5 released

2010-05-25 Thread Lluis Sanchez Gual
Hi, I'm pleased to announce the release of Mono.Addins 0.5. Mono.Addins is a generic framework for creating extensible applications, and for creating libraries which extend applications. The 0.5 release of Mono.Addins comes packed with new features, including: * User defined custom

Re: [Mono-list] [Mono-dev] _wapi_connect stuck in poll()

2010-05-25 Thread Geoff Norton
Can you try this patch? -g poll-fix.diff Description: Binary data On 2010-05-25, at 3:05 PM, yoni shalom wrote: Tested on Mono 2.4.2.3, 2.6.x Both leopard and snow leopard. It seems as though _sometime_ (ranges from 0 to 5 out of 50) threads that are in the middle of performing