- 378
- 2
Когда открываю модель в Tecnhe, она крашит.
Код:
<System.NullReferenceException>
<Message>Ссылка на объект не указывает на экземпляр объекта.</Message>
<StackTrace>
<Frame>echne.MainWindowViewModel.set_Texture(BitmapSource value)</Frame>
<Frame>echne.MainWindowViewModel.OpenModel(TechneModel techneModel)</Frame>
<Frame>echne.ViewModel.NewProjectViewModel.ExecuteCreateModelCommand(Object o)</Frame>
<Frame>echne.Views.NewProjectView.Window_Closing(Object sender, CancelEventArgs e)</Frame>
<Frame>ystem.Windows.Window.OnClosing(CancelEventArgs e)</Frame>
<Frame>ystem.Windows.Window.WmClose()</Frame>
<Frame>ystem.Windows.Window.WindowFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)</Frame>
<Frame>ystem.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)</Frame>
<Frame>S.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)</Frame>
<Frame>S.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)</Frame>
<Frame>ystem.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)</Frame>
<Frame>S.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)</Frame>
</StackTrace>
<Data>
<System.Object>null</System.Object>
</Data>
</System.NullReferenceException>