jtseltmann
Programmer
I have a simple little application that I am using to check a folder for files and if any are found, it moves them to another location. The program has been set up to stay running and use the Sleep API. There isn't much complexity to it and inside the Sleep loop there is a DoEvents. There is a basic form that shows the status but doesn't have many controls or anything either.
My questions...
1. When started the application shows MEM usage about 1500K then it jumps up to about 7000K after the first scan (every 15 minutes). If I maximize the form and then minimize it the MEM usage goes back down to 1000K and starts creeping up. Why does this happen like this? I'd just like to understand it better.
2. Its is possible that the MEM usage climbs up and causes a server error/reboot? I have tested and watched it scanning every minute and the MEM usage never goes over 10,000K but the server admins want to blame it for recent errors.
I have checked all the code and all variables are set = Nothing to clean up and delete. There are no complex loops other then through the dir to check for files. Anyone have any thoughts on where to check or common leak problems? I have never had a "running all the time app" so I was just looking for some direction.
Thanks all!
My questions...
1. When started the application shows MEM usage about 1500K then it jumps up to about 7000K after the first scan (every 15 minutes). If I maximize the form and then minimize it the MEM usage goes back down to 1000K and starts creeping up. Why does this happen like this? I'd just like to understand it better.
2. Its is possible that the MEM usage climbs up and causes a server error/reboot? I have tested and watched it scanning every minute and the MEM usage never goes over 10,000K but the server admins want to blame it for recent errors.
I have checked all the code and all variables are set = Nothing to clean up and delete. There are no complex loops other then through the dir to check for files. Anyone have any thoughts on where to check or common leak problems? I have never had a "running all the time app" so I was just looking for some direction.
Thanks all!