Tagged Questions
0
votes
1answer
28 views
Duplex channel callback calls method that throws exception. Where does the execption go?
And how can I present it to the user?
This post : WCF Duplex: How to handle thrown exception in duplex Callback is very close to my scenario. And this post is useful for helping me re-establish the ...
5
votes
2answers
74 views
Why my exception is not making any difference in a wpf application?
I have a WPF application that has a BackgroundWorker. I throw an exception in this BGW but it is not shown any where!, just the background worker fires its WorkerFinished event.
Where is it going?
0
votes
0answers
46 views
WebClient exceptions handling with Async operations
I want to catch the exception from the DownloadStringAsync operation, but the try/catch block is ignored at run-time.
private void SomeFunctionOnSomeDLL()
{
try
{
...
0
votes
0answers
45 views
Exception handling in a task with FromCurrentSynchronizationContext
I am trying to catch all exceptions in the ContinueWith block from a task. I would like to be able to do this with the continuation block using the FromCurrentSynchronizationContext task scheduler.
I ...
1
vote
1answer
75 views
Global Exceptionhandler does not catch some Exception (for example StackoverflowException)
I have registered global Exceptionhandlers in my Application (C#, WPF, .NET4) at the startup-routine on the following way:
AppDomain.CurrentDomain.UnhandledException += (sender, args) => ...
0
votes
1answer
100 views
WPF Catch Exception thrown by User Controls inside a Window
I have a couple of custom user controls inside a WPF window dialog which can throw exception. What I want to do is to purge only that window dialog when an exception is thrown by one of those user ...
2
votes
1answer
142 views
WPF - Catch exceptions in code executed by SimpleMVVM messagebus
I'm building a WPF application using the SimpleMVVM framework and I'm having trouble catching exceptions. I use the MessageBus of SimpleMVVM to send a message to another viewmodel. This all works ...
0
votes
0answers
31 views
Any way to handle Dispatcher.Thread.Interrupt()?
My app has set up a Dispatcher.UnhandledException listener. It successfully logs the exception and gets the app into a good known state.
The app also does monitoring of UI rendering (listening ...
6
votes
2answers
323 views
Infinite loop invalidating the TimeManager
I am experiencing a very tricky defect in my WPF application to track down. The error message is:
An infinite loop appears to have resulted from repeatedly
invalidating the TimeManager during ...
0
votes
5answers
133 views
AppDomain.UnhandledException automatically re-throws handled exception
I'm trying to catch all unhandled exceptions in my app in order to conditionally handle those that can be without terminating the app, but I cannot solve a very basic problem: it doesn't stop the ...
1
vote
1answer
138 views
The same exception thrown twice crashes WPF
We seem to be having some "interesting" behavior with unhandled exceptions in WPF.
In a nutshell, the same exception thrown twice on the dispatcher thread in a short period of time will bypass the ...
0
votes
1answer
70 views
Dependency property value not assigned while setting value through Styles using dynamic resource
Public Class UITreeview
Inherits System.Windows.Controls.TreeView
Public Shared ExpandAllproperty As DependencyProperty
Shared Sub New()
...
0
votes
0answers
146 views
Null Reference Exception on List Box Item (?)
I have this error throw at me every time I double click this List Box Item Having the following template
<DataTemplate x:Key="FolderTemplate">
<Grid Margin="0,0,5,5">
...
3
votes
1answer
706 views
Unhandled OperationCanceledException when thrown from Parallel.ForEach
I am trying to allow cancellation of a Parallel.ForEach loop. According to this MSDN article, it is possible, and I am following their coding.
// Tokens for cancellation
...
0
votes
1answer
386 views
DataValidation in WPF using ValidatesOnExceptions
I want to run a basic data validation sample in WPF using ValidatesOnException, but its simply not working, and as soon as my viewmodel throws ValidationException, my program crashes saying, ...