axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From AUDON, Fréderic <frederic.au...@ciel.com>
Subject guththila_create_xml_stream_writer
Date Thu, 01 Oct 2009 13:06:37 GMT
Hi,
	
I try to run the samples guththila.
The sample code crash guththila :
    writer = guththila_create_xml_stream_writer( "toto.xml", env );
    guththila_write_start_element( writer, "two", env );
	
I think it misses code in guththila_create_xml_stream_writer.

I add 

	if (!guththila_buffer_init(&wr->buffer, GUTHTHILA_BUFFER_DEF_SIZE, env))
	{
		AXIS2_FREE(env->allocator, wr);
		return NULL;
	}

and 

#ifdef GUTHTHILA_XML_WRITER_TOKEN
	if (!guththila_tok_list_init(&wr->tok_list, env))
	{
		guththila_stack_un_init(&wr->element, env);
		guththila_stack_un_init(&wr->namesp, env);
		AXIS2_FREE(env->allocator, wr);
		return NULL;
	}
#endif

in guththila_create_xml_stream_writer for fix.

Regards,
Frédéric

Mime
View raw message