51st-Vfw / JAFDTC

JAFDTC DTC tool for DCS
GNU General Public License v3.0
0 stars 1 forks source link

Fix for F-16 SMS editor crash #58

Closed fizzle77 closed 5 months ago

fizzle77 commented 5 months ago

Not sure why others weren't seeing this? I've made this exact mistake. Not enough document distance between TextBox and TextBlock to visually distinguish! 😅

==== JAFDTC version 1.0.0-B.35 of 8-Jun-24 (build ffa2afc) launched
Loaded settings
Loaded F-16C 9404ace6-82f2-4978-a3f1-9b795496bd7d 'test' from 'test.json'
App:App Unhandled exception: The text associated with this error code could not be found.

Cannot apply a Style with TargetType 'Microsoft.UI.Xaml.Controls.TextBlock' to an object of type 'Microsoft.UI.Xaml.Controls.TextBox'. [Line: 377 Position: 22]

   at WinRT.ExceptionHelpers.<ThrowExceptionForHR>g__Throw|39_0(Int32 hr)
   at ABI.Microsoft.UI.Xaml.IApplicationStaticsMethods.LoadComponent(IObjectReference _obj, Object component, Uri resourceLocator, ComponentResourceLocation componentResourceLocation)
   at Microsoft.UI.Xaml.Application.LoadComponent(Object component, Uri resourceLocator, ComponentResourceLocation componentResourceLocation)
   at JAFDTC.UI.F16C.F16CEditSMSPage.InitializeComponent()
   at JAFDTC.UI.F16C.F16CEditSMSPage..ctor()
   at JAFDTC.JAFDTC_XamlTypeInfo.XamlTypeInfoProvider.Activate_107_F16CEditSMSPage()
   at JAFDTC.JAFDTC_XamlTypeInfo.XamlUserType.ActivateInstance()
   at ABI.Microsoft.UI.Xaml.Markup.IXamlType.Do_Abi_ActivateInstance_13(IntPtr thisPtr, IntPtr* result)
--- End of stack trace from previous location ---
   at WinRT.ExceptionHelpers.<ThrowExceptionForHR>g__Throw|39_0(Int32 hr)
   at ABI.Microsoft.UI.Xaml.Controls.IFrameMethods.Navigate(IObjectReference _obj, Type sourcePageType, Object parameter)
   at Microsoft.UI.Xaml.Controls.Frame.Navigate(Type sourcePageType, Object parameter)
   at JAFDTC.UI.App.ConfigurationPage.NavListEditors_SelectionChanged(Object sender, RoutedEventArgs args)
   at WinRT._EventSource_global__Microsoft_UI_Xaml_Controls_SelectionChangedEventHandler.EventState.<GetEventInvoke>b__1_0(Object sender, SelectionChangedEventArgs e)
   at ABI.Microsoft.UI.Xaml.Controls.SelectionChangedEventHandler.Do_Abi_Invoke(IntPtr thisPtr, IntPtr sender, IntPtr e)
ilominar commented 5 months ago

Wondering why I'm not seeing any issues with this? It's clearly wrong, but not crashing for me? Weird.