startup error:
Code:
System.UnauthorizedAccessException: Access to "c:\test1.txt" was denied.
bei System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
bei System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
bei System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
bei System.IO.FileStream..ctor(String path, FileMode mode)
bei LFStudio.MainWindow..ctor()
why does it want to access c:\test1.txt?
also the lfo firen splash was a bit unsettling
win 7 noticed that the program didn't run correctly on the first start and did some compatibility settings on it's own
on the second run it got the same error as above
+ it detected unhandled exceptions and then terminated:
Code:
System.NullReferenceException: Object reference not set to an instance of an object.
bei LFStudio.Controls.lfDrawingCanvas.ApplyFocusSetting(Double width, Double height, Double scaleFactor)
bei LFStudio.MainWindow.UpdateSGVFocus()
bei System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
bei System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
bei System.Windows.FrameworkElement.OnRenderSizeChanged(SizeChangedInfo sizeInfo)
bei System.Windows.ContextLayoutManager.fireSizeChangedEvents()
bei System.Windows.ContextLayoutManager.UpdateLayout()
bei System.Windows.Interop.HwndSource.SetLayoutSize()
bei System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
bei System.Windows.Window.SetRootVisualAndUpdateSTC()
bei System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)
bei System.Windows.Window.CreateSourceWindow(Boolean duringShow)
bei System.Windows.Window.ShowHelper(Object booleanBox)
bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
bei MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
bei System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
bei System.Windows.Threading.DispatcherOperation.InvokeImpl()
bei System.Threading.ExecutionContext.runTryCode(Object userData)
bei System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
bei System.Windows.Threading.DispatcherOperation.Invoke()
bei System.Windows.Threading.Dispatcher.ProcessQueue()
bei System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
bei MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
bei MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
bei System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
bei System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
bei MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
bei MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
bei System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
bei System.Windows.Application.RunInternal(Window window)
bei System.Windows.Application.Run()
bei LFStudio.App.Main()
third run same as second (btw i like the save modded files button if it does work in case of such an emergency)
fourth run as admin - now i do have some test1 and test2.txt inside c:
but the program actually starts without any problems this time - please remove this test.txt requirement ... or in fact any other direct c: access leave it to the programs own path and the projects paths
Code:
Application_Startup: 0.0017374 sec.
InitializeComponent(): 3.567233 sec.
public MainWindow(): 14.0790614 sec.
Layout restore: 0.6580604 sec.
Load 3 plugins.
testing feedback on the program itself later on - i will have some fun with those visual frames hopefully
edit:
why is there no simple open or at least import file?
as i already have most of my things or templates lying around i do not ever start with a blank (new) file.
also consider allowing to simply edit files without having a project open.
and the static graphic viewer only gave me 'invalid pic' ... how exactly do i get it to work?