You're probably derefrencing a NULL pointer. Without any code, diagnosis is impossible.