dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Pnet-developers] Adding a free() like method to Object Class ?


From: Thong Nguyen
Subject: RE: [Pnet-developers] Adding a free() like method to Object Class ?
Date: Thu, 1 Jun 2006 23:58:54 +1200

Hi there Thibault,

The default 'GC' (support/def_gc.c) maintains its own simple heap and has no
support for freeing (or collecting).  You could implement your own GC (see
def_gc.c for an example of a simple one) that uses malloc to allocate an
object.  Then freeing would be as simple as using Marshal.FreeHGlobal() as
the PNET implementation calls free() in FreeHGlobal.

Regards,

^Tum

> -----Original Message-----
> From: address@hidden [mailto:pnet-developers-
> address@hidden On Behalf Of Thibault Jochem
> Sent: Tuesday, 16 May 2006 3:56 a.m.
> To: address@hidden
> Subject: [Pnet-developers] Adding a free() like method to Object Class ?
> 
> Hi,
> 
> I need to use portable.net without the garbage collector. I saw that
> it's possible to compile pnet without the garbage collector .... But the
> memory stack explodes with this configuration.
> 
> So I need to implement a free() like method to the base class Object.
> But I don't know wich files to modify except
> pnetlib/runtime/system/Object.cs
> 
> Thanks for the help, and sorry if my English is a bit bat :)
> 
> 
> _______________________________________________
> Pnet-developers mailing list
> address@hidden
> http://dotgnu.org/mailman/listinfo/pnet-developers



reply via email to

[Prev in Thread] Current Thread [Next in Thread]