Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

Bug: MediaElement throws exception on application resize

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 04-25-2006   #1 (permalink)
Philippe Lavoie
Guest


 

Bug: MediaElement throws exception on application resize

Hi,

When I resize my PresentationHost window, the MediaElement throws an
exception. Otherwise, it works fine. Please help

Phil

PS the animation is within a storyboard.

System.Runtime.InteropServices.COMException crossed an AppDomain boundary
Message="An outgoing call cannot be made since the application is
dispatching an input-synchronous call. (Exception from HRESULT:
0x8001010D (RPC_E_CANTCALLOUT_ININPUTSYNCCALL))"
Source="mscorlib"
ErrorCode=-2147417843
StackTrace:
at
System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32
errorCode, IntPtr errorInfo)
at
System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
at MS.Internal.HRESULT.Check(Int32 hr)
at System.Windows.Media.MediaPlayer.GetPosition()
at System.Windows.Media.MediaPlayer.get_Position()
at System.Windows.Media.MediaClock.GetCurrentTimeCore()
at
System.Windows.Media.Animation.Clock.ComputeSyncSlip(TimeIntervalCollection&
parentIntervalCollection, TimeSpan currentParentTime, Double
currentParentSpeed, Double appliedSpeedRatio)
at
System.Windows.Media.Animation.Clock.ComputeLocalStateHelper(Boolean
performTickOperations)
at System.Windows.Media.Animation.Clock.ComputeLocalState()
at System.Windows.Media.Animation.ClockGroup.ComputeTreeState()
at System.Windows.Media.Animation.TimeManager.Tick()
at
System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object
resizedCompositionTarget)
at System.Windows.Media.MediaContext.RenderMessageHandler(Object
resizedCompositionTarget)
at System.Windows.Media.MediaContext.Resize(ICompositionTarget
resizedCompositionTarget)
at System.Windows.Interop.HwndTarget.OnResize()
at System.Windows.Interop.HwndTarget.HandleMessage(Int32 msg,
IntPtr wparam, IntPtr lparam)
at
System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd,
Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr
wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at
System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate
callback, Object args, Boolean isSingleParameter)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object
source, Delegate callback, Object args, Boolean isSingleParameter,
Delegate catchHandler)
at
System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority
priority, TimeSpan timeout, Delegate method, Object args, Boolean
isSingleParameter)
at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority
priority, Delegate method, Object arg)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg,
IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc,
IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg,
IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.SetWindowPos(HandleRef hWnd,
HandleRef hWndInsertAfter, Int32 x, Int32 y, Int32 cx, Int32 cy, Int32
flags)
at MS.Internal.AppModel.RootBrowserWindow.ResizeMove(Int32
xDeviceUnits, Int32 yDeviceUnits, Int32 widthDeviceUnits, Int32
heightDeviceUnits)
at
MS.Internal.AppModel.ApplicationProxyInternal._MoveDelegate(Object moveArgs)
at
System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate
callback, Object args, Boolean isSingleParameter)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object
source, Delegate callback, Object args, Boolean isSingleParameter,
Delegate catchHandler)
at
System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority
priority, TimeSpan timeout, Delegate method, Object args, Boolean
isSingleParameter)
at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority
priority, Delegate method, Object arg)
at MS.Internal.AppModel.ApplicationProxyInternal.Move(Int32 x,
Int32 y, Int32 width, Int32 height)

My System SpecsSystem Spec
Old 04-27-2006   #2 (permalink)
Tom Mulcahy [MSFT]
Guest


 

RE: Bug: MediaElement throws exception on application resize

Sounds like a bug. What version of Avalon are you running? Can you show me
the repro code? (the simpler the better)

Thanks,
Tom

"Philippe Lavoie" wrote:

> Hi,
>
> When I resize my PresentationHost window, the MediaElement throws an
> exception. Otherwise, it works fine. Please help
>
> Phil
>
> PS the animation is within a storyboard.
>
> System.Runtime.InteropServices.COMException crossed an AppDomain boundary
> Message="An outgoing call cannot be made since the application is
> dispatching an input-synchronous call. (Exception from HRESULT:
> 0x8001010D (RPC_E_CANTCALLOUT_ININPUTSYNCCALL))"
> Source="mscorlib"
> ErrorCode=-2147417843
> StackTrace:
> at
> System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32
> errorCode, IntPtr errorInfo)
> at
> System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
> at MS.Internal.HRESULT.Check(Int32 hr)
> at System.Windows.Media.MediaPlayer.GetPosition()
> at System.Windows.Media.MediaPlayer.get_Position()
> at System.Windows.Media.MediaClock.GetCurrentTimeCore()
> at
> System.Windows.Media.Animation.Clock.ComputeSyncSlip(TimeIntervalCollection&
> parentIntervalCollection, TimeSpan currentParentTime, Double
> currentParentSpeed, Double appliedSpeedRatio)
> at
> System.Windows.Media.Animation.Clock.ComputeLocalStateHelper(Boolean
> performTickOperations)
> at System.Windows.Media.Animation.Clock.ComputeLocalState()
> at System.Windows.Media.Animation.ClockGroup.ComputeTreeState()
> at System.Windows.Media.Animation.TimeManager.Tick()
> at
> System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object
> resizedCompositionTarget)
> at System.Windows.Media.MediaContext.RenderMessageHandler(Object
> resizedCompositionTarget)
> at System.Windows.Media.MediaContext.Resize(ICompositionTarget
> resizedCompositionTarget)
> at System.Windows.Interop.HwndTarget.OnResize()
> at System.Windows.Interop.HwndTarget.HandleMessage(Int32 msg,
> IntPtr wparam, IntPtr lparam)
> at
> System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd,
> Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
> at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr
> wParam, IntPtr lParam, Boolean& handled)
> at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
> at
> System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate
> callback, Object args, Boolean isSingleParameter)
> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object
> source, Delegate callback, Object args, Boolean isSingleParameter,
> Delegate catchHandler)
> at
> System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority
> priority, TimeSpan timeout, Delegate method, Object args, Boolean
> isSingleParameter)
> at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority
> priority, Delegate method, Object arg)
> at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg,
> IntPtr wParam, IntPtr lParam)
> at MS.Win32.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc,
> IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
> at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg,
> IntPtr wParam, IntPtr lParam)
> at MS.Win32.UnsafeNativeMethods.SetWindowPos(HandleRef hWnd,
> HandleRef hWndInsertAfter, Int32 x, Int32 y, Int32 cx, Int32 cy, Int32
> flags)
> at MS.Internal.AppModel.RootBrowserWindow.ResizeMove(Int32
> xDeviceUnits, Int32 yDeviceUnits, Int32 widthDeviceUnits, Int32
> heightDeviceUnits)
> at
> MS.Internal.AppModel.ApplicationProxyInternal._MoveDelegate(Object moveArgs)
> at
> System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate
> callback, Object args, Boolean isSingleParameter)
> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object
> source, Delegate callback, Object args, Boolean isSingleParameter,
> Delegate catchHandler)
> at
> System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority
> priority, TimeSpan timeout, Delegate method, Object args, Boolean
> isSingleParameter)
> at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority
> priority, Delegate method, Object arg)
> at MS.Internal.AppModel.ApplicationProxyInternal.Move(Int32 x,
> Int32 y, Int32 width, Int32 height)
>

My System SpecsSystem Spec
Old 05-01-2006   #3 (permalink)
Philippe Lavoie
Guest


 

Re: Bug: MediaElement throws exception on application resize

I forwarded a sample to Robert Wlodarczyk at Microsoft. He says that he
can't reproduce locally. But that problem occurs on every machine here...

Phil


Tom Mulcahy [MSFT] wrote:
> Sounds like a bug. What version of Avalon are you running? Can you show me
> the repro code? (the simpler the better)
>
> Thanks,
> Tom
>
> "Philippe Lavoie" wrote:
>
>
>>Hi,
>>
>>When I resize my PresentationHost window, the MediaElement throws an
>>exception. Otherwise, it works fine. Please help
>>
>>Phil
>>
>>PS the animation is within a storyboard.
>>
>>System.Runtime.InteropServices.COMException crossed an AppDomain boundary
>> Message="An outgoing call cannot be made since the application is
>>dispatching an input-synchronous call. (Exception from HRESULT:
>>0x8001010D (RPC_E_CANTCALLOUT_ININPUTSYNCCALL))"
>> Source="mscorlib"
>> ErrorCode=-2147417843
>> StackTrace:
>> at
>>System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32
>>errorCode, IntPtr errorInfo)
>> at
>>System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
>> at MS.Internal.HRESULT.Check(Int32 hr)
>> at System.Windows.Media.MediaPlayer.GetPosition()
>> at System.Windows.Media.MediaPlayer.get_Position()
>> at System.Windows.Media.MediaClock.GetCurrentTimeCore()
>> at
>>System.Windows.Media.Animation.Clock.ComputeSyncSlip(TimeIntervalCollection&
>>parentIntervalCollection, TimeSpan currentParentTime, Double
>>currentParentSpeed, Double appliedSpeedRatio)
>> at
>>System.Windows.Media.Animation.Clock.ComputeLocalStateHelper(Boolean
>>performTickOperations)
>> at System.Windows.Media.Animation.Clock.ComputeLocalState()
>> at System.Windows.Media.Animation.ClockGroup.ComputeTreeState()
>> at System.Windows.Media.Animation.TimeManager.Tick()
>> at
>>System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object
>>resizedCompositionTarget)
>> at System.Windows.Media.MediaContext.RenderMessageHandler(Object
>>resizedCompositionTarget)
>> at System.Windows.Media.MediaContext.Resize(ICompositionTarget
>>resizedCompositionTarget)
>> at System.Windows.Interop.HwndTarget.OnResize()
>> at System.Windows.Interop.HwndTarget.HandleMessage(Int32 msg,
>>IntPtr wparam, IntPtr lparam)
>> at
>>System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd,
>>Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
>> at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr
>>wParam, IntPtr lParam, Boolean& handled)
>> at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
>> at
>>System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate
>>callback, Object args, Boolean isSingleParameter)
>> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object
>>source, Delegate callback, Object args, Boolean isSingleParameter,
>>Delegate catchHandler)
>> at
>>System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority
>>priority, TimeSpan timeout, Delegate method, Object args, Boolean
>>isSingleParameter)
>> at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority
>>priority, Delegate method, Object arg)
>> at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg,
>>IntPtr wParam, IntPtr lParam)
>> at MS.Win32.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc,
>>IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
>> at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg,
>>IntPtr wParam, IntPtr lParam)
>> at MS.Win32.UnsafeNativeMethods.SetWindowPos(HandleRef hWnd,
>>HandleRef hWndInsertAfter, Int32 x, Int32 y, Int32 cx, Int32 cy, Int32
>>flags)
>> at MS.Internal.AppModel.RootBrowserWindow.ResizeMove(Int32
>>xDeviceUnits, Int32 yDeviceUnits, Int32 widthDeviceUnits, Int32
>>heightDeviceUnits)
>> at
>>MS.Internal.AppModel.ApplicationProxyInternal._MoveDelegate(Object moveArgs)
>> at
>>System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate
>>callback, Object args, Boolean isSingleParameter)
>> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object
>>source, Delegate callback, Object args, Boolean isSingleParameter,
>>Delegate catchHandler)
>> at
>>System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority
>>priority, TimeSpan timeout, Delegate method, Object args, Boolean
>>isSingleParameter)
>> at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority
>>priority, Delegate method, Object arg)
>> at MS.Internal.AppModel.ApplicationProxyInternal.Move(Int32 x,
>>Int32 y, Int32 width, Int32 height)
>>

My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using the ObjectDataProvider always throws an exception... Desmond Cassidy Avalon 1 06-20-2007 07:05 AM
SendKeys throws "Hook cannot be created" security exception in Vista Beta 2 Dan Dautrich Vista security 1 03-28-2007 03:47 PM
Printing some fonts throws exception in XPS to GDI conversion GeneW Avalon 0 01-24-2007 04:39 PM
BUG: MediaPlayer throws an exception after multiple play / pause Philippe Lavoie Avalon 0 04-06-2006 04:04 PM


Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51