This question is locked. New answers and comments are not allowed.
Hi there,
I've in my silverlight application a lot of memory leaks due telerik object. One thing that I can try is using my domainContext with using statement clause, like this:
using (SGADomainContext contexto = new SGADomainContext())
{
LoadOperation<Entidades> loadOp = contexto.Load(contexto.GetEntidadesPorLoginQuery(loginUtilizador, passEncriptada, false), LoadBehavior.RefreshCurrent, LoginLoadedCallback, true);
}
However I can´t use, VS give me this error: type used in a using statement must be implicitly convertible to 'System.IDisposable'.
Any idea how solve this?
Thanks in advance,
Nelson Silva
I've in my silverlight application a lot of memory leaks due telerik object. One thing that I can try is using my domainContext with using statement clause, like this:
using (SGADomainContext contexto = new SGADomainContext())
{
LoadOperation<Entidades> loadOp = contexto.Load(contexto.GetEntidadesPorLoginQuery(loginUtilizador, passEncriptada, false), LoadBehavior.RefreshCurrent, LoginLoadedCallback, true);
}
However I can´t use, VS give me this error: type used in a using statement must be implicitly convertible to 'System.IDisposable'.
Any idea how solve this?
Thanks in advance,
Nelson Silva