I have a small script and I have no Idea what is going on wrong. After 24h the application is frozen, I monitored the task manager and identified that the memory usage is growing and growing.
The script is something like a HUB. It received datas from other Applications (over socket) every minute and deploy this informations to mobile client applications (also with socket). But every minute the mem usage is growing for 200-800k...
Example, every minute a server is contacting the hub and transfer informations:
1) My first Idea was that there is a growing Variable. I startet to clean up all Variables every time but it does not help.accept connections on port 9999 with message "verbindung_client_read"
...
...
get the informations from server...
write it to sqlite DB
...
---
write the informations to mobile client
2) I checked every loop, case etc , but the script is clean
3) DBCons are open, closed etc. No issue here. Same with Sockets. After the communication the socket is closed.
Any Ideas how to clean up the memory?
Thanks
Stefan