your crash wasnt due to resizing a datafile - thats a perfectly normal thing to do and used everywhere