Re: [Mono-dev] [PATCH] StringToHGlobalAnsi and Uni

2008-09-02 Thread Zoltan Varga
Look ok.

   Zoltan

2008/9/2 Bill Holmes <[EMAIL PROTECTED]>:
> Hello All,
>
> The following patch was created from the 2.0 branch.  I would like to
> commit it to the branch as well as the trunk.
>
> Basically on Windows we need to allocate the memory using GlobalAlloc
> for these calls.
>
> I have plans to revisit
> ves_icall_System_Runtime_InteropServices_Marshal_StringToHGlobalAnsi
> to avoid allocating memory twice.  Similar to what was attempted in
> mono_string_new in object.c.  To do this we need to implement some
> more e-glib methods so we have to live with the double alloc for 2.0.
>
> -bill
>
> ___
> Mono-devel-list mailing list
> Mono-devel-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] [PATCH] StringToHGlobalAnsi and Uni

2008-09-02 Thread Bill Holmes
Hello All,

The following patch was created from the 2.0 branch.  I would like to
commit it to the branch as well as the trunk.

Basically on Windows we need to allocate the memory using GlobalAlloc
for these calls.

I have plans to revisit
ves_icall_System_Runtime_InteropServices_Marshal_StringToHGlobalAnsi
to avoid allocating memory twice.  Similar to what was attempted in
mono_string_new in object.c.  To do this we need to implement some
more e-glib methods so we have to live with the double alloc for 2.0.

-bill


hglobal_08_09_02.diff
Description: Binary data
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list