unhandled-exception

WP7 Mango: Retemplating PhoneApplicationFrame created “Unspecified Error” exception

时光总嘲笑我的痴心妄想 提交于 2019-12-10 17:50:50
问题 The following used to work in WP 7.0: I'm attempting to re-template the root PhoneApplicationFrame in my Mango beta 2 refresh (7712) project with the following Xaml: <Style TargetType="phone:PhoneApplicationFrame" x:Key="FrameStyle"> <Setter Property="Template"> <Setter.Value> <ControlTemplate> <Border x:Name="ClientArea" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}" Background="{TemplateBinding Background}" BorderBrush="

Unhandled Exception next line or exit

馋奶兔 提交于 2019-12-10 11:43:32
问题 [update 2: Problem solved, see my comment below and in my other post. Hope this helps someone.] [update: The response to my other question Detecting Exceptions During Beta Testing, which served as the basis of this question is flawed. Inside the Visual Studio both 2010 and now 2012 works great. The exception handler gets called, okay after VS breaks at the line and I say to continue. I decided to test outside the VS2012 IDE, good thing for that. The OS traps the bug, shows the standard an "An

Attempted to read or write protected memory. This is often an indication that other memory is corrupt

十年热恋 提交于 2019-12-10 03:43:45
问题 I really do not understand how is this error happening at this code. Please check the code yourself void dispatcherTimer_Tick(object sender, EventArgs e) { string srUrl = lstLocalIndex[irLocalIndex] + lstMainIndex[irMainIndex].Replace("0;",""); Task.Factory.StartNew(() => { startNewWindow(srUrl); }); } void startNewWindow(string srUrl) { NewWindowThread<TitleWindow, string>(c => new TitleWindow(c), srUrl); } Now this code is where the error happening. I will also attach screenshot private

Infinite loop invalidating the TimeManager

徘徊边缘 提交于 2019-12-10 01:04:31
问题 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 the Layout/Render process. The stack trace (for what it's worth) is: at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget) at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget) at System.Windows.Threading.ExceptionWrapper

'System.AggregateException' occurred in mscorlib.dll” when using SignalR

拟墨画扇 提交于 2019-12-08 15:32:01
问题 Consider the following code: using Microsoft.AspNet.SignalR.Client; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Stock { public string Symbol { get; set; } public decimal Price { get; set; } } class Program { static void Main(string[] args) { var hubConnection = new HubConnection("http://www.contoso.com/"); IHubProxy stockTickerHubProxy = hubConnection.CreateHubProxy("StockTickerHub");

Unhandled exception in try-catch

回眸只為那壹抹淺笑 提交于 2019-12-08 11:59:03
问题 try { list = from XElement e in d.Descendants(wix + "File") where e.Attribute("Name").Value.Contains(temp.Name) && e.Parent.Parent.Attribute("Name").Value.Contains(temp.Directory.Name) select e; } catch (NullReferenceException e) { MessageBox.Show(e.Message); } catch (Exception e) { MessageBox.Show(e.Message); } now my question is why does this code produce a run time error saying I have a NullReferenceException unhandled. If you need more information about the program let me know. EDIT: The

NLog: Force BufferingTargetWrapper to empty on AppDomain UnhandledException

╄→гoц情女王★ 提交于 2019-12-08 01:34:31
问题 I have NLog configured in my application to to use the BufferingTargetWrapper for sending emails with the MailTarget . The problem I'm running into is I can not find a way to force NLog to empty the BufferingTargetWrapper before the application exits from Unhandled Exceptions. I tried calling LogManager.Flush() and LogManager.DisableLogging() from the Current App Domain's UnhandledException Event but it does not seam to work. What would I need to do to make it send the emails? 回答1: you can

Face Recognition in Video using OpenCV gives unhandled exception

假如想象 提交于 2019-12-07 00:09:00
问题 I am trying to use the Face Recognition in video sample provided with OpenCV. The only modification I've done is: Instead of using command line arguments to provide CSV and Cascade classifier paths, I have given them directly in the code. This is the code: #include "stdafx.h" #include "opencv2/core/core.hpp" #include "opencv2/contrib/contrib.hpp" #include "opencv2/highgui/highgui.hpp" #include "opencv2/imgproc/imgproc.hpp" #include "opencv2/objdetect/objdetect.hpp" #include <iostream>

UWP - Frame Navigate only crashes when passing a parameter

吃可爱长大的小学妹 提交于 2019-12-06 13:38:07
I'm trying to pass the id of the clicked element as a string to a new page, however the app always crashes. I'm not entirely sure how to find out the cause of the problem as every example I've found uses the same method and it works just fine for them. The sender event: private void MovieBox_OnTapped(object sender, TappedRoutedEventArgs e) { var id = (sender as StackPanel).Tag as string; Debug.WriteLine(id); //the correct id in string Frame.Navigate(typeof(MovieDetailsPage),id); } The OnNavigatedTo event protected override async void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e)

Unhandled Exception Error [closed]

北战南征 提交于 2019-12-06 11:52:30
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 6 years ago . I am experiencing an unhandled exception within xutility if (_Myproxy != 0) { // proxy allocated, drain it _Lockit _Lock(_LOCK_DEBUG); for (_Iterator