natcap / invest

InVEST®: models that map and value the goods and services from nature that sustain and fulfill human life.
Apache License 2.0
159 stars 65 forks source link

Open Workspace button is enabled even when there is no workspace #1598

Closed davemfish closed 1 week ago

davemfish commented 1 month ago

If the invest run crashes before creating the workspace, then clicking the "Open Workspace" button will crash the Workbench.

This is a rare edge case, but can be reproduced by an error during python imports, for example a ModuleNotFoundError . Or by the case described in #1599

abhijeetsri13 commented 1 month ago

include

include

using namespace std;

int main() {

cout << "==============================================" << endl;
cout << "\t      Ranges of Character" << endl;
cout << "==============================================" << endl;
cout << "signed char    : " << CHAR_MIN << " to " << CHAR_MAX << endl;
cout << "unsigned char  : 0 to " << UCHAR_MAX << endl;

for (int i = 0; i <= UCHAR_MAX; i++) {
    cout << "==============================================" << endl;
    char c = 'A';
    cout << "Character : " << c << " ( " << int(c) << " ) " << endl;
    c = char(int(c + 1));
    cout << "Next Character : " << c << " ( " << int(c) << " ) " << endl;
    cout << "==============================================" << endl;
}

return 0;

}