[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help to design ui for jabber client:)

From: Thomas Dickey
Subject: Re: help to design ui for jabber client:)
Date: Sun, 2 Dec 2007 14:53:35 -0500 (EST)

On Sun, 2 Dec 2007, Avery Pennarun wrote:

On 02/12/2007, worwan <address@hidden> wrote:
But i guess i
have somewhere some memory issue..cos i figured out, that  cmd_form =
new_form(cmd_field); returns null...and errno is set to -4 =>

Try using valgrind if you want to search for memory errors.  It's
unlikely that this is your problem, however, or it would just crash
rather than politely giving you error codes.

I don't think new_form() sets errno, according to the man page, so
looking at its value is probably misleading.

       The  function  new_form returns NULL on error.  It sets errno according
       to the function's success:
            System error occurred, e.g., malloc failure.

(why it's getting a malloc problem - I don't know)

Thomas E. Dickey

reply via email to

[Prev in Thread] Current Thread [Next in Thread]