[Mono-dev] [PATCH] StringToHGlobalAnsi and Uni

Zoltan Varga vargaz at gmail.com
Tue Sep 2 17:26:28 EDT 2008


Look ok.

       Zoltan

2008/9/2 Bill Holmes <billholmes54 at gmail.com>:
> 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 at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>


More information about the Mono-devel-list mailing list