Ethereal-dev: Re: [Ethereal-dev] Conversation Question part II

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxx>
Date: Fri, 13 Apr 2001 13:06:12 -0700 (PDT)
> So, I commented out the "if(tree)" statement (so the block runs every time 
> dissect_ipdc is called) and some of the RTP packets are decoded 
> appropriately, but some aren't.

Then either

	1) there's probably a bug somewhere in your dissector's code to
	   register a conversation dissector

or

	2) not all the captures have the stuff in the protocol you're
	   dissecting to tell the dissector to set up a conversation.

> Also, I get a lot of the following errors:
> 
> GLib-CRITICAL **: file gnode.c: line 216 (g_node_insert_before): assertion 
> `parent != NULL' failed.

Try putting all the "proto_tree_add_" calls inside "if (tree)", but
leave the rest of the stuff outside the tree.