Re: xmalloc string functions
- From: Yevgen Muntyan <muntyan@xxxxxxxxxxxxxxxxxxx>
- Date: Mon, 28 Jan 2008 03:14:46 GMT
Ian Collins wrote:
Yevgen Muntyan wrote:Ian Collins wrote:Randy Howard wrote:You mean those application will abort in the unexpected exceptionOn Sun, 27 Jan 2008 09:49:42 -0600, Kelsey Bjarnason wrote:<OT>Unlike some other platforms, Linux and UNIX platforms in generalOne wonders how many applications they've screwed over with that bitSure. That's why seeing an app crash on a linux box is "no big
of asinine idiocy.
surprise" anymore. It's also one of the reasons I don't run Linux
anymore except when I absolutely have to. It's not the kernel's
fault, but it is a problem with the normal way the platform is deployed.
offer the user a choice of desktop environments. One popular
alternative is written in TOL, which is better equipped to manage
dynamic memory</OT>
handler instead of inside g_malloc()? Sure, that's certainly better.
No, I mean the application can choose where in the call chain to catch
memory allocation failures and take appropriate action.
Sweet theory. And where is that, main()? Or where do you call the
function/method which starts the main loop? And, more importantly,
which so-much-better other-toolkit applications actually do this?
And, what of the above is impossible in C with glib (since we talk
theory here, not what applications really do)?
It can also use
appropriate techniques not available to a C application to manage the
lifetime of allocated memory, reducing the risk of leaks leading to
premature memory exhaustion.
True. The Other Language does have nice things. But then the
Other Language is better (if better) not because of some glib,
but because of the language features ;)
Yevgen
.
- Follow-Ups:
- Re: xmalloc string functions
- From: Ian Collins
- Re: xmalloc string functions
- References:
- xmalloc string functions
- From: Malcolm McLean
- Re: xmalloc string functions
- From: Yevgen Muntyan
- Re: xmalloc string functions
- From: Kelsey Bjarnason
- Re: xmalloc string functions
- From: Randy Howard
- Re: xmalloc string functions
- From: Ian Collins
- Re: xmalloc string functions
- From: Yevgen Muntyan
- Re: xmalloc string functions
- From: Ian Collins
- xmalloc string functions
- Prev by Date: Re: Linux Kernel Source
- Next by Date: Re: xmalloc string functions
- Previous by thread: Re: xmalloc string functions
- Next by thread: Re: xmalloc string functions
- Index(es):
Relevant Pages
|