PC Review


Reply
Thread Tools Rate Thread

AllocHGlobal / FreeHGlobal

 
 
Felipe T.
Guest
Posts: n/a
 
      17th Mar 2004
Anyone knows how can i use
System.Runtime.InteropServices.Marshal.FreeHGlobal and Marshal.AllocHGlobal
in Compact Framework?


 
Reply With Quote
 
 
 
 
Alex Feinman [MVP]
Guest
Posts: n/a
 
      17th Mar 2004
Compact Framework marshaller does not contain these methods. You need to
PInvoke LocalAlloc and LocalFree
http://msdn.microsoft.com/mobility/p...ault.aspx#6.14

"Felipe T." <(E-Mail Removed)> wrote in message
news:%23Kmb%(E-Mail Removed)...
> Anyone knows how can i use
> System.Runtime.InteropServices.Marshal.FreeHGlobal and

Marshal.AllocHGlobal
> in Compact Framework?
>
>



 
Reply With Quote
 
Peter Foot [MVP]
Guest
Posts: n/a
 
      17th Mar 2004
And you can get a ready-made implementation in the Smart Device Framework
(www.opennetcf.org/sdf/) in the OpenNETCF.Runtime.Interop.MarshalEx class.

Peter

--
Peter Foot
Windows Embedded MVP
OpenNETCF.org Senior Advisor
www.inthehand.com | www.opennetcf.org

"Alex Feinman [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Compact Framework marshaller does not contain these methods. You need to
> PInvoke LocalAlloc and LocalFree
>

http://msdn.microsoft.com/mobility/p...ault.aspx#6.14
>
> "Felipe T." <(E-Mail Removed)> wrote in message
> news:%23Kmb%(E-Mail Removed)...
> > Anyone knows how can i use
> > System.Runtime.InteropServices.Marshal.FreeHGlobal and

> Marshal.AllocHGlobal
> > in Compact Framework?
> >
> >

>
>



 
Reply With Quote
 
Felipe T.
Guest
Posts: n/a
 
      18th Mar 2004
There is a broken link in the server, when i try to download only the
binaries:
"File /downloads/bin/OpenNETCF.zip doesn't exist "

Anyway, i downloaded and compiled the source

Thanks,
Felipe

"Peter Foot [MVP]" <(E-Mail Removed)> wrote in message
news:OxG$(E-Mail Removed)...
> And you can get a ready-made implementation in the Smart Device Framework
> (www.opennetcf.org/sdf/) in the OpenNETCF.Runtime.Interop.MarshalEx class.
>
> Peter
>
> --
> Peter Foot
> Windows Embedded MVP
> OpenNETCF.org Senior Advisor
> www.inthehand.com | www.opennetcf.org
>
> "Alex Feinman [MVP]" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Compact Framework marshaller does not contain these methods. You need to
> > PInvoke LocalAlloc and LocalFree
> >

>

http://msdn.microsoft.com/mobility/p.../FAQ/default.a
spx#6.14
> >
> > "Felipe T." <(E-Mail Removed)> wrote in message
> > news:%23Kmb%(E-Mail Removed)...
> > > Anyone knows how can i use
> > > System.Runtime.InteropServices.Marshal.FreeHGlobal and

> > Marshal.AllocHGlobal
> > > in Compact Framework?
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Which to use, AllocCoTaskMem or AllocHGlobal **Developer** Microsoft VB .NET 4 5th Jul 2005 02:59 PM
Replacement for Marshal.AllocHGlobal =?Utf-8?B?Sm9obiBPbGJlcnQ=?= Microsoft Dot NET Compact Framework 5 13th Jun 2005 09:02 PM
is Marshal::FreeHGlobal() possible? =?Utf-8?B?RmVpIExp?= Microsoft VC .NET 1 30th Aug 2004 09:55 PM
Problem with FreeHGlobal Joerg M. Colberg Microsoft VC .NET 0 4th Aug 2004 09:55 PM
Marshal.AllocHGlobal =?Utf-8?B?U3RlZmFu?= Microsoft C# .NET 2 15th Feb 2004 06:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:23 AM.