Avatar of axnst2
axnst2
Flag for United States of America asked on

WCF Memory Issue

Hi Experts,

     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!!!!
WCF.NET Programming

Avatar of undefined
Last Comment
axnst2

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Bob Learned

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Pavel_Kudishin

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
axnst2

ASKER
This is not a memory issue caused by me.  What I'm trying to find out is if there are any built in WCF settings that would cache/ hold on to data until I tell it to clear it....or anything else like that...
axnst2

ASKER
The question has not really been resolved, but I want to clean this up.  Thanks for the attempt anyways!
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy