I did a test with this code. This is a simple connection to a TCP server with status feedback. Nothing else.
Still, steadily increasing memory usage when running the program.
Homegenie use of memory:
2015.07.17 12:46 56 MB
2015.07.17 20:40 225 MB
If the program not running, the memory usage 41-43 MB continuously.
var remoteServer = "10.1.1.131";
var remotePort = 6000;
var NetworkRelaysModules = Modules.InDomain("HomeAutomation.NetworkRelays");
Action<bool> HandleStatusChanged = (bool connected) =>
{
Program.Notify("TCP Client", "Connected = " + connected);
};
Program.Notify("TCP Client", "Starting");
TcpClient
.OnStatusChanged( HandleStatusChanged )
.Service( remoteServer )
.Connect( remotePort );
Program.Notify("TCP Client", "Started");
Program.Parameter("Status.Level").Value = "1";
Program.GoBackground();