diff --git a/MP-TAB3/Components/CmpFooter.razor.cs b/MP-TAB3/Components/CmpFooter.razor.cs index 51794718..eecdb6cc 100644 --- a/MP-TAB3/Components/CmpFooter.razor.cs +++ b/MP-TAB3/Components/CmpFooter.razor.cs @@ -124,6 +124,11 @@ namespace MP_TAB3.Components protected void StartTimer() { + if (aTimer != null) + { + aTimer.Stop(); + aTimer.Dispose(); + } int tOutPeriod = 1000; aTimer = new System.Timers.Timer(tOutPeriod); aTimer.Elapsed += ElapsedTimer; diff --git a/MP-TAB3/Components/MseSampler.razor.cs b/MP-TAB3/Components/MseSampler.razor.cs index bad951a8..5e75615a 100644 --- a/MP-TAB3/Components/MseSampler.razor.cs +++ b/MP-TAB3/Components/MseSampler.razor.cs @@ -92,6 +92,11 @@ namespace MP_TAB3.Components protected void StartTimer() { + if (aTimer != null) + { + aTimer.Stop(); + aTimer.Dispose(); + } aTimer = new System.Timers.Timer(fastRefreshMs); aTimer.Elapsed += ElapsedTimer; aTimer.Enabled = true; diff --git a/MP-TAB3/Components/ParamsMan.razor.cs b/MP-TAB3/Components/ParamsMan.razor.cs index 7e087bcd..27b00ecc 100644 --- a/MP-TAB3/Components/ParamsMan.razor.cs +++ b/MP-TAB3/Components/ParamsMan.razor.cs @@ -121,7 +121,11 @@ namespace MP_TAB3.Components protected void StartTimer() { - //int.TryParse(Configuration["ReloadStatusTimer"], out tOutPeriod); + if (aTimer != null) + { + aTimer.Stop(); + aTimer.Dispose(); + } aTimer = new System.Timers.Timer(dtTimerTabParam); aTimer.Elapsed += ElapsedTimer; aTimer.Enabled = true; diff --git a/MP-TAB3/MP-TAB3.csproj b/MP-TAB3/MP-TAB3.csproj index 1845fa90..3067e8e9 100644 --- a/MP-TAB3/MP-TAB3.csproj +++ b/MP-TAB3/MP-TAB3.csproj @@ -3,7 +3,7 @@ net6.0 enable - 6.16.2401.2616 + 6.16.2401.2618 enable MP_TAB3 diff --git a/MP-TAB3/Pages/StatusMap.razor.cs b/MP-TAB3/Pages/StatusMap.razor.cs index 61856a26..fdaf2a46 100644 --- a/MP-TAB3/Pages/StatusMap.razor.cs +++ b/MP-TAB3/Pages/StatusMap.razor.cs @@ -9,8 +9,18 @@ using System.Runtime.ExceptionServices; namespace MP_TAB3.Pages { - public partial class StatusMap: IDisposable + public partial class StatusMap : IDisposable { + #region Public Methods + + public void Dispose() + { + ListMSE = null; + GC.Collect(); + } + + #endregion Public Methods + #region Public Classes public class WindowDimension @@ -23,12 +33,6 @@ namespace MP_TAB3.Pages #endregion Public Properties } - public void Dispose() - { - ListMSE = null; - GC.Collect(); - } - #endregion Public Classes #region Protected Fields @@ -81,12 +85,6 @@ namespace MP_TAB3.Pages #region Protected Methods - protected async Task getWDim() - { - var dimension = await JSRuntime.InvokeAsync("getWindowDimensions"); - Height = dimension.Height; - Width = dimension.Width; - } /// /// calcola num blocchi max data dimensione larghezza /// @@ -108,6 +106,13 @@ namespace MP_TAB3.Pages return answ; } + protected async Task getWDim() + { + var dimension = await JSRuntime.InvokeAsync("getWindowDimensions"); + Height = dimension.Height; + Width = dimension.Width; + } + protected override async Task OnAfterRenderAsync(bool firstRender) { if (firstRender) @@ -153,8 +158,6 @@ namespace MP_TAB3.Pages private static NLog.Logger Log = LogManager.GetCurrentClassLogger(); - private static System.Timers.Timer slowTimer = new System.Timers.Timer(300000); - #endregion Private Fields #region Private Properties diff --git a/MP-TAB3/Resources/ChangeLog.html b/MP-TAB3/Resources/ChangeLog.html index 2ea78b00..1b530b44 100644 --- a/MP-TAB3/Resources/ChangeLog.html +++ b/MP-TAB3/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo MAPOSPEC -

Versione: 6.16.2401.2616

+

Versione: 6.16.2401.2618


Note di rilascio: