#23 Crash when trying to open a script

open
nobody
defect (8)
5
2014-12-21
2012-02-23
No

After clicking cancel on the "Traing PLC Simulation" file browser, the program crashed. Subsequent attempt to press the "Traing PLC Simulation" "..." button causes the program to crash immediately.

I use version 8.20, Windows 7 64-bit.

Discussion

  • James Slootweg

    James Slootweg - 2013-10-03

    I get this to on Windows 7. I have resolved it myself by checking out the latest code and fixing it. You may wish to incorporate my fix or something similar.

    FileEditCtrl.cpp - void CFECFileDialog::OnFileNameChange()

    Changed

    nfiles = CommDlg_OpenSave_GetSpec(GetParent()->m_hWnd, &dummy_buffer, 1);
    

    To

    CWnd* wnd = GetParent();
    if(wnd == NULL)
    {
        return;
    }
    nfiles = CommDlg_OpenSave_GetSpec(wnd->m_hWnd, &dummy_buffer, 1);
    
     
  • Doug Lyons

    Doug Lyons - 2014-12-21

    James,

    I wanted you to know that I tried this and it worked great for me.

    Thanks for sharing this.

     

Log in to post a comment.