[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[scew-users] scew_element_by_name error..
From: |
mach |
Subject: |
[scew-users] scew_element_by_name error.. |
Date: |
Wed, 14 Jul 2010 19:07:54 -0700 (PDT) |
Hello Dear;
I am testing the api of scew-1.1.2 as below using
example/scew_print/scew_print.c.
The example works fine without appended part.
But scew_print abort with a message like below when compiled with appeded part.
lt-scew_print: scew_print.c:189: main: Assertion `element != ((void *)0)'
failed.
Aborted
Could you let me know what is wrong or missed.
#inlcude <assert.h>
...
...
...
/* Frees the SCEW parser and reader. */
scew_reader_free (reader);
scew_parser_free (parser);
return EXIT_FAILURE;
}
// --------------------------------------------- appended from here
{
scew_element *element = NULL;
scew_element *root = NULL;
root = scew_tree_root (tree);
assert(root != NULL);
element = scew_element_by_name(root, _XT("trt:Profiles"));
assert(element != NULL);
}
// --------------------------------------------- appended to here
/* Prints full tree. */
scew_printf (_XT("\n*** Manual print:\n\n"));
print_element (scew_tree_root (tree), 0);
Thanks,
Best regards,
Mach
- [scew-users] scew_element_by_name error..,
mach <=