Invoke garbage collector?

2011-02-09 Thread Sean Eskapp
I'm having an unfortunate DSFML issue, where failing to free objects like Images or Sprites causes exceptions to eventually be thrown. Calling the built-in member dispose() causes access violations, so I assume it's not for programmer use. However, I need the resources to be freed more quickly tha

Re: Invoke garbage collector?

2011-02-09 Thread bearophile
Sean Eskapp: > so is there a way to invoke a GC cleanup in some way? http://www.digitalmars.com/d/2.0/phobos/core_memory.html#minimize Bye, bearophile

Re: Invoke garbage collector?

2011-02-09 Thread Steven Schveighoffer
On Wed, 09 Feb 2011 15:58:13 -0500, bearophile wrote: Sean Eskapp: so is there a way to invoke a GC cleanup in some way? http://www.digitalmars.com/d/2.0/phobos/core_memory.html#minimize This attempts to minimize memory, it does not run a collection cycle (I don't think anyways). To

Re: Invoke garbage collector?

2011-02-09 Thread Trass3r
However, I need the resources to be freed more quickly than the GC is apparently doing You could use scoped instances if you need to clean them up soon after creation.

Re: Invoke garbage collector?

2011-02-09 Thread Sean Eskapp
== Quote from Steven Schveighoffer (schvei...@yahoo.com)'s article > On Wed, 09 Feb 2011 15:58:13 -0500, bearophile > wrote: > > Sean Eskapp: > > > >> so is there a way to invoke a GC cleanup in some way? > > > > http://www.digitalmars.com/d/2.0/phobos/core_memory.html#minimize > This attempts to

Re: Invoke garbage collector?

2011-02-10 Thread spir
On 02/09/2011 10:15 PM, Steven Schveighoffer wrote: On Wed, 09 Feb 2011 15:58:13 -0500, bearophile wrote: Sean Eskapp: so is there a way to invoke a GC cleanup in some way? http://www.digitalmars.com/d/2.0/phobos/core_memory.html#minimize This attempts to minimize memory, it does not run

Re: Invoke garbage collector?

2011-02-10 Thread Steven Schveighoffer
On Thu, 10 Feb 2011 07:34:53 -0500, spir wrote: On 02/09/2011 10:15 PM, Steven Schveighoffer wrote: On Wed, 09 Feb 2011 15:58:13 -0500, bearophile wrote: Sean Eskapp: so is there a way to invoke a GC cleanup in some way? http://www.digitalmars.com/d/2.0/phobos/core_memory.html#minimiz

Re: Invoke garbage collector?

2011-02-10 Thread Johannes Pfau
Sean Eskapp wrote: >I'm having an unfortunate DSFML issue, where failing to free objects >like Images or Sprites causes exceptions to eventually be thrown. >Calling the built-in member dispose() causes access violations, so I >assume it's not for programmer use. > >However, I need the resources to

Re: Invoke garbage collector?

2011-02-10 Thread Johannes Pfau
Johannes Pfau wrote: >Sean Eskapp wrote: >>I'm having an unfortunate DSFML issue, where failing to free objects >>like Images or Sprites causes exceptions to eventually be thrown. >>Calling the built-in member dispose() causes access violations, so I >>assume it's not for programmer use. >> >>Howev

Re: Invoke garbage collector? (Scoped Instances)

2011-02-09 Thread Sean Eskapp
== Quote from Trass3r (u...@known.com)'s article > > However, I need the resources to be freed more quickly than the GC is > > apparently doing > You could use scoped instances if you need to clean them up soon after > creation. To my knowledge, these are being removed from the language, and so, c

Re: Invoke garbage collector? (Scoped Instances)

2011-02-09 Thread Jonathan M Davis
On Wednesday 09 February 2011 17:52:47 Sean Eskapp wrote: > == Quote from Trass3r (u...@known.com)'s article > > > > However, I need the resources to be freed more quickly than the GC is > > > apparently doing > > > > You could use scoped instances if you need to clean them up soon after > > crea