Click here to Skip to main content
15,892,746 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Blend: The positive side of the (complicated) coin. Pin
Pete O'Hanlon4-Apr-17 21:42
mvePete O'Hanlon4-Apr-17 21:42 
GeneralRe: Blend: The positive side of the (complicated) coin. Pin
Cornelius Henning5-Apr-17 0:47
professionalCornelius Henning5-Apr-17 0:47 
GeneralRe: Blend: The positive side of the (complicated) coin. Pin
Pete O'Hanlon5-Apr-17 0:59
mvePete O'Hanlon5-Apr-17 0:59 
GeneralRe: Blend: The positive side of the (complicated) coin. Pin
Cornelius Henning5-Apr-17 4:16
professionalCornelius Henning5-Apr-17 4:16 
GeneralRe: Blend: The positive side of the (complicated) coin. Pin
Pete O'Hanlon5-Apr-17 5:07
mvePete O'Hanlon5-Apr-17 5:07 
GeneralRe: Blend: The positive side of the (complicated) coin. Pin
Cornelius Henning5-Apr-17 5:19
professionalCornelius Henning5-Apr-17 5:19 
GeneralRe: Blend: The positive side of the (complicated) coin. Pin
Cornelius Henning6-Apr-17 5:06
professionalCornelius Henning6-Apr-17 5:06 
GeneralRe: Blend: The positive side of the (complicated) coin. Pin
Pete O'Hanlon6-Apr-17 5:29
mvePete O'Hanlon6-Apr-17 5:29 
This is sort of true. And yes, I have done a fair bit with this. The basic problem is that the weak event handler doesn't have a deterministic end point - in other words, it could still receive notifications after you think the object has gone out of scope. When it gets collected is entirely down to the GC, so you could have event handling going on unnecessarily past the point you think you're done with it. I've seen occasions where a VM is still receiving notifications after I thought it was out of scope, leading to some interesting memory spikes. In general, if you can control the lifetime of an event, you're better off doing that - this is a philosophy that I've stuck to in the 10 odd years I've been doing WPF.
This space for rent

GeneralRe: Blend: The positive side of the (complicated) coin. Pin
Cornelius Henning6-Apr-17 6:38
professionalCornelius Henning6-Apr-17 6:38 
GeneralWhy Blend Sucks Today Pin
Kevin Marois4-Apr-17 10:27
professionalKevin Marois4-Apr-17 10:27 
GeneralRe: Why Blend Sucks Today Pin
Mark_Wallace4-Apr-17 10:36
Mark_Wallace4-Apr-17 10:36 
GeneralRe: Why Blend Sucks Today Pin
Pete O'Hanlon4-Apr-17 10:38
mvePete O'Hanlon4-Apr-17 10:38 
GeneralRe: Why Blend Sucks Today Pin
Kevin Marois4-Apr-17 10:41
professionalKevin Marois4-Apr-17 10:41 
GeneralRe: Why Blend Sucks Today Pin
Pete O'Hanlon4-Apr-17 11:21
mvePete O'Hanlon4-Apr-17 11:21 
GeneralRe: Why Blend Sucks Today Pin
  Forogar  5-Apr-17 4:13
professional  Forogar  5-Apr-17 4:13 
GeneralRe: Why Blend Sucks Today Pin
OriginalGriff4-Apr-17 10:38
mveOriginalGriff4-Apr-17 10:38 
GeneralPettiness in IT Pin
Chris Maunder4-Apr-17 8:26
cofounderChris Maunder4-Apr-17 8:26 
GeneralRe: Pettiness in IT Pin
Nish Nishant4-Apr-17 8:28
sitebuilderNish Nishant4-Apr-17 8:28 
GeneralRe: Pettiness in IT Pin
Slacker0074-Apr-17 9:49
professionalSlacker0074-Apr-17 9:49 
GeneralRe: Pettiness in IT Pin
Nish Nishant4-Apr-17 9:57
sitebuilderNish Nishant4-Apr-17 9:57 
JokeRe: Pettiness in IT Pin
Rajesh R Subramanian4-Apr-17 13:36
professionalRajesh R Subramanian4-Apr-17 13:36 
GeneralRe: Pettiness in IT Pin
ZurdoDev4-Apr-17 8:45
professionalZurdoDev4-Apr-17 8:45 
GeneralRe: Pettiness in IT Pin
CPallini4-Apr-17 22:02
mveCPallini4-Apr-17 22:02 
GeneralRe: Pettiness in IT Pin
dandy724-Apr-17 9:51
dandy724-Apr-17 9:51 
GeneralRe: Pettiness in IT Pin
Mark_Wallace4-Apr-17 10:33
Mark_Wallace4-Apr-17 10:33 

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.