I have a Windows Mobile application running on a Motorola mobile device (Windows Mobile 6.5, .NET Compact Framework 3.5). The application communicates with a WCF web service (http binding, XML format, hosted in a windows service (on the server side that is)).
What I am noticing is that, on the client side, every time I make a call to the web service, the application takes a chunk of the memory and it never releases it back to the app. The amount of data transferred in each call doesn't seem to make a difference in how much "bite" is taken out of the memory. Now, we're only talking about maybe 500 KB each time, but when dealing with a mobile device that only has 250 MB of memory in the first place and it limits the amount of available memory per application, you run out of memory rather quickly and you start getting OutOfMemoryExceptions in the oddest places. I don't think that it's any other part of my application, because even if all I do is start the app and do nothing else but fire the same web service call over and over again (with virtually no data being passed in each call (other than WCF overhead)), eventually the application runs out of memory.
Has anyone else seen this before? If yes, what's going on and how do I fix it?
This problem is making the application completely unusable; I am in desperate need of help!
Thanks in advance!!!!