[Enter feedback here]
The documentation here says "This method exposes the Win32 LocalAlloc function from Kernel32.dll." I haven't tried using it under Linux but Copilot reckons it uses malloc there, so either it's hallucinating or this documentation is badly misleading and out of date.
Type of issue
Outdated article
Description
[Enter feedback here] The documentation here says "This method exposes the Win32 LocalAlloc function from Kernel32.dll." I haven't tried using it under Linux but Copilot reckons it uses
malloc
there, so either it's hallucinating or this documentation is badly misleading and out of date.Page URL
https://learn.microsoft.com/en-us/dotnet/api/system.runtime.interopservices.marshal.allochglobal?view=net-8.0
Content source URL
https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Runtime.InteropServices/Marshal.xml
Document Version Independent Id
53418d00-f1c2-5cde-3843-b607b1dcf240
Article author
@dotnet-bot