Patch level : 10.0
Files correlati : setup.exe Ricompilazione Demo : [ ] Commento : Aggiunta richiesta di attesa per la chiusura di BA0.EXE in quanto client molto lenti impiegano più di 10 secondi a terminarlo non riuscendo quindi ad aggiornarsi dal server. git-svn-id: svn://10.65.10.50/branches/R_10_00@21357 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
e343bfbf1b
commit
dcccd160b7
@ -1350,15 +1350,25 @@ bool CampoSetup::SystemRunning(const wxString& strAppName, wxString strMsg) cons
|
|||||||
wxSingleInstanceChecker sicProgram(strAppName);
|
wxSingleInstanceChecker sicProgram(strAppName);
|
||||||
|
|
||||||
strMsg.Replace(wxT("PRODUCT"), PRODUCT);
|
strMsg.Replace(wxT("PRODUCT"), PRODUCT);
|
||||||
|
strMsg += "\nSi desidera ritentare?";
|
||||||
|
|
||||||
int i;
|
bool bRunning = false;
|
||||||
for (i = 10; i > 0 && sicProgram.IsAnotherRunning(); i--)
|
bool bRetry = true;
|
||||||
wxSleep(1);
|
while (bRetry)
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
for (i = 10; i > 0 && sicProgram.IsAnotherRunning(); i--)
|
||||||
|
wxSleep(1);
|
||||||
|
|
||||||
if (i <= 0 && !strMsg.IsEmpty())
|
bRetry = false;
|
||||||
ErrorBox(strMsg);
|
bRunning = i <= 0;
|
||||||
|
if (bRunning && !strMsg.IsEmpty())
|
||||||
|
{
|
||||||
|
bRetry = YesNoBox(strMsg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return i <= 0;
|
return bRunning;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1426,7 +1436,7 @@ bool CampoSetup::CampoRunning() const
|
|||||||
|
|
||||||
if (sicProgram.IsAnotherRunning())
|
if (sicProgram.IsAnotherRunning())
|
||||||
{
|
{
|
||||||
strAppName << " è in esecuzione! E' necessario terminarlo utilizzando il Task Manager di Windows";
|
strAppName << " è in esecuzione! E' necessario terminarlo utilizzando il Task Manager di Windows.";
|
||||||
ErrorBox(strAppName);
|
ErrorBox(strAppName);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user