I don't know why this code make crash

Very thank you for some informations about it… It would be very helpful to me. Thank you.