I want to create an application using Xamarin.Forms. I have created a single content page and added a DatePicker Control over it.
The first time the activity is started, date picker work just fine ... however, whenwe close the application via mobile back button and relaunch the app it throws an un-handled exception on opening date picker saying this exception:
0x21 in System.Diagnostics.Debugger.Mono_UnhandledException_internal C#
0x1 in System.Diagnostics.Debugger.Mono_UnhandledException C#
0x26 in object.56027ba0-2dd5-40f3-bfa1-daf5399d2134 C#
0x63 in Android.Runtime.JNIEnv.CallVoidMethod at /Users/builder/data/lanes/monodroid-mlion-monodroid-4.12-series/b5dc5ce9/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:490,138 C#
0x4E in Android.App.Dialog.Show at /Users/builder/data/lanes/monodroid-mlion-monodroid-4.12-series/b5dc5ce9/source/monodroid/src/Mono.Android/platforms/android-19/src/generated/Android.App.Dialog.cs:2497,5 C#
0x73 in Xamarin.Forms.Platform.Android.DatePickerRenderer.OnTextFieldClicked C#
0xB in Xamarin.Forms.Platform.Android.DatePickerRenderer.TextFieldClickHandler.OnClick C#
0x13 in Android.Views.View.IOnClickListenerInvoker.n_OnClick_Landroid_view_View_ at /Users/builder/data/lanes/monodroid-mlion-monodroid-4.12-series/b5dc5ce9/source/monodroid/src/Mono.Android/platforms/android-19/src/generated/Android.Views.View.cs:1840,1223 C#
0x17 in object.56027ba0-2dd5-40f3-bfa1-daf5399d2134 C#
If you're using older Xamarin.Forms version it could be a bug: Take a look at possible fix: bugzilla.xamarin.com/show_bug.cgi?id=24773 (first comment)
Related
I am working on a DirectX 11 app and I am having difficulties creating an instance of IDXGIFactory7. I could not find a CreateDXGIFactory7() function so I am using CreateDXGIFactory2() like this:
IDXGIFactory7* factory;
HRESULT hr = ::CreateDXGIFactory2(DXGI_CREATE_FACTORY_DEBUG, __uuidof(IDXGIFactory7), (void**)&factory);
The difficulty I am having is that this call throws an exception when attempting to use the graphics debugger in Visual Studio 2019. I also tried IDXGIFactory6 which also throws an exception. If I change it to IDXGIFactory2 it works and I can use the graphics debugger.
This code does run and debug fine using the regular debugger, but not the graphics debugger. I get the following exception:
Exception thrown at 0x00007FFAE1513B29 in DirectXTemplated.exe: Microsoft C++ exception: GRFXTool::ToolException at memory location 0x0000004D28BFE010.
I downloaded the sample from https://www.3dgep.com/introduction-to-directx-11/ and modified it to use IDXGIFactory7 and CreateDXGIFactory2() instead of IDXGIFactory in the QueryRefreshRate() function. You will need to set g_EnableVSync = TRUE at the top of main.cpp for it to create the factory. This does generate the exception when attempting to use the graphics debugger.
This is a Windows 10 Pro x64 installation with Visual Studio v16.7.6.
Based on the comment from Roman R., the way to get around the problem seems to be to use CreateDXGIFactory2() to create an IDXGIFactory2 and use QueryInterface() on that to obtain the one for IDXGIFactory7.
Doing it this way avoids the exception and the app runs under the graphics debugger without issue.
C++ Builder started throwing the following exception on all existing and working applications:
From CPU window: 50159CEE 83780800 cmp dword ptr [eax+$08],$00
From Event Log: First chance exception at $50159CEE. Exception class $C0000005 with message 'access violation at 0x50159cee: read of address 0x00000008'. Process blahblah.exe (9688)
I'm guessing this is a compiler related issue, but I have no idea how to fix it. Tried to toggle "Use classic Borland compiler", didn't help.
Solved by unchecking:
Link with runtime packages,
Link with dynamic RTL
(They were both false, but for some reason they went true)
In my company we´ve installed the app GuiXT Liquid UI on Ipad mini to access to our SAP-Systems.
The login works fine and we can open transactions (those which were delivered by SAP and also self-written), but as soon as we want to change variant, display a list or anything else, an Runtime Error occurs.
While opening the same transactions with the “normal” gui on windows-pcs everything works.
Following informations I get from the error message:
Runtime Errors MESSAGE_TYPE_X
Error analysis
Short text of error message:
Control Frame Work : Error in data stream <DATAMANAGER><TABLES><DATACHAN
GES HANDLE="2"><IT I; current tag PROPERTY,
Long text of error message:
Technical information about the message:
Message class....... "CNDP"
Number.............. 008
Variable 1.......... "<DATAMANAGER><TABLES><DATACHANGES HANDLE="2"><IT I"
Variable 2.......... "PROPERTY"
Variable 3.......... " "
Variable 4.......... " "
Information on where terminated
Termination occurred in the ABAP program "CL_GUI_DATAMANAGER============CP" -
in "TRACE_XML".
The main program was "RAZUGA_ALV01 ".
In the source code you have the termination point in line 2136
of the (Include) program "CL_GUI_DATAMANAGER============CL".
This is a really old question and I hope you found a solution.
I stumbled upon it while searching for help on a similar (but not exactly the same) error.
I found this note which doesn't apply to my system/error, but might apply to yours, so I'll leave it here for reference:
2318244 - Shortdump occurs in /IDXGC/PDOCMON01 when click some Process Step No. to display step additional data
Regards,
tao
I was following the advice from Stuart on MVVMCross iOS: how to bind a command with Custom transition when switching to different View model
When I switch to using my custom presenter derived from MvxModalNavSupportTouchViewPresenter then my app crashes (System.NullReferenceException: Object reference not set to an instance of an object) in AppDelegate::FinishedLaunching when calling .Start():
IMvxAppStart startup = Mvx.Resolve<IMvxAppStart>();
startup.Start();
Callstack is:
0x7 in Cirrious.MvvmCross.Touch.Views.Presenters.MvxTouchViewPresenter.get_CurrentTopViewController C#
0x2 in Cirrious.MvvmCross.Touch.Views.Presenters.MvxTouchViewPresenter.PresentModalViewController C#
0x4E in Cirrious.MvvmCross.Touch.Views.Presenters.MvxModalNavSupportTouchViewPresenter.Show C#
0xB in Cirrious.MvvmCross.Touch.Views.Presenters.MvxTouchViewPresenter.Show C#
0x28 in Cirrious.MvvmCross.Touch.Views.MvxTouchViewDispatcher. C#
0x28 in Cirrious.MvvmCross.Touch.Views.MvxTouchUIThreadDispatcher.RequestMainThreadAction C#
0x24 in Cirrious.MvvmCross.Touch.Views.MvxTouchViewDispatcher.ShowViewModel C#
0x30 in Cirrious.MvvmCross.ViewModels.MvxNavigatingObject.ShowViewModelImpl C#
0x6 in Cirrious.MvvmCross.ViewModels.MvxNavigatingObject.ShowViewModel C#
0xE in Cirrious.MvvmCross.ViewModels.MvxNavigatingObject.ShowViewModel<TestCustomPresenter.Core.ViewModels.FirstViewModel> C#
0x17 in Cirrious.MvvmCross.ViewModels.MvxAppStart<TestCustomPresenter.Core.ViewModels.FirstViewModel>.Start C#
> 0x3A in TestCustomPresenter.iOS.AppDelegate.FinishedLaunching at e:\Src\test\TestCustomPresenter\TestCustomPresenter.iOS\AppDelegate.cs:54 C#
0x9F in MonoTouch.UIKit.UIApplication.UIApplicationMain C#
0x52 in MonoTouch.UIKit.UIApplication.Main at /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:38 C#
0x8 in TestCustomPresenter.iOS.Application.Main at e:\Src\test\TestCustomPresenter\TestCustomPresenter.iOS\Main.cs:23 C#
As far as I can tell, there is no current top view controller but I don't know how to set that up as I followed all the steps from Stuart's answer. ( I couldn't reply to his answer as I have 9 rep too few :( )
I've uploaded a test project that reproduces the error to http://www.cliffcawley.net/TestCustomPresenter.zip
What do I have to do to get the example to work and to see the custom transition when you click the button?
A modal view controller is shown on top of something else. See https://developer.apple.com/library/ios/featuredarticles/ViewControllerPGforiPhoneOS/ModalViewControllers/ModalViewControllers.html
I haven't downloaded your sample, but from your stack trace my guess is you are showing the modal as your first view - so there's nothing to show it on top of.
An easy solution for this is to try showing another view first - even if it's just a placeholder or backdrop.
Beyond the easy solution, if you are new to uikit, it's worth taking some time to hack a demo app (non-mvx) where you experiment with pushing and popping viewcontrollers as modals, within navigationcontrollers, etc - once you get comfortable with this, then you can quickly write your own navigation/presentation logic in any mvx app.
I'm trying to display a privacy statement from a settings flyout using a HyperlinkButton; after clicking the hyperlink, though, I get a crash with two dialogs. The one on top says:
~~~~~~~~~~~~~~~~~~~~~~~~
Warning
A debugger is attached to <ProjectName> but not configured to debug this
unhandled exception. To debug this exception, detach the current debugger.
~~~~~~~~~~~~~~~~~~~~~~~~
...and below that the second dialog opines:
~~~~~~~~~~~~~~~~~~~~~~~~
Visual Studio Just-In-Time Debugger
An unhandled win32 exception occurred in <ProjectName> [10704].
Possible Debuggers:
New instance of Microsoft Visual Studio 2012
Yes No
~~~~~~~~~~~~~~~~~~~~~~~~
When I selected "No" to start that new instance, I was transferred away from the Emulator back to my debugging session - actually, the debugging session was terminated - it was as if I had Shift+F5'd.
My XAML is:
<HyperlinkButton Grid.Row="4" Grid.ColumnSpan="2" Content="Duckbilled Platypi Privacy Statement" NavigateUri="http://montereyscenics.posterous.com"/>
UPDATE
So since the link worked fine in the AppSettings sample, I added an OnTapped event (admittedly, this is different than the OnClicked shown there) to the Hyperlink so that it now looks like this:
<HyperlinkButton Grid.Row="4" Grid.ColumnSpan="2" Content="Time and Space Lines Privacy Statement" NavigateUri="http://montereyscenics.com/" Tapped="PrivacyHyperlink_OnTapped"/>
...and the handler:
async void PrivacyHyperlink_OnTapped(object sender, TappedRoutedEventArgs e)
{
await Windows.System.Launcher.LaunchUriAsync(new Uri(((HyperlinkButton)sender).Tag.ToString()));
}
It worked for a second - it immediately opened the page. But then it crashed on the "await" line (the only line) in the handler, with this missive:
"*System.NullReferenceException was unhandled by user code
HResult=-2147467261
Message=Object reference not set to an instance of an object.
Source=MetroSandboxPlaypen
StackTrace:
at MetroSandboxPlaypen.TandSLsSettings.d__0.MoveNext() in...*"