[Mono-dev] [PATCH] StringToHGlobalAnsi and Uni
Bill Holmes
billholmes54 at gmail.com
Tue Sep 2 17:20:29 EDT 2008
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hglobal_08_09_02.diff
Type: application/octet-stream
Size: 1220 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080902/5e159b0e/attachment.obj
More information about the Mono-devel-list
mailing list