Home » U++ Library support » U++ Core » [FEATURE REQUEST] could Alloc fail a little more gracefully?
[FEATURE REQUEST] could Alloc fail a little more gracefully? [message #17623] |
Sat, 23 August 2008 00:53  |
nixnixnix
Messages: 415 Registered: February 2007 Location: Kelowna, British Columbia
|
Senior Member |
|
|
Having being persuaded that new[] is bad and that Buffer::Alloc() is way better, I have hit a snag. When new[] fails it returns a NULL pointer but when Alloc fails it panics and we get an "Out of Memory" message. Is there a way to check if something can be built before we try please?
This is particularly awkward when creating a large Image. Is there a way to know ahead of time that it will fail and is it possible to make bigger ones under a 64bit OS?
Cheers,
Nick
|
|
|
 |
|
[FEATURE REQUEST] could Alloc fail a little more gracefully?
|
 |
|
Re: [FEATURE REQUEST] could Alloc fail a little more gracefully?
By: cas_ on Sat, 23 August 2008 20:10
|
 |
|
Re: [FEATURE REQUEST] could Alloc fail a little more gracefully?
By: mirek on Sun, 24 August 2008 16:31
|
 |
|
Re: [FEATURE REQUEST] could Alloc fail a little more gracefully?
By: mirek on Sun, 24 August 2008 16:36
|
 |
|
Re: [FEATURE REQUEST] could Alloc fail a little more gracefully?
|
 |
|
Re: [FEATURE REQUEST] could Alloc fail a little more gracefully?
By: mirek on Wed, 27 August 2008 12:49
|
 |
|
Re: [FEATURE REQUEST] could Alloc fail a little more gracefully?
By: amrein on Fri, 29 August 2008 19:52
|
 |
|
Re: [FEATURE REQUEST] could Alloc fail a little more gracefully?
|
 |
|
Re: [FEATURE REQUEST] could Alloc fail a little more gracefully?
By: mirek on Sat, 30 August 2008 20:20
|
 |
|
Re: [FEATURE REQUEST] could Alloc fail a little more gracefully?
By: zsolt on Sat, 30 August 2008 22:26
|
 |
|
Re: [FEATURE REQUEST] could Alloc fail a little more gracefully?
By: mirek on Sun, 31 August 2008 09:19
|
 |
|
Re: [FEATURE REQUEST] could Alloc fail a little more gracefully?
By: mirek on Sun, 31 August 2008 09:22
|
 |
|
Re: [FEATURE REQUEST] could Alloc fail a little more gracefully?
By: nixnixnix on Mon, 01 September 2008 20:36
|
Goto Forum:
Current Time: Sun Jul 20 01:01:36 CEST 2025
Total time taken to generate the page: 0.05134 seconds
|