The forms showing configure/generate output, help, and the log were
allocated with new and never deleted. Make them local objects, and
point CurrentForm back to the main form as soon as they are closed so
the resize handler never sees a destroyed form.