[Mono-list] Can I call CoTaskMemAlloc on Linux?
Vincent Finn
vincent.finn at riverdocs.com
Thu Mar 15 13:03:12 EDT 2007
Ok,
So not as stupid a question as I thought.
From the MSDN docs, the .Net Marshaller uses CoTaskMemFree() to release
memory, so I assume Mono's Marshaller uses free()?
Vin
Miguel de Icaza wrote:
> Hello,
>
>> "windows.h" won't be on a Linux machine so can someone confirm for me
>> that CoTaskMemAlloc is portable and not MS?
>
> It is not; You need to use malloc on Unix systems.
>
>> If it isn't what is the alternative?
>>
>> Thanks, Vin
>> _______________________________________________
>> Mono-list maillist - Mono-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-list
>
More information about the Mono-list
mailing list