Use VectorPtr (smart pointer) rather than Vector * for vector view dialog.