One of our customers in Brazil is experiencing our program crash upon start. He has this problem on 4 different computers. A 5th computer had this problem and after format the problem is gone.
The computers, as much as I understand, have Windows 7 (I assume that all of them have the same OS).
From the Event Viewer, I was able to see the error, and it appears to be coming from your code:
Application: MyApp.exe
Framework Version:
v4.0.30319
Description: The process
was terminated due to an unhandled exception.
Exception Info:
System.AccessViolationException
at
Telerik.Windows.Controls.RibbonView.Shell.Standard.NativeMethodsHelper+NativeMethods._RegisterClassEx(Telerik.Windows.Controls.RibbonView.Shell.Standard.WNDCLASSEX
ByRef)
at
Telerik.Windows.Controls.RibbonView.Shell.Standard.NativeMethodsHelper+NativeMethods.RegisterClassEx(Telerik.Windows.Controls.RibbonView.Shell.Standard.WNDCLASSEX
ByRef)
at
Telerik.Windows.Controls.RibbonView.Shell.Standard.MessageWindow..ctor(Telerik.Windows.Controls.RibbonView.Shell.Standard.CS,
Telerik.Windows.Controls.RibbonView.Shell.Standard.WS,
Telerik.Windows.Controls.RibbonView.Shell.Standard.WS_EX, System.Windows.Rect,
System.String, Telerik.Windows.Controls.RibbonView.Shell.Standard.WndProc)
at
Telerik.Windows.Controls.RibbonView.Shell.SystemParameters2.Init()
at
Telerik.Windows.Controls.RibbonView.Shell.SystemParameters2..ctor()
at
Telerik.Windows.Controls.RibbonView.Shell.SystemParameters2.get_Current()
at
Telerik.Windows.Controls.RibbonView.Shell.WindowChrome..ctor()
at
System.Xaml.Schema.XamlTypeInvoker+DefaultCtorXamlActivator.CallCtorDelegate(System.Xaml.Schema.XamlTypeInvoker)
at
System.Xaml.Schema.XamlTypeInvoker+DefaultCtorXamlActivator.CreateInstance(System.Xaml.Schema.XamlTypeInvoker)
at
System.Xaml.Schema.XamlTypeInvoker.CreateInstance(System.Object[])
at
MS.Internal.Xaml.Runtime.ClrObjectRuntime.CreateInstance(System.Xaml.XamlType,
System.Object[])
at
MS.Internal.Xaml.Runtime.PartialTrustTolerantRuntime.CreateInstance(System.Xaml.XamlType,
System.Object[])
at
System.Xaml.XamlObjectWriter.Logic_CreateAndAssignToParentStart(MS.Internal.Xaml.Context.ObjectWriterContext)
at
System.Xaml.XamlObjectWriter.WriteStartMember(System.Xaml.XamlMember)
at
System.Windows.Markup.WpfXamlLoader.TransformNodes(System.Xaml.XamlReader,
System.Xaml.XamlObjectWriter, Boolean, Boolean, Boolean,
System.Xaml.IXamlLineInfo, System.Xaml.IXamlLineInfoConsumer,
MS.Internal.Xaml.Context.XamlContextStack`1<System.Windows.Markup.WpfXamlFrame>,
System.Windows.Markup.IStyleConnector)
at
System.Windows.Markup.WpfXamlLoader.Load(System.Xaml.XamlReader,
System.Xaml.IXamlObjectWriterFactory, Boolean, System.Object,
System.Xaml.XamlObjectWriterSettings, System.Uri)
at
System.Windows.ResourceDictionary.CreateObject(System.Windows.Baml2006.KeyRecord)
at
System.Windows.ResourceDictionary.OnGettingValue(System.Object, System.Object
ByRef, Boolean ByRef)
at
System.Windows.ResourceDictionary.OnGettingValuePrivate(System.Object,
System.Object ByRef, Boolean ByRef)
at
System.Windows.ResourceDictionary.GetValueWithoutLock(System.Object, Boolean
ByRef)
at
System.Windows.ResourceDictionary.GetValue(System.Object, Boolean ByRef)
at
Telerik.Windows.Controls.RadRibbonWindow..ctor()
at MyApp.MainWindow..ctor()
Exception Info:
System.Windows.Markup.XamlParseException
at
System.Windows.Markup.XamlReader.RewrapException(System.Exception,
System.Xaml.IXamlLineInfo, System.Uri)
at
System.Windows.Markup.WpfXamlLoader.Load(System.Xaml.XamlReader,
System.Xaml.IXamlObjectWriterFactory, Boolean, System.Object,
System.Xaml.XamlObjectWriterSettings, System.Uri)
at
System.Windows.Markup.WpfXamlLoader.LoadBaml(System.Xaml.XamlReader, Boolean,
System.Object, System.Xaml.Permissions.XamlAccessLevel, System.Uri)
at
System.Windows.Markup.XamlReader.LoadBaml(System.IO.Stream,
System.Windows.Markup.ParserContext, System.Object, Boolean)
at
System.Windows.Application.LoadBamlStreamWithSyncInfo(System.IO.Stream,
System.Windows.Markup.ParserContext)
at
System.Windows.Application.DoStartup()
at
System.Windows.Application.<.ctor>b__1_0(System.Object)
at
System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate,
System.Object, Int32)
at
System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object,
System.Delegate, System.Object, Int32, System.Delegate)
at
System.Windows.Threading.DispatcherOperation.InvokeImpl()
at
MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(System.Object)
at
System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext,
System.Threading.ContextCallback, System.Object, Boolean)
at
System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext,
System.Threading.ContextCallback, System.Object, Boolean)
at
System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext,
System.Threading.ContextCallback, System.Object)
at
MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext,
System.Threading.ContextCallback, System.Object)
at
System.Windows.Threading.DispatcherOperation.Invoke()
at
System.Windows.Threading.Dispatcher.ProcessQueue()
at
System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr,
Boolean ByRef)
at
MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at
MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
at
System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate,
System.Object, Int32)
at
System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object,
System.Delegate, System.Object, Int32, System.Delegate)
at
System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority,
System.TimeSpan, System.Delegate, System.Object, Int32)
at
MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
at
MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
at
System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
at
System.Windows.Application.RunDispatcher(System.Object)
at
System.Windows.Application.RunInternal(System.Windows.Window)
at MyApp.App.Main()
As I understand, our software used to work on all, or some of the computers, but then it stopped (might be due to software install, Windows update, or configuration change in Windows).
I already tried uninstalling few Windows updates, and reparing the installed .net framework (4.7.1), but it didn't help.
Are you familiar with this issue, or know what can cause it?
If so, how can I solve it? (uninstall something, repair some installation, or change some windows configuration).
As I understand from the exception, the error is related to the RibbonWindow, but I'm not sure why it fails.
Please help.
Thank.
I tried to define two resources groups in TimelineViewDefinition. it is similar like TVs and Programmes in sample. But it give a error message said: cannot derive from sealed type 'TimelineViewDefinition'
Just bought the latest version of UI for WPF and can't install it. Receive the following error:
'VS2017PROFESSIONALDIR' is not a valid short file name.
I only have VS 2017 Community Edition installed.
Hello,
Test done with the Office2013 theme.
If I click on the bottom tool bar of the control, outside of the navigation controls, the map moves as if I click on the map!
Regards
Hello,
Here is the display when using the Office2013 theme.
Regards
I am converting a .NET 1.1 Windows Form (mdi) based application to a WPF which is using PRISM as its MVVM framework.
To simulate the mdi behavior, the application needs the ability to open multiple tabs for same view. For example, I have a view displays the person’s name, address, phone, etc.
I used your CustomTabControlRegionAdapter_WPF project as guidance
for creating the region adapter for the
RadTabControl. This seemed to work until
the TabItem view contains another TabsControl.
To ensure it wasn’t something specific with my implementation, I reproduced
the behavior in your sample project.
In the TabItemHomeView.xaml , I added the another TabControl:
<
TextBlock
Text
=
"This is the Home tab content"
/><
br
><
telerik:RadTabControl
><
br
><
telerik:RadTabItem
Header
=
"Tab 1"
></
telerik:RadTabItem
><
br
> <
telerik:RadTabItem
Header
=
"Tab 2"
></
telerik:RadTabItem
><
br
> <
telerik:RadTabItem
Header
=
"Tab 3"
></
telerik:RadTabItem
><
br
></
telerik:RadTabControl
>
When the project runs, it throws an
exception on line 215 of the RadTabControlRegionSyncBehavors.cs: “The
region does not contain the specified view.”
Parameter name: view;
Any additional guidance would be appreciated.
Thanks
Hey guys,
I have a RadGridView in the UI of my application and bind it to a VirtualQueryableCollectionView shown in the example:
https://docs.telerik.com/devtools/wpf/consuming-data/using-data-virtualization
That works fine so far.
Since I have a client/server architecture, it may happen that the server updates the database table collection is "looking" on.
Let's say there are 41 entries in the table after the UI started. Then the server adds one entry to the database. Afterwards the server notifies the client and the client executes "view.Refresh();".
Due to sorting the new entry may appear in the UI BUT the VirtualItemsCount remains 41.
I cannot find any method that allows me to refresh/update the underlying collection so that the collection is synchronized to the database.
Is it possible to achive this behavior or do I have to recreate the VirtualQueryableCollectionView with "view = new VirtualQueryableCollectionView (query);" on each refresh?
I appreciate any feedback :)
Is it possible to set the Positions property using a style?
Here's mine:
<
Style
x:Key
=
"myStyle"
TargetType
=
"telerik:NumericIndicator"
BasedOn
=
"{StaticResource {x:Type telerik:NumericIndicator}}"
>
<
Setter
Property
=
"telerik:ScaleObject.Location"
Value
=
"Inside"
/>
<
Setter
Property
=
"telerik:ScaleObject.RelativeX"
Value
=
"0.225"
/>
<
Setter
Property
=
"telerik:ScaleObject.RelativeY"
Value
=
"0.4"
/>
<
Setter
Property
=
"telerik:ScaleObject.RelativeHeight"
Value
=
"0.4*"
/>
<
Setter
Property
=
"telerik:ScaleObject.RelativeWidth"
Value
=
"1.1*"
/>
<
Setter
Property
=
"Foreground"
Value
=
"#FFCED2E4"
/>
<
Setter
Property
=
"Format"
Value
=
"{}{0:F1}"
/>
<
Setter
Property
=
"Positions"
>
<
Setter.Value
>
<
telerik:NumberPositionCollection
>
<
telerik:FontNumberPosition
CornerRadius
=
"15,0,0,15"
/>
<
telerik:FontNumberPosition
/>
<
telerik:FontNumberPosition
/>
<
telerik:FontNumberPosition
/>
<
telerik:FontNumberPosition
/>
<
telerik:FontNumberPosition
/>
<
telerik:FontNumberPosition
CornerRadius
=
"0,15,15,0"
/>
</
telerik:NumberPositionCollection
>
</
Setter.Value
>
</
Setter
>
</
Style
>
Doesn't seem to work. The NumericIndicator is aligned ok (I can see the rectangle positioned correctly in VS designer) but there are no visible NumberPosition objects.
Properties window shows that the Positions property value is an empty collection, and the little rectangle (after the "..." button) is gray. I.e., not indicating that the Positions property is bound to anything.
Hi,
I am using radgridview in my wpf application.When I drag and drop a column to the group panel, the sorting of groups is not done numerically as it is a string field.
I want the grouped data to be sorted numerically.
Any help would be really appreciated.