
Hello,
I am facing a problem I don't understand. Someone might have seen that, so I post in case. I have a workstation under Vista, with a project full of gauges. It works well. I want to deploy this project on a laptop under Vista also. It works excepted when I want to use a Led or a Switch. At this time I got an error on such a statement, using the setter property :
"oldValue has an uncorrect type for this property"
The same code runs well under my workstation. Both are with the same Actipro releases and Vista SP2.
I am facing a problem I don't understand. Someone might have seen that, so I post in case. I have a workstation under Vista, with a project full of gauges. It works well. I want to deploy this project on a laptop under Vista also. It works excepted when I want to use a Led or a Switch. At this time I got an error on such a statement, using the setter property :
"oldValue has an uncorrect type for this property"
public bool IsBlinking { get { return led.LedState == LedState.Blinking; } set { led.LedState = (value ? LedState.Blinking : LedState.Off); } }
à System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
à System.Windows.Automation.Provider.AutomationInteropProvider.RaiseAutomationPropertyChangedEvent(IRawElementProviderSimple element, AutomationPropertyChangedEventArgs e)
à System.Windows.Automation.Peers.AutomationPeer.RaisePropertyChangedInternal(IRawElementProviderSimple provider, AutomationProperty propertyId, Object oldValue, Object newValue)
à System.Windows.Automation.Peers.AutomationPeer.RaisePropertyChangedEvent(AutomationProperty property, Object oldValue, Object newValue)
à ActiproSoftware.Windows.Controls.Gauge.Automation.Peers.LedAutomationPeer.a(LedState A_0, LedState A_1)
à ActiproSoftware.Windows.Controls.Gauge.Led.a(DependencyObject A_0, DependencyPropertyChangedEventArgs A_1)
à System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
à System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
à System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
à System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, OperationType operationType)
à System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, OperationType operationType, Boolean isInternal)
à System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
à ActiproSoftware.Windows.Controls.Gauge.Led.set_LedState(LedState value)
à sw7.acquisit.sys.win.gauges.Led.set_IsBlinking(Boolean value)