Re: [Pharo-project] react on low space

2011-02-02 Thread Schwab,Wilhelm K
ing. Bill From: pharo-project-boun...@lists.gforge.inria.fr [pharo-project-boun...@lists.gforge.inria.fr] On Behalf Of Max Leske [maxle...@gmail.com] Sent: Wednesday, February 02, 2011 3:16 AM To: Pharo-project@lists.gforge.inria.fr Subject: Re: [Pharo-project] react on low space Bill, I agr

Re: [Pharo-project] react on low space

2011-02-02 Thread Igor Stasenko
On 2 February 2011 09:16, Max Leske wrote: > Bill, > > I agree that it is important to at least know that there has been a low space > condition. But then again, if there is a low space watcher anyway, shouldn't > there be a way to register as a listener or something? > > Well, take a look at O

Re: [Pharo-project] react on low space

2011-02-02 Thread Max Leske
Bill, I agree that it is important to at least know that there has been a low space condition. But then again, if there is a low space watcher anyway, shouldn't there be a way to register as a listener or something? Igor, I haven't run your code yet but it looks exactly like what I was looki

Re: [Pharo-project] react on low space

2011-02-01 Thread Igor Stasenko
On 1 February 2011 14:11, Igor Stasenko wrote: > I think you can catch the OutOfMemory exception: > Oops. example was a bit wrong. something like that: [ | y x | y := x :=  Array new: 1000.   100 timesRepeat: [ x at: 1 put: (Array new: 1). x := x at: 1 ] ] on: OutOfMemory do: [:ex |  

Re: [Pharo-project] react on low space

2011-02-01 Thread Igor Stasenko
I think you can catch the OutOfMemory exception: [ x := Array new: 1000. 100 timesRepeat: [ x at: 1 put: (Array new: 1). x := x at: 1 ] ] on: OutOfMemory do: [:ex | ] On 1 February 2011 12:00, Max Leske wrote: > I'm bumping this message. I think it's an important question and c

Re: [Pharo-project] react on low space

2011-02-01 Thread Schwab,Wilhelm K
@lists.gforge.inria.fr Subject: Re: [Pharo-project] react on low space I'm bumping this message. I think it's an important question and could help other developers who might have the same problem one day. The low space watcher is cool but if you don't get the chance to actually look at the sta

Re: [Pharo-project] react on low space

2011-02-01 Thread Max Leske
I'm bumping this message. I think it's an important question and could help other developers who might have the same problem one day. The low space watcher is cool but if you don't get the chance to actually look at the stack it's pretty useless. Max On 30.01.2011, at 13:10, Max Leske wrote:

[Pharo-project] react on low space

2011-01-30 Thread Max Leske
Hi guys Is there an easy way to react on low space? Something like: SmalltalkImage isSpaceLow ifTrue: [ ] The reason I'm asking is that I have a background process running that causes a low space condition but I never get around to opening the debugger and the image crashes on me. So