diff --git a/tests/interactive/output.cpp b/tests/interactive/output.cpp index 6d6294abb8..ff462c2176 100644 --- a/tests/interactive/output.cpp +++ b/tests/interactive/output.cpp @@ -377,7 +377,8 @@ void InteractiveOutputTestCase::TestStackWalk() #if wxUSE_STACKWALKER wxPuts(wxT("*** Testing wxStackWalker ***")); - StackDump dump(wxTheApp->argv[0].utf8_str()); + wxString progname(wxTheApp->argv[0]); + StackDump dump(progname.utf8_str()); dump.Walk(); wxPuts("\n");