modificato metodo init char array...
This commit is contained in:
@@ -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
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user