|
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 => E_SYSTEM_ERROR.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.
RETURN VALUE The function new_form returns NULL on error. It sets errno according to the function's success: ... E_SYSTEM_ERROR System error occurred, e.g., malloc failure. (why it's getting a malloc problem - I don't know) -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net
[Prev in Thread] | Current Thread | [Next in Thread] |