Click here to Skip to main content
15,886,137 members
Home / Discussions / C#
   

C#

 
Questionsending SMS using SMPP in C# Pin
Jassim Rahma20-Dec-14 22:59
Jassim Rahma20-Dec-14 22:59 
AnswerRe: sending SMS using SMPP in C# Pin
DamithSL20-Dec-14 23:25
professionalDamithSL20-Dec-14 23:25 
SuggestionRe: sending SMS using SMPP in C# Pin
Kornfeld Eliyahu Peter20-Dec-14 23:28
professionalKornfeld Eliyahu Peter20-Dec-14 23:28 
Suggestionimplementation suggesion for a customized list page Pin
NowYouSeeMe18-Dec-14 18:37
NowYouSeeMe18-Dec-14 18:37 
GeneralRe: implementation suggesion for a customized list page Pin
syed shanu18-Dec-14 19:16
mvasyed shanu18-Dec-14 19:16 
GeneralRe: implementation suggesion for a customized list page Pin
BillWoodruff19-Dec-14 3:57
professionalBillWoodruff19-Dec-14 3:57 
GeneralRe: implementation suggesion for a customized list page Pin
Amresh Bahadur Singh21-Dec-14 23:34
Amresh Bahadur Singh21-Dec-14 23:34 
QuestionCode Design - Event call, Catch exceptions or not? Pin
GerVenson18-Dec-14 12:38
professionalGerVenson18-Dec-14 12:38 
Hey,

i was working on some API for networking when i implemented some sort of logging and Reporting, in certain situations when all of the sudden my Test project in WPF didn't worked as expected. After some debugging i found a Cross-Thread exception that was caused by some bindings. The API is using some High Level of threading and Tasking support.
The problem was that i was attached to a Event that was trigger in a Non-Dispatcher Thread, and inside my ViewModel i did not synchronized the code. The Whole application was still running ( AppDomain had some global exception Handling ) but the point is, this external exception ( as seen from the API side ) had noting to do with the API but prevented it from working by throwing an Exception and stops the execution of the code after the Event Trigger.

I learned due my time as a Developer that some sort of "General" exception catching should be prevented where possible. This does not mean an empty TryCatch block ( What is actually even very Bad ).

So my Question is:
Should i break this Design guide and more, should i catch Exceptions in general when i Invoke an event? The event handler could Throw some exceptions what i do not expect and i should not worry about. And last but not least: If jes, what to do when we catch an event?
AnswerRe: Code Design - Event call, Catch exceptions or not? Pin
Eddy Vluggen19-Dec-14 7:14
professionalEddy Vluggen19-Dec-14 7:14 
Questionc# string param passing vs vb.net Pin
SepPax18-Dec-14 10:46
SepPax18-Dec-14 10:46 
GeneralRe: c# string param passing vs vb.net Pin
PIEBALDconsult18-Dec-14 11:39
mvePIEBALDconsult18-Dec-14 11:39 
AnswerRe: c# string param passing vs vb.net PinPopular
Dave Kreskowiak18-Dec-14 12:49
mveDave Kreskowiak18-Dec-14 12:49 
GeneralRe: c# string param passing vs vb.net Pin
SepPax18-Dec-14 19:47
SepPax18-Dec-14 19:47 
GeneralRe: c# string param passing vs vb.net Pin
Dave Kreskowiak19-Dec-14 2:12
mveDave Kreskowiak19-Dec-14 2:12 
GeneralRe: c# string param passing vs vb.net Pin
SepPax19-Dec-14 3:22
SepPax19-Dec-14 3:22 
GeneralRe: c# string param passing vs vb.net Pin
SepPax19-Dec-14 5:07
SepPax19-Dec-14 5:07 
Questionfile not uploading Help.... Pin
Member 1132096518-Dec-14 5:47
Member 1132096518-Dec-14 5:47 
AnswerRe: file not uploading Help.... Pin
OriginalGriff18-Dec-14 5:56
mveOriginalGriff18-Dec-14 5:56 
AnswerRe: file not uploading Help.... Pin
OriginalGriff18-Dec-14 6:39
mveOriginalGriff18-Dec-14 6:39 
GeneralRe: file not uploading Help.... Pin
Member 1132096518-Dec-14 6:42
Member 1132096518-Dec-14 6:42 
AnswerRe: file not uploading Help.... Pin
Matt T Heffron18-Dec-14 6:54
professionalMatt T Heffron18-Dec-14 6:54 
GeneralRe: file not uploading Help.... Pin
Member 1132096518-Dec-14 7:01
Member 1132096518-Dec-14 7:01 
GeneralRe: file not uploading Help.... Pin
OriginalGriff18-Dec-14 8:12
mveOriginalGriff18-Dec-14 8:12 
GeneralRe: file not uploading Help.... Pin
Member 1132096518-Dec-14 8:33
Member 1132096518-Dec-14 8:33 
GeneralRe: file not uploading Help.... Pin
OriginalGriff18-Dec-14 8:56
mveOriginalGriff18-Dec-14 8:56 

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.