Hi,

If you set d to 0, you cannot access any member of d. I assume your program crashes when you run d->depth. What is the type of d? Why do you initialise it to be 0?

Ellen