Fix init classi di base x compilazione senza null vari
This commit is contained in:
@@ -102,12 +102,12 @@ namespace IOB_UT_NEXT.Iob
|
||||
/// <summary>
|
||||
/// Collettore di tutte le variabili scadenza DateTime
|
||||
/// </summary>
|
||||
public DateTimeHelper DtHelp;
|
||||
public DateTimeHelper DtHelp = new DateTimeHelper();
|
||||
|
||||
/// <summary>
|
||||
/// Collettore di tutte le Queue gestite
|
||||
/// </summary>
|
||||
public QueueHelper QHelp;
|
||||
public QueueHelper QHelp = new QueueHelper();
|
||||
|
||||
/// <summary>
|
||||
/// Abilitazione lettura PrgName
|
||||
|
||||
@@ -69,6 +69,11 @@ namespace IOB_WIN_FORM.Iob
|
||||
// init oggetto TCMan
|
||||
var tcMan = new TCMan(IobConfNew.TCDataConf.Lambda, IobConfNew.TCDataConf.MaxDelayFactor, IobConfNew.TCDataConf.MaxIncrPz);
|
||||
|
||||
// aggiungo altri defaults
|
||||
setDefaults(true);
|
||||
// imposta valori memoria (e resetta parametri su server)
|
||||
setParamPlc();
|
||||
|
||||
// init communication services
|
||||
commService = new CommunicationService(IobConfNew, redisMan);
|
||||
machineCommService = new MachineCommunicationService(IobConfNew, tcMan, memMap);
|
||||
@@ -87,10 +92,6 @@ namespace IOB_WIN_FORM.Iob
|
||||
// i last li avvio a VUOTI... x evitare errore mancata riscrittura SIMEC che ha memorie NON ritentive
|
||||
lastProdData = new Dictionary<string, string>();
|
||||
//lastProdData = new Dictionary<string, string>(currProdData);
|
||||
// aggiungo altri defaults
|
||||
setDefaults(true);
|
||||
// imposta valori memoria (e resetta parametri su server)
|
||||
setParamPlc();
|
||||
|
||||
// checkLogDir x shrink!
|
||||
checkShrinkDir();
|
||||
@@ -9123,9 +9124,9 @@ namespace IOB_WIN_FORM.Iob
|
||||
{
|
||||
string codIob = IOBConfFull.General.FilenameIOB;
|
||||
bool useRedis = IOBConfFull.General.EnabRedisQue;
|
||||
QHelp.QueueIN.Dispose();
|
||||
if(QHelp.QueueIN!=null) QHelp.QueueIN.Dispose();
|
||||
QHelp.QueueIN = new DataQueue(codIob, "QueueIN", useRedis, redisMan);
|
||||
QHelp.QueueSrvResp.Dispose();
|
||||
if (QHelp.QueueSrvResp != null) QHelp.QueueSrvResp.Dispose();
|
||||
QHelp.QueueSrvResp = new DataQueue(codIob, "QueueServResp", useRedis, redisMan);
|
||||
// no coda redis
|
||||
QHelp.QueueAlarm = new DataQueue(codIob, "QueueAlarm", false, redisMan);
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace IOB_WIN_FORM
|
||||
/// <summary>
|
||||
/// oggetto logging
|
||||
/// </summary>
|
||||
public static Logger lg;
|
||||
protected static Logger lg = LogManager.GetCurrentClassLogger();
|
||||
|
||||
/// <summary>
|
||||
/// Configurazione gerarchica completa (v 4.x.x.x)
|
||||
|
||||
Reference in New Issue
Block a user