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

.NET (Core and Framework)

 
Questionnet framework installation Pin
siaswar3-Feb-11 11:27
siaswar3-Feb-11 11:27 
AnswerRe: net framework installation Pin
Roger Wright3-Feb-11 11:40
professionalRoger Wright3-Feb-11 11:40 
AnswerRe: net framework installation Pin
RobCroll3-Feb-11 13:21
RobCroll3-Feb-11 13:21 
AnswerRe: net framework installation Pin
Luc Pattyn3-Feb-11 14:06
sitebuilderLuc Pattyn3-Feb-11 14:06 
GeneralRe: net framework installation Pin
RobCroll3-Feb-11 14:51
RobCroll3-Feb-11 14:51 
AnswerRe: net framework installation Pin
Abhinav S4-Feb-11 0:14
Abhinav S4-Feb-11 0:14 
QuestionEventing and Memory leaks Pin
RobCroll2-Feb-11 5:04
RobCroll2-Feb-11 5:04 
AnswerRe: Eventing and Memory leaks Pin
Luc Pattyn2-Feb-11 5:17
sitebuilderLuc Pattyn2-Feb-11 5:17 
The question to ask yourself is: who is referencing whom?

In both cases it is classB's event member that holds a reference to classA.

Robert Croll wrote:
If the GC attempts to collect ClassB and finds ClassA subscribes to an event of ClassB. Will ClassB be removed from memory?


the subscription does not influence the life of classB, so it can be collected if it isn't alive anymore.


Robert Croll wrote:
If the GC attempts to collect ClassA and finds it subscribes to an event of ClassB. Will ClassA be removed from memory?


the subscription keeps classA alive for as long as classB is alive.

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: Eventing and Memory leaks Pin
Eddy Vluggen2-Feb-11 7:29
professionalEddy Vluggen2-Feb-11 7:29 
GeneralRe: Eventing and Memory leaks Pin
RobCroll2-Feb-11 14:02
RobCroll2-Feb-11 14:02 
GeneralRe: Eventing and Memory leaks Pin
Nitin Singh India26-Mar-11 10:11
Nitin Singh India26-Mar-11 10:11 
QuestionListview groups Pin
Herboren1-Feb-11 6:23
Herboren1-Feb-11 6:23 
AnswerRe: Listview groups Pin
Eddy Vluggen1-Feb-11 7:08
professionalEddy Vluggen1-Feb-11 7:08 
Question[Solved] DropDown doesn't drop down [modified] Pin
lukeer1-Feb-11 4:51
lukeer1-Feb-11 4:51 
AnswerRe: DropDown doesn't drop down Pin
Eddy Vluggen1-Feb-11 7:10
professionalEddy Vluggen1-Feb-11 7:10 
GeneralRe: DropDown doesn't drop down Pin
lukeer1-Feb-11 20:47
lukeer1-Feb-11 20:47 
GeneralRe: DropDown doesn't drop down Pin
Eddy Vluggen2-Feb-11 7:03
professionalEddy Vluggen2-Feb-11 7:03 
GeneralRe: DropDown doesn't drop down Pin
lukeer2-Feb-11 20:04
lukeer2-Feb-11 20:04 
GeneralRe: DropDown doesn't drop down Pin
Eddy Vluggen3-Feb-11 1:00
professionalEddy Vluggen3-Feb-11 1:00 
GeneralRe: DropDown doesn't drop down Pin
lukeer3-Feb-11 1:39
lukeer3-Feb-11 1:39 
GeneralRe: DropDown doesn't drop down Pin
Eddy Vluggen3-Feb-11 9:26
professionalEddy Vluggen3-Feb-11 9:26 
GeneralRe: DropDown doesn't drop down Pin
lukeer4-Feb-11 0:11
lukeer4-Feb-11 0:11 
QuestionHelp me in VB.NET Recording using DirectSound Pin
Mahdi Mansouri29-Jan-11 19:28
Mahdi Mansouri29-Jan-11 19:28 
AnswerRe: Help me in VB.NET Recording using DirectSound Pin
Henry Minute30-Jan-11 2:45
Henry Minute30-Jan-11 2:45 
QuestionStored procedures using Entity Framework Pin
jonatan_55628-Jan-11 7:45
jonatan_55628-Jan-11 7:45 

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.