Click here to Skip to main content
15,891,184 members
Home / Discussions / C#
   

C#

 
AnswerRe: Memory Leak? Pin
David198730-Mar-11 9:47
David198730-Mar-11 9:47 
AnswerRe: Memory Leak? Pin
Luc Pattyn30-Mar-11 9:56
sitebuilderLuc Pattyn30-Mar-11 9:56 
GeneralRe: Memory Leak? Pin
SledgeHammer0130-Mar-11 10:13
SledgeHammer0130-Mar-11 10:13 
GeneralRe: Memory Leak? Pin
Luc Pattyn30-Mar-11 10:18
sitebuilderLuc Pattyn30-Mar-11 10:18 
GeneralRe: Memory Leak? Pin
Alaric_30-Mar-11 10:19
professionalAlaric_30-Mar-11 10:19 
GeneralRe: Memory Leak? Pin
SledgeHammer0130-Mar-11 10:44
SledgeHammer0130-Mar-11 10:44 
GeneralRe: Memory Leak? Pin
David198730-Mar-11 20:21
David198730-Mar-11 20:21 
AnswerRe: Memory Leak? Pin
Luc Pattyn30-Mar-11 11:55
sitebuilderLuc Pattyn30-Mar-11 11:55 
OK, the added code does not refer to client at all, so it still gets collected properly in the end.

The new information is that there is unmanaged memory involved. To deal with that, you should call Dispose(), or apply the using statement, on objects you no longer need if their class offers a Dispose() method; that includes all WinForms Controls, Fonts, Pens, Brushes, Graphics, etc (except for the ones handed to you, e.g. PaintEventArgs.Graphics). I can't help you out in detail, I also am not familiar with Telerik controls. However let's say ServiceClient is a Panel, then you need to call its Dispose().

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

AnswerRe: Memory Leak? Pin
Pete O'Hanlon30-Mar-11 12:04
mvePete O'Hanlon30-Mar-11 12:04 
GeneralRe: Memory Leak? Pin
Luc Pattyn30-Mar-11 12:10
sitebuilderLuc Pattyn30-Mar-11 12:10 
GeneralRe: Memory Leak? Pin
Pete O'Hanlon30-Mar-11 12:59
mvePete O'Hanlon30-Mar-11 12:59 
GeneralRe: Memory Leak? Pin
Luc Pattyn30-Mar-11 13:22
sitebuilderLuc Pattyn30-Mar-11 13:22 
GeneralRe: Memory Leak? Pin
Pete O'Hanlon30-Mar-11 20:22
mvePete O'Hanlon30-Mar-11 20:22 
GeneralRe: Memory Leak? Pin
Alaric_31-Mar-11 3:59
professionalAlaric_31-Mar-11 3:59 
GeneralRe: Memory Leak? Pin
Pete O'Hanlon31-Mar-11 9:54
mvePete O'Hanlon31-Mar-11 9:54 
QuestionSecurityNegotiationException: Could not establish trust relationship for the SSL/TLS secure channel with authority Pin
Le centriste30-Mar-11 4:04
Le centriste30-Mar-11 4:04 
AnswerRe: SecurityNegotiationException: Could not establish trust relationship for the SSL/TLS secure channel with authority Pin
Pete O'Hanlon30-Mar-11 4:40
mvePete O'Hanlon30-Mar-11 4:40 
GeneralRe: SecurityNegotiationException: Could not establish trust relationship for the SSL/TLS secure channel with authority Pin
Le centriste30-Mar-11 4:56
Le centriste30-Mar-11 4:56 
GeneralRe: SecurityNegotiationException: Could not establish trust relationship for the SSL/TLS secure channel with authority Pin
Pete O'Hanlon30-Mar-11 5:12
mvePete O'Hanlon30-Mar-11 5:12 
QuestionRe: SecurityNegotiationException: Could not establish trust relationship for the SSL/TLS secure channel with authority Pin
Le centriste30-Mar-11 5:25
Le centriste30-Mar-11 5:25 
AnswerRe: SecurityNegotiationException: Could not establish trust relationship for the SSL/TLS secure channel with authority Pin
Pete O'Hanlon30-Mar-11 6:00
mvePete O'Hanlon30-Mar-11 6:00 
JokeRe: SecurityNegotiationException: Could not establish trust relationship for the SSL/TLS secure channel with authority Pin
Soulus8330-Mar-11 13:22
Soulus8330-Mar-11 13:22 
QuestionHow to write a class, where one of its attributes is an Array? Pin
nstk30-Mar-11 2:23
nstk30-Mar-11 2:23 
AnswerRe: How to write a class, where one of its attributes is an Array? PinPopular
Pete O'Hanlon30-Mar-11 2:30
mvePete O'Hanlon30-Mar-11 2:30 
GeneralRe: How to write a class, where one of its attributes is an Array? Pin
nstk3-Apr-11 23:02
nstk3-Apr-11 23:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.