Click here to Skip to main content
15,893,487 members
Home / Discussions / C#
   

C#

 
GeneralRe: How can I show an animated loding icon beside teh dropdown box when postback occurs. Pin
BobJanova26-Sep-11 3:32
BobJanova26-Sep-11 3:32 
GeneralRe: How can I show an animated loding icon beside teh dropdown box when postback occurs. Pin
Morgs Morgan26-Sep-11 3:56
Morgs Morgan26-Sep-11 3:56 
GeneralRe: How can I show an animated loding icon beside teh dropdown box when postback occurs. Pin
BobJanova26-Sep-11 5:54
BobJanova26-Sep-11 5:54 
QuestionWPF MVVM Dispose ViewModel Pin
Flowent5721-Sep-11 22:23
Flowent5721-Sep-11 22:23 
AnswerRe: WPF MVVM Dispose ViewModel Pin
Pete O'Hanlon22-Sep-11 2:22
mvePete O'Hanlon22-Sep-11 2:22 
GeneralRe: WPF MVVM Dispose ViewModel Pin
Daniel.Grondal22-Sep-11 21:13
Daniel.Grondal22-Sep-11 21:13 
GeneralRe: WPF MVVM Dispose ViewModel Pin
Pete O'Hanlon22-Sep-11 21:43
mvePete O'Hanlon22-Sep-11 21:43 
AnswerRe: WPF MVVM Dispose ViewModel Pin
BobJanova26-Sep-11 3:38
BobJanova26-Sep-11 3:38 
There are two possible reasons for this:

  1. They have been dereferenced, but the GC hasn't got around to picking them up yet. If your machine is not running short on memory, the .Net GC is very relaxed about bothering to reclaim unused memory. There's not much you can do about this, but you can put a button on your form that calls GC.Collect for memory checking purposes only and see if the view models get collected (you can give them a destructor that echoes to the console, again for debugging only, to find out).
  2. You're saving a reference to those view models somewhere. The obvious place is the tree view itself – are you putting a reference to the view model (or to a view class which is tied to the view model) into the Tag property of tree nodes which you never clear? Is the database loading process attaching event handlers which keep references to the view models alive?

QuestionREG: C# programs Pin
Member 825718321-Sep-11 17:52
Member 825718321-Sep-11 17:52 
AnswerRe: REG: C# programs Pin
Pravin Patil, Mumbai21-Sep-11 18:46
Pravin Patil, Mumbai21-Sep-11 18:46 
AnswerRe: REG: C# programs Pin
uspatel21-Sep-11 20:06
professionaluspatel21-Sep-11 20:06 
AnswerRe: REG: C# programs Pin
Richard MacCutchan21-Sep-11 21:39
mveRichard MacCutchan21-Sep-11 21:39 
AnswerRe: REG: C# programs Pin
Nagy Vilmos22-Sep-11 0:45
professionalNagy Vilmos22-Sep-11 0:45 
QuestionREG: C# tutorials Pin
Member 825718321-Sep-11 17:52
Member 825718321-Sep-11 17:52 
AnswerRe: REG: C# tutorials Pin
Luc Pattyn21-Sep-11 18:28
sitebuilderLuc Pattyn21-Sep-11 18:28 
GeneralRe: REG: C# tutorials Pin
Mycroft Holmes21-Sep-11 19:37
professionalMycroft Holmes21-Sep-11 19:37 
QuestionCreating an ActiveX control to work in PowerPoint Pin
Wjousts21-Sep-11 10:50
Wjousts21-Sep-11 10:50 
GeneralSettings not saving correctly. Pin
Herboren21-Sep-11 7:56
Herboren21-Sep-11 7:56 
GeneralRe: Settings not saving correctly. Pin
Eddy Vluggen21-Sep-11 9:51
professionalEddy Vluggen21-Sep-11 9:51 
GeneralRe: Settings not saving correctly. Pin
BillWoodruff22-Sep-11 4:18
professionalBillWoodruff22-Sep-11 4:18 
QuestionNamespace problem Pin
CCodeNewbie21-Sep-11 5:45
CCodeNewbie21-Sep-11 5:45 
AnswerRe: Namespace problem Pin
Luc Pattyn21-Sep-11 6:12
sitebuilderLuc Pattyn21-Sep-11 6:12 
AnswerRe: Namespace problem Pin
RichardGrimmer21-Sep-11 6:12
RichardGrimmer21-Sep-11 6:12 
AnswerRe: Namespace problem Pin
Richard MacCutchan21-Sep-11 6:16
mveRichard MacCutchan21-Sep-11 6:16 
GeneralRe: Namespace problem Pin
CCodeNewbie21-Sep-11 6:47
CCodeNewbie21-Sep-11 6:47 

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.