[Mono-dev] [Patch]System.Web.UI.WebControls.RadioButton

2006-12-05 Thread Igor Zelmanovich

Attached is patch fixes RadioButton and corresponding tests.

- When GroupName is not defined UniqueID is used instead for name
attribute.
- CheckedChanged is raised only when control is checked.

Please, review.

Regards,
Igor Zelmanovich.

[EMAIL PROTECTED] 



RadioButton.patch
Description: RadioButton.patch
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] [Patch] System.Web.UI.Page

2006-12-05 Thread Igor Zelmanovich
Attached is the patch fixes and optimizes ProcessPostData and
corresponding tests.

Please, review.





Regards,
Igor Zelmanovich.

[EMAIL PROTECTED] 



Page.patch
Description: Page.patch
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Patch for System.dll

2006-12-05 Thread Vladimir Krasnov
Hello,

Please approve attached patch that implements
System.Uri.UnescapeDataString method

Vladimir


system.dll.patch
Description: system.dll.patch
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Iterating the classes of a mono image using the embedding API

2006-12-05 Thread Argiris Kirtzidis
Hi all,

Is there a way to get all the classes/types defined in a image using the 
embedding API ? I looked through all the functions and I can't find one that 
will allow iteration of all the classes, am I missing something ?

How one would get a list of the classes that a mono image contains using only 
plain C ?

Argiris___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Iterating the classes of a mono image using the embedding API

2006-12-05 Thread Rafael Teixeira
Hi Argiris,

You can make calls in the managed classes for reflection or from Mono.Cecil.
But see that you need to repeat it for all managed libraries, already
loaded, or that you are interested and so you load, as even a
compacted image of Mono contains many independent libraries just
attached in a single file, and with some info to locate them in this
blob.

AFAIK in the embedding API in pure C, you'll probably have only a list
of classes already loaded and/or jitted , not of all that the ones the
program may be able to use.

Fun,

On 12/5/06, Argiris Kirtzidis [EMAIL PROTECTED] wrote:


 Hi all,

 Is there a way to get all the classes/types defined in a image using the
 embedding API ? I looked through all the functions and I can't find one that
 will allow iteration of all the classes, am I missing something ?

 How one would get a list of the classes that a mono image contains using
 only plain C ?

 Argiris
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list





-- 
Rafael Monoman Teixeira
---
The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man. George Bernard Shaw
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Iterating the classes of a mono image using the embedding API

2006-12-05 Thread Robert Jordan
Argiris Kirtzidis wrote:
 Hi all,
 
 Is there a way to get all the classes/types defined in a image using the 
 embedding API ? I looked through all the functions and I can't find one that 
 will allow iteration of all the classes, am I missing something ?
 
 How one would get a list of the classes that a mono image contains using only 
 plain C ?

There is no other (documented) way than using System.Reflection.

Robert

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Text selection in webcontrol

2006-12-05 Thread nmmstuff
Hi,

when I was using a textview there was a simple method to get the text selected
by a user with the Selection property.
Is there a similar method when using Gecko.WebControl?

Also, where can I find some examples on more advance features of this control?
So far I've only found a simple browser example.

Thanks in advance.

Nuno Marques
___

O SAPO já está livre de vírus com a Panda Software, fique você também!
Clique em: http://antivirus.sapo.pt

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Bug in Server.Execute

2006-12-05 Thread Hubert FONGARNAND
http://bugzilla.ximian.com/show_bug.cgi?id=80152

This bug breaks all apps using Server.Execute

The cause is in :
http://svn.myrealbox.com/viewcvs/trunk/mcs/class/System.Web/System.Web/HttpRequest.cs?rev=68776r1=61465r2=68776

I hope this regression is not in the mono 1.2.2 release!

Thanks to fix!
___
Ce message et les éventuels documents joints peuvent contenir des informations 
confidentielles.
Au cas où il ne vous serait pas destiné, nous vous remercions de bien vouloir 
le supprimer et en aviser immédiatement l'expéditeur. Toute utilisation de ce 
message non conforme à sa destination, toute diffusion ou publication, totale 
ou partielle et quel qu'en soit le moyen est formellement interdite.
Les communications sur internet n'étant pas sécurisées, l'intégrité de ce 
message n'est pas assurée et la société émettrice ne peut être tenue pour 
responsable de son contenu.
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] [PATCH] leak in ves_icall_Type_MakeGenericType

2006-12-05 Thread Robert Jordan

Hi,

The `MonoType **types' local var is not free()d.
I replaced the g_new with g_newa.

Robert
Index: metadata/icall.c
===
--- metadata/icall.c(revision 69048)
+++ metadata/icall.c(working copy)
@@ -1999,7 +1999,7 @@
MONO_ARCH_SAVE_REGS;
 
count = mono_array_length (type_array);
-   types = g_new0 (MonoType *, count);
+   types = g_newa (MonoType *, count);
 
for (i = 0; i  count; i++) {
MonoReflectionType *t = mono_array_get (type_array, gpointer, 
i);
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Iterating the classes of a mono image using the embedding API

2006-12-05 Thread Argiris Kirtzidis
Ok, after some digging into the Mono internals, I found a way. I post it in 
case someone else finds it useful too:

static void
print_all_types (MonoImage *image)
{
 MonoClass *klass;
 int i;

 int rows = mono_image_get_table_rows (image, MONO_TABLE_TYPEDEF);

 /* we start the count from 1 because we skip the special type Module */
 for (i = 1; i  rows; ++i) {
klass = mono_class_get (image, (i + 1) | MONO_TOKEN_TYPE_DEF);
printf (Class name: %s.%s\n, mono_class_get_namespace (klass), 
mono_class_get_name (klass));
 }
}


Argiris



 On 12/5/06, Argiris Kirtzidis [EMAIL PROTECTED] wrote:


 Hi all,

 Is there a way to get all the classes/types defined in a image using the
 embedding API ? I looked through all the functions and I can't find one 
 that
 will allow iteration of all the classes, am I missing something ?

 How one would get a list of the classes that a mono image contains using
 only plain C ?

 Argiris
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list progress depends 
 on the unreasonable man. George Bernard Shaw 

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] DataTable Select string comparison patch

2006-12-05 Thread Jaroslaw Pawlak
RE: [Mono-dev] DataTable Select string comparison patch
Hi Konstantin ,

  1. If one object is string = 5  and the second object is Int32 = 5. 
 Will
 the objects be equal?
 No, they won't even go into the if because o1 is string, but o2 is not 
 string
That's right, but the question is what happens in MS .Net?
Well, MS .NET (at least 2.0)  treats '5' and int 5 as equal (in 
DataTable.Select).
I guess it means that a string from int is created (or int from string) to 
compare objects.
So it seems that object creation takes place anyway.

   3. Trimming + converting [...]
while (count1  0  Char.IsWhiteSpace(s1[count1 - 1])) count1--;
Maybe you're right, I can change trim to counting spaces, but if you want 
also have 5 == '5' done, then in my opinion you will not escape from 
creating objects.
If we agree to string creation in one place I don't see reason not to agree 
to create another (trimmed).

And the last thing, the DataTable.Locale should be taken into account.
I'm mostly interested in my trimming problem, because I need this to work. 
I don't want to go too far from it right now.

Regards,
Jarek 

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] [PATCH] leak in ves_icall_Type_MakeGenericType

2006-12-05 Thread Paolo Molaro
On 12/05/06 Robert Jordan wrote:
 Index: metadata/icall.c
 ===
 --- metadata/icall.c  (revision 69048)
 +++ metadata/icall.c  (working copy)
 @@ -1999,7 +1999,7 @@
   MONO_ARCH_SAVE_REGS;
  
   count = mono_array_length (type_array);
 - types = g_new0 (MonoType *, count);
 + types = g_newa (MonoType *, count);
  
   for (i = 0; i  count; i++) {
   MonoReflectionType *t = mono_array_get (type_array, gpointer, 
 i);

Since this is not a fast path, I added the proper g_free() call in svn.
Thanks!

lupus

-- 
-
[EMAIL PROTECTED] debian/rules
[EMAIL PROTECTED] Monkeys do it better
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Updated Moma Results.

2006-12-05 Thread Miguel de Icaza
Hello,

 I've submitted reports against NUnit 2.4 and NUnitLite. In neither
 case did I notice anyplace where I might have provided any extra
 information. Once clicking on Submit Report, it's gone.
 
 What did I miss?

Are you using the *new* Moma 1.1 or the original Moma?
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Updated Moma Results.

2006-12-05 Thread Daniel Morgan
How do you plan to handle methods which p/invoke into
native libraries on Win32?

I would hope this could be handled in a cross-platform
way for Windows, Linux, etc...

Such as, GetPrivateProfileString is very common for me
to use.  I know INI File handling is not the normal
thing to do these days, but its a must to get and set
configuration data in legacy environments. 

I'm interested in helping implement these native
methods in a cross-platform way.

--- Miguel de Icaza [EMAIL PROTECTED] wrote:

 Hello folks,
 
 With the new Moma (1.1) that was released
 yesterday we have now 105
 fresh reports (with the old version we have 525),
 and I have written
 some scripts that publish the information in easy to
 digest information.
 

 http://primates.ximian.com/~miguel/momareports/
 
 The most interesting ones are the per-namespace
 splits, as they come
 split in a per-class basis and have usage counts and
 I also published
 the information that is being submitted (not a lot
 of people are
 providing extra information sadly).
 
 Miguel.
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com

http://lists.ximian.com/mailman/listinfo/mono-devel-list
 



 

Want to start your own business?
Learn how on Yahoo! Small Business.
http://smallbusiness.yahoo.com/r-index
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] SPAM-LOW: Re: Updated Moma Results.

2006-12-05 Thread Charlie Poole
Hi Miguel, 

  I've submitted reports against NUnit 2.4 and NUnitLite. In neither 
  case did I notice anyplace where I might have provided any extra 
  information. Once clicking on Submit Report, it's gone.
  
  What did I miss?
 
 Are you using the *new* Moma 1.1 or the original Moma?

Ah ha! Well, it was new to me. :-)

Charlie 



___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] DateTime/DateTimeFormatInfo patch to reduce Clone()

2006-12-05 Thread Atsushi Eno
Mirco Bauer wrote:
 On Mon, 2006-12-04 at 20:09 +0100, Paolo Molaro wrote:
 On 11/30/06 Atsushi Eno wrote:
 I noticed that many string[] properties in DateTimeFormatInfo are
 used directly in DateTime. They have to return Clone() which are
 not neccessary there.
 If the arrays are exposed to the user, we should clone them, otherwise
 the user can change the values in the arrays and break later code.
 
 *cough* lack of const *cough*
 
 sorry could not resist :-P
 

I quite don't understand it - unless you think you can declare
const arrays (which is incorrect).

Atsushi Eno
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list