Exception when I click on the Content

Apr 23, 2009 at 5:46 PM
Hi there,

I'm trying Thriple for make some effects in a prototype and I've not been luck in my first steps :D

I use a TabControl in a ContentControl3D, and when I try to change to the other tab (there're only two, and are empty) this exception is thrown:

System.InvalidOperationException was unhandled
  Message="An unspecified error occurred on the render thread."
       at System.Windows.Media.MediaContext.NotifyPartitionIsZombie(Int32 failureCode)
       at System.Windows.Media.MediaContext.NotifyChannelMessage()
       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.WrappedInvoke(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.DispatchMessage(MSG& msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.Run()
       at System.Windows.Application.RunDispatcher(Object ignore)
       at System.Windows.Application.RunInternal(Window window)
       at System.Windows.Application.Run(Window window)
       at System.Windows.Application.Run()
       at DataKraftPrototype.App.Main() in C:\Users\vtortola.dk\Documents\Visual Studio 2008\Projects\Prototype\Prototype\obj\Debug\App.g.cs:line 48
       at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()

So... any idea about what could be the problem?

Apr 23, 2009 at 10:42 PM
Wow, that sucks.  Unfortunately none of my code is in the call stack, so it looks like you've found a bug in WPF itself.  I'll log this issue with Microsoft.
Apr 23, 2009 at 10:59 PM
Edited Apr 23, 2009 at 11:02 PM
Great! I've found two bugs in WPF in 4 days :(

It´s sad because that means Microsoft is not gonna solve it till .NET 4.0 :(

Do you need an example or something?