Highlighted
Contributor.
Contributor.
206 views

Presentation Core Error

Please Help ! Running this a test via a vb script and seem to be getting this error every 3 or so times I run the test.

Exception of type: System.Windows.Media.Animation.AnimationException. Source: PresentationCore. Occured in Void OnCurrentTimeInvalidated(System.Object, System.EventArgs) method

Exception message is: Cannot animate the 'Location' property on a 'System.Windows.Controls.Grid' using a 'System.Windows.Media.Animation.PointAnimation'. For details see the inner exception.

Exception trace is:    at System.Windows.Media.Animation.AnimationStorage.OnCurrentTimeInvalidated(Object sender, EventArgs args)

   at System.Windows.Media.Animation.Clock.FireEvent(EventPrivateKey key)

   at System.Windows.Media.Animation.Clock.RaiseAccumulatedEvents()

   at System.Windows.Media.Animation.TimeManager.RaiseEnqueuedEvents()

   at System.Windows.Media.Animation.TimeManager.Tick()

   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)

   at System.Windows.Media.MediaContext.AnimatedRenderMessageHandler(Object resizedCompositionTarget)

   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

 

Exception of type: System.InvalidCastException. Source: Northwoods.GoWPF. Occured in System.Collections.Generic.IEnumerable`1[System.Object] #an(System.Object) method

Exception message is: Unable to cast object of type 'Northwoods.GoXam.Group' to type 'HP.Utt.Controls.FlowCanvas.FlowCanvas.FlowCanvasItem`1[HP.QTP.BackEndServices.QtpItemsIfs.IActionCallGraph]'.

Exception trace is:    at Northwoods.GoXam.Model.GraphLinksModel`4.#an(Object #Y7)

   at Northwoods.GoXam.Group.get_MemberNodes()

   at Northwoods.GoXam.Group.#zt()

   at Northwoods.GoXam.Group.#Dj(Boolean #36)

   at Northwoods.GoXam.Part.InvalidateRelationships(String #I5, Boolean #36)

   at Northwoods.GoXam.Node.#Wj()

   at Northwoods.GoXam.Node.#0j(DependencyObject #73, DependencyPropertyChangedEventArgs #0Y)

   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)

   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)

   at System.Windows.Media.Animation.AnimationStorage.OnCurrentTimeInvalidated(Object sender, EventArgs args)

 

SharpDevelop Version : 4.1.3.0-UFT_14-00000000

.NET Version         : 4.0.30319.42000

OS Version           : Microsoft Windows NT 10.0.14393.0

Current culture      : English (United States) (en-US)

Running under WOW6432, processor architecture: x86-64

Terminal Server Session

Working Set Memory   : 377436kb

GC Heap Memory       : 49019kb

 

 

An unexpected error occurred.

 

Click ‘OK’ to close this message. You may be able to continue working,

but note that this workflow may cause the error to occur again.

Click ‘Details’ to display technical details on this error which may help

you solve the problem, or can be used when contacting customer support.

0 Likes
1 Reply
Highlighted
Outstanding Contributor.
Outstanding Contributor.

Re: Presentation Core Error

You could try a couple of things.

Run UFT in the background by setting the Visible property to False.

Set App = CreateObject("QuickTest.Application")
App.Visible = False
App.Launch

Include a delay between test runs and see if it helps.

WScript.Sleep 2000
_____________________
Rajkumar Rajangam
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.