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

C#

 
AnswerRe: Cannot Get Any Values From A WCF REST Service Pin
Gerry Schmitz3-Jun-16 8:28
mveGerry Schmitz3-Jun-16 8:28 
GeneralRe: Cannot Get Any Values From A WCF REST Service Pin
MadDashCoder3-Jun-16 13:32
MadDashCoder3-Jun-16 13:32 
GeneralRe: Cannot Get Any Values From A WCF REST Service Pin
Gerry Schmitz3-Jun-16 19:15
mveGerry Schmitz3-Jun-16 19:15 
QuestionMonitor FTP and SFTP folders through FileSystemWatcher class Pin
amjegan2-Jun-16 21:05
amjegan2-Jun-16 21:05 
QuestionRe: Monitor FTP and SFTP folders through FileSystemWatcher class Pin
Richard MacCutchan2-Jun-16 21:41
mveRichard MacCutchan2-Jun-16 21:41 
AnswerRe: Monitor FTP and SFTP folders through FileSystemWatcher class Pin
amjegan2-Jun-16 21:55
amjegan2-Jun-16 21:55 
AnswerRe: Monitor FTP and SFTP folders through FileSystemWatcher class Pin
Garth J Lancaster2-Jun-16 21:52
professionalGarth J Lancaster2-Jun-16 21:52 
GeneralRe: Monitor FTP and SFTP folders through FileSystemWatcher class Pin
amjegan2-Jun-16 22:08
amjegan2-Jun-16 22:08 
GeneralRe: Monitor FTP and SFTP folders through FileSystemWatcher class Pin
Garth J Lancaster2-Jun-16 22:38
professionalGarth J Lancaster2-Jun-16 22:38 
AnswerRe: Monitor FTP and SFTP folders through FileSystemWatcher class Pin
Eddy Vluggen2-Jun-16 23:58
professionalEddy Vluggen2-Jun-16 23:58 
QuestionThe class MediaPlayer of namespace System.Windows.Media can't play music on OS Windows XP Pin
Member 111473382-Jun-16 19:49
Member 111473382-Jun-16 19:49 
AnswerRe: The class MediaPlayer of namespace System.Windows.Media can't play music on OS Windows XP Pin
OriginalGriff2-Jun-16 20:03
mveOriginalGriff2-Jun-16 20:03 
GeneralRe: The class MediaPlayer of namespace System.Windows.Media can't play music on OS Windows XP Pin
Member 111473382-Jun-16 20:16
Member 111473382-Jun-16 20:16 
QuestionSmall question on Finalizers Pin
Foothill2-Jun-16 8:56
professionalFoothill2-Jun-16 8:56 
AnswerRe: Small question on Finalizers Pin
Dave Kreskowiak2-Jun-16 9:07
mveDave Kreskowiak2-Jun-16 9:07 
GeneralRe: Small question on Finalizers Pin
Foothill2-Jun-16 9:55
professionalFoothill2-Jun-16 9:55 
GeneralRe: Small question on Finalizers Pin
Dave Kreskowiak2-Jun-16 10:53
mveDave Kreskowiak2-Jun-16 10:53 
GeneralRe: Small question on Finalizers Pin
Foothill2-Jun-16 11:22
professionalFoothill2-Jun-16 11:22 
GeneralRe: Small question on Finalizers Pin
Dave Kreskowiak2-Jun-16 11:58
mveDave Kreskowiak2-Jun-16 11:58 
GeneralRe: Small question on Finalizers Pin
Foothill3-Jun-16 5:10
professionalFoothill3-Jun-16 5:10 
AnswerRe: Small question on Finalizers Pin
Richard Deeming2-Jun-16 9:34
mveRichard Deeming2-Jun-16 9:34 
You should definitely read Eric Lippert's two blog posts on finalizers:
When everything you know is wrong, part one | Fabulous adventures in coding[^]
When everything you know is wrong, part two | Fabulous adventures in coding[^]

Particularly this part:
Quote:
If you have a tree of objects and you are finalizing the root, then the children are still alive — because the root is alive, because it is on the finalization queue, and so the children have a living reference — but the children may have already been finalized, and are in no particularly good state to have their methods or data accessed.

Also:

Therefore, it is vitally important that finalizers do as little work as possible. Remember also that although all object pointers remain valid during finalization, it might be the case that those pointers lead to objects that have already been finalized and might therefore be less than useful. It is generally safest to avoid following object pointers in finalization code even though the pointers are valid. A safe, short finalization code path is the best.

And:

* Implement Finalize only if you hold unmanaged resources across client calls.
* Keep finalizer code simple to prevent blocking.
- Do not issue calls that could block the calling thread.


Basically, calling Thread.Join from a finalizer seems like a very bad idea. Smile | :)



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: Small question on Finalizers Pin
Foothill2-Jun-16 11:02
professionalFoothill2-Jun-16 11:02 
QuestionHow to convert pounds(Lb) to ounce(Oz) and Ounce(Oz) to Pounds(Lb) in C#.Net code Pin
somagunasekaran2-Jun-16 1:35
somagunasekaran2-Jun-16 1:35 
AnswerRe: How to convert pounds(Lb) to ounce(Oz) and Ounce(Oz) to Pounds(Lb) in C#.Net code Pin
Richard Deeming2-Jun-16 2:11
mveRichard Deeming2-Jun-16 2:11 
AnswerRe: How to convert pounds(Lb) to ounce(Oz) and Ounce(Oz) to Pounds(Lb) in C#.Net code Pin
OriginalGriff2-Jun-16 4:08
mveOriginalGriff2-Jun-16 4:08 

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.