Click here to Skip to main content
15,886,963 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Problem with sending fax from windows service Pin
tosch10-Jul-11 21:38
tosch10-Jul-11 21:38 
AnswerRe: Problem with sending fax from windows service Pin
Dave Kreskowiak11-Jul-11 1:10
mveDave Kreskowiak11-Jul-11 1:10 
AnswerRe: Problem with sending fax from windows service Pin
Ian Gillies26-Aug-11 14:54
Ian Gillies26-Aug-11 14:54 
QuestionCannot connect to Access DB after installing Teradata Pin
Soulus836-Jul-11 10:28
Soulus836-Jul-11 10:28 
AnswerRe: Cannot connect to Access DB after installing Teradata Pin
Roger Wright6-Jul-11 12:23
professionalRoger Wright6-Jul-11 12:23 
AnswerRe: Cannot connect to Access DB after installing Teradata Pin
Shameel11-Jul-11 21:37
professionalShameel11-Jul-11 21:37 
QuestionMessage Removed Pin
6-Jul-11 5:16
professionalN_tro_P6-Jul-11 5:16 
AnswerRe: Can an Action cause a Memory Leak like an Event Handler PinPopular
Ian Shlasko6-Jul-11 5:39
Ian Shlasko6-Jul-11 5:39 
Collin Jasnoch wrote:
<layer>Say I have an object (Poster) with an event, and another object (Listener) is listening to that event (i.e. a Weak Reference) and has the delegate locally.

Unless you code it up that way explicitly, an event hook is a strong reference, not a weak one.

As for hooking the delegate itself, yes, as long as object A has a reference to object B, it'll keep object B alive.

You can avoid this by using a WeakReference in the variable behind the DoStuff property. You'll just have to verify that the reference is still alive before attempting to call it.
Proud to have finally moved to the A-Ark. Which one are you in?
Author of the Guardians Saga (Sci-Fi/Fantasy novels)

GeneralRe: Can an Action cause a Memory Leak like an Event Handler Pin
#realJSOP6-Jul-11 9:51
mve#realJSOP6-Jul-11 9:51 
AnswerRe: Can an Action cause a Memory Leak like an Event Handler Pin
MicroVirus12-Jul-11 5:53
MicroVirus12-Jul-11 5:53 
AnswerRe: Can an Action cause a Memory Leak like an Event Handler Pin
RobCroll15-Jul-11 7:08
RobCroll15-Jul-11 7:08 
QuestionIncluding CSS Stylesheet file from HTML When Used as a Resource [modified] Pin
JonathanCarling4-Jul-11 3:37
JonathanCarling4-Jul-11 3:37 
AnswerRe: Including CSS Stylesheet file from HTML When Used as a Resource Pin
Shameel4-Jul-11 4:41
professionalShameel4-Jul-11 4:41 
GeneralRe: Including CSS Stylesheet file from HTML When Used as a Resource Pin
JonathanCarling4-Jul-11 5:26
JonathanCarling4-Jul-11 5:26 
GeneralRe: Including CSS Stylesheet file from HTML When Used as a Resource Pin
Shameel4-Jul-11 7:48
professionalShameel4-Jul-11 7:48 
AnswerRe: Including CSS Stylesheet file from HTML When Used as a Resource Pin
#realJSOP6-Jul-11 10:02
mve#realJSOP6-Jul-11 10:02 
QuestionPlugins for Application Pin
Xmen Real 27-Jun-11 7:07
professional Xmen Real 27-Jun-11 7:07 
AnswerRe: Plugins for Application Pin
#realJSOP27-Jun-11 15:43
mve#realJSOP27-Jun-11 15:43 
GeneralRe: Plugins for Application Pin
Xmen Real 27-Jun-11 15:56
professional Xmen Real 27-Jun-11 15:56 
GeneralRe: Plugins for Application Pin
Not Active28-Jun-11 1:48
mentorNot Active28-Jun-11 1:48 
GeneralRe: Plugins for Application Pin
Xmen Real 28-Jun-11 1:50
professional Xmen Real 28-Jun-11 1:50 
GeneralRe: Plugins for Application Pin
Not Active28-Jun-11 2:15
mentorNot Active28-Jun-11 2:15 
AnswerRe: Plugins for Application PinPopular
Not Active28-Jun-11 1:47
mentorNot Active28-Jun-11 1:47 
GeneralRe: Plugins for Application Pin
Pete O'Hanlon28-Jun-11 3:33
mvePete O'Hanlon28-Jun-11 3:33 
GeneralRe: Plugins for Application Pin
Not Active28-Jun-11 3:37
mentorNot Active28-Jun-11 3:37 

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.