On 8 June 2011 12:09, Rony Paul wrote: > > could you please tell me what type of error is the following code returning? It looks as though you're dereferencing a null pointer. Find out which line it segfaults on and add checks to ensure the relevant tree variable is not null before using it.