Click here to Skip to main content
15,892,927 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to handle recording method in main form? Pin
BillWoodruff13-Nov-14 6:21
professionalBillWoodruff13-Nov-14 6:21 
GeneralRe: How to handle recording method in main form? Pin
Member 1110634813-Nov-14 21:16
Member 1110634813-Nov-14 21:16 
AnswerRe: How to handle recording method in main form? Pin
Bernhard Hiller13-Nov-14 20:48
Bernhard Hiller13-Nov-14 20:48 
QuestionSending E mail using C# Pin
Fraol Gelana13-Nov-14 3:19
Fraol Gelana13-Nov-14 3:19 
SuggestionRe: Sending E mail using C# Pin
Richard Deeming13-Nov-14 3:26
mveRichard Deeming13-Nov-14 3:26 
GeneralRe: Sending E mail using C# Pin
Fraol Gelana13-Nov-14 3:41
Fraol Gelana13-Nov-14 3:41 
GeneralRe: Sending E mail using C# Pin
Richard Deeming13-Nov-14 3:55
mveRichard Deeming13-Nov-14 3:55 
AnswerRe: Sending E mail using C# Pin
Richard Deeming13-Nov-14 3:29
mveRichard Deeming13-Nov-14 3:29 
AnswerRe: Sending E mail using C# Pin
BillWoodruff13-Nov-14 3:37
professionalBillWoodruff13-Nov-14 3:37 
GeneralRe: Sending E mail using C# Pin
jschell13-Nov-14 11:27
jschell13-Nov-14 11:27 
AnswerRe: Sending E mail using C# Pin
Marco Bertschi13-Nov-14 23:01
protectorMarco Bertschi13-Nov-14 23:01 
QuestionHow To Create Data Recovery in C#.net Pin
Srikanth5913-Nov-14 1:51
Srikanth5913-Nov-14 1:51 
AnswerRe: How To Create Data Recovery in C#.net Pin
Dave Kreskowiak13-Nov-14 2:08
mveDave Kreskowiak13-Nov-14 2:08 
QuestionPDFSHARP - table page break Pin
Mol4ok12-Nov-14 22:19
Mol4ok12-Nov-14 22:19 
AnswerRe: PDFSHARP - table page break Pin
Mol4ok16-Nov-14 15:57
Mol4ok16-Nov-14 15:57 
GeneralRe: PDFSHARP - table page break Pin
Mycroft Holmes16-Nov-14 18:32
professionalMycroft Holmes16-Nov-14 18:32 
GeneralRe: PDFSHARP - table page break Pin
Mol4ok16-Nov-14 21:03
Mol4ok16-Nov-14 21:03 
QuestionCannot access a disposed object. Object name : System.Net.Mail.MailMessage Pin
Jassim Rahma12-Nov-14 20:35
Jassim Rahma12-Nov-14 20:35 
AnswerRe: Cannot access a disposed object. Object name : System.Net.Mail.MailMessage Pin
BillWoodruff12-Nov-14 21:04
professionalBillWoodruff12-Nov-14 21:04 
AnswerRe: Cannot access a disposed object. Object name : System.Net.Mail.MailMessage PinPopular
Bernhard Hiller12-Nov-14 21:10
Bernhard Hiller12-Nov-14 21:10 
I guess it is caused by the combination of
C#
client.SendAsync(message, userState);
message.Dispose();

Because of the async part, that function returns immediately, though the process of sending may not even have started. But now you call Dispose on the message object which is still to be sent / being sent.
I suggest to remove the message.Dispose line.
AnswerRe: Cannot access a disposed object. Object name : System.Net.Mail.MailMessage Pin
Marco Bertschi13-Nov-14 23:05
protectorMarco Bertschi13-Nov-14 23:05 
QuestionAsk Pin
kavnico12-Nov-14 16:50
kavnico12-Nov-14 16:50 
AnswerRe: Ask Pin
BillWoodruff12-Nov-14 20:30
professionalBillWoodruff12-Nov-14 20:30 
AnswerRe: Ask Pin
Richard MacCutchan12-Nov-14 21:22
mveRichard MacCutchan12-Nov-14 21:22 
GeneralRe: Ask Pin
ZurdoDev13-Nov-14 3:07
professionalZurdoDev13-Nov-14 3:07 

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.