Re: Marshal.AllocHGlobal question?

From: Mattias Sjögren (mattias.dont.want.spam_at_mvps.org)
Date: 06/23/04


Date: Wed, 23 Jun 2004 11:30:46 +0200


I should probably add that is uses LocalAlloc(0, size) internally,
which implies LMEM_FIXED. So the memory doesn't have to be locked.

Mattias

-- 
Mattias Sjögren [MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.


Relevant Pages

  • Re: adOpenStatic
    ... The question of _whose_ memory contains the records depends on the ... cursor location. ... Microsoft MVP -- ASP/ASP.NET ... Please reply to the newsgroup. ...
    (microsoft.public.data.ado)
  • Re: Memory Pinned
    ... >or because the the 'new' made in the unmanged heap the GC will not ... >move around this block of memory? ... Mattias Sjögren [MVP] mattias @ mvps.org ... Please reply only to the newsgroup. ...
    (microsoft.public.dotnet.framework.interop)
  • Re: how to gat size of objects?
    ... and I would like to get size of them in memory ... Mattias Sjögren [C# MVP] mattias @ mvps.org ... Please reply only to the newsgroup. ...
    (microsoft.public.dotnet.general)
  • Re: SP 2 compatibility problem
    ... 'Jupiter Jones [MVP Wrote: ... they do not guarantee memory is perfect. ... > shouldn't be any driver conflicts...since you can't install them ... > I was hoping that someone could explain to me, how SP2 can have ...
    (microsoft.public.windowsxp.general)
  • Re: CFont memory leak !?
    ... virtual memory used about 380MB ... Depending on how the font is specified, your font could take more space, but you seem to ... bool ExStatic::SetNewFont(int nPointSize, LPCTSTR lpszFaceName, CDC* ... on my MVP Tips site. ...
    (microsoft.public.vc.mfc)