I did what you said. The warning messages aren't shown right now but the seg fault still happens!!