Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Browse Files menu in ReEvaluation causes program to crash #20
For some reason it throws a null pointer exception in CFECFileDialog::OnFileNameChange() where ever there is a reference to GetParent(). E.g.:
UINT nfiles = CommDlg_OpenSave_GetSpec(GetParent()->m_hWnd, &dummy_buffer, 1);
Passing in 'this' for parent in fileDialog constructor did not help. Changed GetParent()->m_hWnd to just m_hWnd and that seemed to do the trick.
Seems the fix will work only for a small number of files. The CommDlg functions return 0 when m_hWnd is used instead of GetParent()->m_hWnd. Yet, the latter cannot be done. This article has some useful info: