modificato metodo init char array...

This commit is contained in:
Samuele E. Locatelli
2017-11-02 17:15:50 +01:00
parent abf66653e2
commit cd5703e303
3 changed files with 13 additions and 7 deletions
+6 -2
View File
@@ -1531,8 +1531,12 @@ Namespace CNC
Dim nPathIdx As Integer
Dim nReturn As Integer
Dim prgName As Char()
prgName = ""
Dim prgName(244) As Char
' Fill array with a character.
For index As Integer = 0 To 243
prgName(index) = ""
Next
'leggo il numero del processo attivo
nPathIdx = GetActivePath()
+3 -2
View File
@@ -9,8 +9,9 @@
<add key="enableTest" value="true" />
<add key="enableContapezzi" value="true" />
<add key="enableMode" value="true" />
<add key="doMemDump" value="true" />
<add key="doSampleMemory" value="true" />
<add key="doMemDump" value="false" />
<add key="doSampleMemory" value="false" />
<add key="enableNewFunc" value="true" />
<!--gestione TIMERS e periodi multipli x thread lenti-->
<add key="startTimerMs" value="250" />
<!-- ciclo corto x invio a server: ms -->
+4 -3
View File
@@ -291,17 +291,18 @@ namespace IOB_WIN
lg.Error(exc, "Errore in getPrgName");
}
// se in test butto fuori nUOVA versione prgName...
if(utils.CRB("enableTest"))
if(utils.CRB("enableNewFunc"))
{
// recupero NUOVO prgName...
try
{
string nomeMain = utils.purgedChar2String(FANUC_ref.getPrgNameMain());
char[] newMainName = FANUC_ref.getPrgNameMain();
string nomeMain = utils.purgedChar2String(newMainName);
lg.Info("PROG_MAIN: {0}", nomeMain);
}
catch(Exception exc)
{
lg.Error(exc, "Eccezione in recupero PRG NAME MAIN");
lg.Error(string.Format("Eccezione in recupero PRG NAME MAIN:{0}{1}", Environment.NewLine, exc));
}
}
return prgName;