I'm curious, why would a timer checking the exact date/time every second cause an increase in memory according to task manager every time it ticks?
That increases memory usage by about 6-8kb per tick (second). I'm developing a program that is checking the current system time to other times and I have it changing every second. Normally if this program wasn't run for very long that small amount would be minor, however I am developing it to stay open/active on a reporting server to run reports at a specific time. Is there a way to do this without the memory increase? Thanks for help in advance.
VB.NET:
Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
Label1.Text = Date.Now
End Sub
That increases memory usage by about 6-8kb per tick (second). I'm developing a program that is checking the current system time to other times and I have it changing every second. Normally if this program wasn't run for very long that small amount would be minor, however I am developing it to stay open/active on a reporting server to run reports at a specific time. Is there a way to do this without the memory increase? Thanks for help in advance.