Version 2.5.2 MiniCube Sample MainPage.Xaml problem #274
Comments
I removed this code from App.xaml.cs |
I will have a look at at again. I think it is a Driver-Bug and happens only rarely on my system, so it is hard to track. Does your Display-Driver also crash (you get a notification bubble)? |
My Display-Driver does Not crash. |
The designer works fine on my machine (Win 8.1 x64, NVidia GPU, Intel CPU). Try to modify the constructor of the
If you can confirm that this fix works for you - I will commit it to the main repository. |
The fix works perfectly. |
Glad to hear it works, because this also was my idea to fix it for now. I will send you a Pull request once soon, when the changes are made and clean. But I think even better solutions are possible, since I once had even 3D-Objects show up even in Designer. |
@TheWhiteAmbit, such contribution would be very nice. Meanwhile, I have commited a fix that just disables D3D initialization in designer mode. |
Ok, just did the same - think I was late because I had to switch to master-integration. |
Yes, disabling target.OnRender += cubeRenderer.Render; and removing the fix also works. From: TheWhiteAmbit Ok, just did the same - think I was late because I had to switch to master-integration. — |
Thank you Jerry. Have been a little bit p.o.'d because I contributed the Win81-Sample and Artiom does not give me a minute before pushing a workaround instead of a clean fix. This is where my motivation to find a real fix suddenly disappeared for now... it just cripples the sample to stop 3D in Design-Mode were the failure is in some other part... this is not clean. You could have just used this workaround until I find a real solution. |
I don't mind if my code is being rewritten - I will always accept a better solution, as this is open-source. Some parts of the project are more important and some are less. If something is not related directly to library's functionality (check my first comment) - there isn't any issue having a not-so-clean solution and I would be grateful if anyone else can improve it. |
Well... Thanks for all the effort ! Jerry... From: Artiom Ciumac I don't mind if my code is being rewritten - I will always accept a better solution, as this is open-source. Some parts of the project are more important and some are less. If something is not related directly to library's functionality (check my first comment) - there isn't any issue having a not-so-clean solution and I would be grateful if anyone else can improve it. — |
Sorry Artiom, not really your fault. Had a bad day. But I was just going half way for a clean solution, and a fix just disabling D3D completely killed my motivation to work further on it, knowing there will be merge action etc. later. Maybe it will be back later, but a little bit more coordination on it would have been nice. |
I just sent you a Pull request with DesignModeD3DRendering exposed as DependencyProperty of the Direct3DUserControl, what might be a good compromise, because when there is no bad D3D as in CubeRenderer.cs it still makes perfect sense to allow it. Default is off. |
In the Win81Demos sample in version 2.5.1
Attempting to display MainPage.xaml causes this exception.:
An Unhandled exception has occurred.
Click here to reload the Designer.
Details:
System,Runtine.Remoting.RemotingException
[4264] Designer process terminated unexpectedly.
Reloading just repeats the exception.
I removed this code from App.xaml.cs
In my case, I have Xaml controls on the MainPage, so this is unusable.
The text was updated successfully, but these errors were encountered: