mScan in dialog,h and file.h is not the same object.