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

C#

 
Questionmake BeginInvoke from a form that is invisble Pin
Member 125150673-Jun-16 8:46
Member 125150673-Jun-16 8:46 
AnswerRe: make BeginInvoke from a form that is invisble Pin
Dave Kreskowiak3-Jun-16 12:11
mveDave Kreskowiak3-Jun-16 12:11 
QuestionTrouble downloading results of http request Pin
Member 101734793-Jun-16 6:12
Member 101734793-Jun-16 6:12 
QuestionCannot Get Any Values From A WCF REST Service Pin
MadDashCoder3-Jun-16 5:56
MadDashCoder3-Jun-16 5:56 
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 
OK, you're trying to protect the programmer from her/his self. It gets to the point where you're going overboard to protect someone who should know better. We all know (if we know what we're doing that is) if the object exposes a Dispose, you call it. Simple as that. Trying to make sure an idiot can use your code without issues just puts all of the work on you and none of the work on them, for what gain?

Can it be done from the Finalizer, sure. Is it a good idea? No. Can the user still run the system out of resources? Yep, because you cannot deterministically force a Finalize. The GC will get around to it whenever it feels like it and that may be AFTER the system has run out of a resource.
A guide to posting questions on CodeProject

Click this: Asking questions is a skill.
Seriously, do it.

Dave Kreskowiak

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 

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.