• C++ MFC UpdateData() causes debug assertion failure

    From Nightfox to All on Mon Jul 11 16:47:47 2011
    I'm working on a C++ application for Windows written with MFC that someone
    else originally developed. It's a dialog-based application, and there are
    many places in the code where it calls UpdateData() to synchronize the values of member variables and controls on the GUI. When I compile and run the program in debug mode, these calls to UpdateData() cause a debug assertion failure, which cause the program to stop running. Does anyone know what might cause this and how it might be fixed?

    Nightfox