Re: xmalloc string functions



Ian Collins wrote:
Yevgen Muntyan wrote:
Ian Collins wrote:
Randy Howard wrote:
On Sun, 27 Jan 2008 09:49:42 -0600, Kelsey Bjarnason wrote:
One wonders how many applications they've screwed over with that bit
of asinine idiocy.
Sure. That's why seeing an app crash on a linux box is "no big
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.

<OT>Unlike some other platforms, Linux and UNIX platforms in general
offer the user a choice of desktop environments. One popular
alternative is written in TOL, which is better equipped to manage
dynamic memory</OT>
You mean those application will abort in the unexpected exception
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
.



Relevant Pages

  • Re: Garmin GPS V problem and replacement suggestions
    ... It is far better than the older versions with built in memory. ... I don't think you'll miss the horizontal/vertical options for the screen. ... line between car GPS and hiking GPS? ... site it seemed like they don't make units like that anymore. ...
    (sci.geo.satellite-nav)
  • Re: xmalloc string functions
    ... It's also one of the reasons I don't run Linux ... anymore except when I absolutely have to. ... memory allocation failures and take appropriate action. ...
    (comp.lang.c)
  • Re: What mice work with RiscPCs ?
    ... and we used to sell them, my memory must be getting bad. ... Castle do them anymore. ...
    (comp.sys.acorn.hardware)
  • Re: Some of the correspondence I had with Som-Ock
    ... This place is only in our memory, our milieu is no longer ... there anymore. ... was digged by a vitnamese way back to the late 40's, ...
    (soc.culture.laos)