I had made a windows service following this article - https://msdn.microsoft.com/en-us/magazine/mt703436.aspx. All works fine and I felt like I’m a real programmer). But I have a problem - this service consumes too much memory. In fact, for about 6 hours service consumed 3 Gb memory and I think it’s not very good. Maybe anyone faced with this problem and resolve it? Maybe someone could help me? I put my code here - http://paste.ubuntu.com/24169803/.
Thanks in advance.