Migliorata gestione istanze multiple

git-svn-id: svn://10.65.10.50/branches/R_10_00@22927 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2014-03-07 14:41:44 +00:00
parent 195b6a3fb2
commit 526ec34d8a

View File

@ -38,8 +38,11 @@ void TMainApp::OnTimer(wxTimerEvent& evt)
bool TMainApp::OnInit()
{
const wxFileName strWrk = argv[0];
const wxString strApp = strWrk.GetName().Lower();
wxFileName strWrk = argv[0];
//const wxString strApp = strWrk.GetName().Lower();
strWrk.MakeAbsolute();
wxString strApp = strWrk.GetFullPath().Lower();
strApp.Replace("\\", "_"); strApp.Replace("/", "_"); strApp.Replace(":", "_");
m_sic = new wxSingleInstanceChecker(strApp);
xvt_vobj_set_attr(NULL_WIN, ATTR_APPL_ALREADY_RUNNING, m_sic->IsAnotherRunning());