The Capture folder (path) is missing or can not be written to

A place to report problems and bugs in SharpCap
Forum rules


If you have a problem or question, please check the FAQ to see if it already has an answer : https://www.sharpcap.co.uk/sharpcap-faqs

Please also read about Troubleshooting USB Issues before posting.

*** Please do not post license keys - please report any problems with licensing to 'admin' by private message ***

Please include the following details in any bug report:

* Version of SharpCap
* Camera and other hardware being user
* Operating system version
* Contents of the SharpCap log after the problem has occurred.
[If SharpCap crashes, please send the bug report when prompted instead of including the log]
astrozombieimages
Posts: 6
Joined: Sat Jul 25, 2020 3:57 am

Re: The Capture folder (path) is missing or can not be written to

#11

Post by astrozombieimages »

At first glance, it appears that Windows is up to date and that there's nothing left to get, however, the update that you pointed out is "getting ready" and I will "be notified when it's ready to install." I tried to get it manually following the instructions on the Microsoft page but, oh surprise, that doesn't work. So, in short, I'm sold that the issue is my OS and not SharpCap and wanted to thank you all for your help!
User avatar
turfpit
Posts: 1779
Joined: Mon Feb 13, 2017 8:13 pm
Location: UK
Contact:

Re: The Capture folder (path) is missing or can not be written to

#12

Post by turfpit »

I doubt the update will fix your issue. Mind you corrupt profiles helped me pay off the mortgage.

Dave
lstretch
Posts: 2
Joined: Mon Nov 30, 2020 3:10 am

Re: The Capture folder (path) is missing or can not be written to

#13

Post by lstretch »

Hi. I am having the same issue on a Windows 10 Dell Latitude E7450 laptop. Everything is up to date and I've tried a few versions of SharpCap V3.2

After installing, the program wanted access through the Windows firewall. I don't have any of the hardware listed in a quick google search for why it wanted access, so it was denied.

On capturing my real camera or the internal test cameras, the program reports that files cannot be written. Has there been any progress on a fix for this issue?

The drive in my laptop is a Samsung 256GB SSD.

I installed the same program in my desktop PC. On running it, there was no request for firewall access and it seems to work properly with the test cameras. I need to run this on the laptop though, for obvious reasons...

Thanks if you can give me any help!

Regards,
Lindsay

Here's the log file if it's any help:
Info: 19:23:15.1415987 Thread:#1 SharpCap.Program.Main() :: Starting...
Info: 19:23:15.3290940 Thread:#1 SharpCap.Program.SetupNBUG() :: Setting up bug reporting.
Info: 19:23:15.3759773 Thread:#1 SharpCap.LogSystemInfo.Run() :: Starting thread to log system info
Info: 19:23:15.3915852 Thread:LogInfo Thread#9 SharpCap.LogSystemInfo.ThreadProc() :: SharpCap Version 3.2.6452.0
Info: 19:23:15.3915852 Thread:LogInfo Thread#9 SharpCap.LogSystemInfo.ThreadProc() :: GC Memory 118Mb
Info: 19:23:15.3915852 Thread:LogInfo Thread#9 SharpCap.LogSystemInfo.ThreadProc() :: Process Memory 168Mb
Info: 19:23:15.3915852 Thread:LogInfo Thread#9 SharpCap.LogSystemInfo.ThreadProc() :: Total Physical Memory 8064Mb
Info: 19:23:15.3915852 Thread:LogInfo Thread#9 SharpCap.LogSystemInfo.ThreadProc() :: Available Physical Memory 3821Mb
Info: 19:23:15.3915852 Thread:#1 SharpCap.Program.RunApp(Boolean showSplash) :: Setting up application
Info: 19:23:15.4072055 Thread:#1 SharpCap.Program.RunApp(Boolean showSplash) :: Initializing WPF
Debug: 19:23:15.4697021 Thread:#1 SharpCap.UI.SharpCapForm..ctor() :: Started
Info: 19:23:15.5165732 Thread:#1 SharpCap.ImageProcessing.CombinedAstrometryPlateSolveFactory.CheckInstalledImpl() :: Plate solver detection : Manually configured Astrometry - Not configured
Info: 19:23:15.5165732 Thread:#1 SharpCap.ImageProcessing.CombinedAstrometryPlateSolveFactory.CheckInstalledImpl() :: Plate solver detection : AstroTortilla - Not found
Info: 19:23:15.5165732 Thread:#1 SharpCap.ImageProcessing.CombinedAstrometryPlateSolveFactory.CheckInstalledImpl() :: Plate solver detection : All Sky Plate Solver - Not found at C:\Users\Windows\AppData\Local\Astrometry
Info: 19:23:15.5165732 Thread:#1 SharpCap.ImageProcessing.CombinedAstrometryPlateSolveFactory.CheckInstalledImpl() :: Plate solver detection : Ansvr - Not found at C:\Users\Windows\AppData\Local\cygwin_ansvr
Info: 19:23:15.5165732 Thread:#1 SharpCap.ImageProcessing.CombinedAstrometryPlateSolveFactory.CheckInstalledImpl() :: Plate solver detection : Cygwin/Astrometry based - Not found at C:\cygwin
Info: 19:23:15.5165732 Thread:LogInfo Thread#9 SharpCap.LogSystemInfo.ThreadProc() :: Operating System : Microsoft Windows 10 Pro
Info: 19:23:15.5165732 Thread:LogInfo Thread#9 SharpCap.LogSystemInfo.ThreadProc() :: Full OS Version 10.0.18363
Info: 19:23:15.5165732 Thread:LogInfo Thread#9 SharpCap.LogSystemInfo.ThreadProc() :: OS is 64 bit, SharpCap is 64 bit.
Info: 19:23:15.5634451 Thread:#1 SharpCap.MultiCaptureProvider.AddProvider() :: Added device enumerator of type QHYDeviceEnumerator
Info: 19:23:15.5634451 Thread:#1 SharpCap.MultiCaptureProvider.AddProvider() :: Added device enumerator of type ASIDeviceEnumerator
Info: 19:23:15.5634451 Thread:#1 SharpCap.MultiCaptureProvider.AddProvider() :: Added device enumerator of type AltairDeviceEnumerator
Info: 19:23:15.5634451 Thread:#1 SharpCap.MultiCaptureProvider.AddProvider() :: Added device enumerator of type SVBonyDeviceEnumerator
Info: 19:23:15.5634451 Thread:#1 SharpCap.Base.InterfaceFactory`2.ScanDll(String filename) :: Probing for camera providers : C:\Program Files\SharpCap 3.2 (64 bit)\SharpCap.Cameras.Altair.dll
Info: 19:23:15.5634451 Thread:#1 SharpCap.Base.InterfaceFactory`2.ScanDll(String filename) :: Probing for camera providers : C:\Program Files\SharpCap 3.2 (64 bit)\SharpCap.Cameras.ASCOMCamera.dll
Info: 19:23:15.5634451 Thread:#1 SharpCap.Base.InterfaceFactory`2.ScanDll(String filename) :: Probing for camera providers : C:\Program Files\SharpCap 3.2 (64 bit)\SharpCap.Cameras.ASI.dll
Info: 19:23:15.5634451 Thread:#1 SharpCap.Base.InterfaceFactory`2.ScanDll(String filename) :: Probing for camera providers : C:\Program Files\SharpCap 3.2 (64 bit)\SharpCap.Cameras.Atik.dll
Info: 19:23:15.5790690 Thread:#1 SharpCap.Base.InterfaceFactory`2.ScanDll(String filename) :: Probing for camera providers : C:\Program Files\SharpCap 3.2 (64 bit)\SharpCap.Cameras.Celestron.dll
Info: 19:23:15.5790690 Thread:#1 SharpCap.Base.InterfaceFactory`2.ScanDll(String filename) :: Probing for camera providers : C:\Program Files\SharpCap 3.2 (64 bit)\SharpCap.Cameras.DS3.dll
Info: 19:23:15.5790690 Thread:#1 SharpCap.Base.InterfaceFactory`2.ScanDll(String filename) :: Probing for camera providers : C:\Program Files\SharpCap 3.2 (64 bit)\SharpCap.Cameras.Fake.dll
Info: 19:23:15.5790690 Thread:#1 SharpCap.Base.InterfaceFactory`2.ScanDll(String filename) :: Probing for camera providers : C:\Program Files\SharpCap 3.2 (64 bit)\SharpCap.Cameras.Moravian.dll
Info: 19:23:15.5790690 Thread:#1 SharpCap.Base.InterfaceFactory`2.ScanDll(String filename) :: Probing for camera providers : C:\Program Files\SharpCap 3.2 (64 bit)\SharpCap.Cameras.NewDirectShow.dll
Info: 19:23:15.5790690 Thread:#1 SharpCap.Base.InterfaceFactory`2.ScanDll(String filename) :: Probing for camera providers : C:\Program Files\SharpCap 3.2 (64 bit)\SharpCap.Cameras.QHY.dll
Info: 19:23:15.5790690 Thread:#1 SharpCap.Base.InterfaceFactory`2.ScanDll(String filename) :: Probing for camera providers : C:\Program Files\SharpCap 3.2 (64 bit)\SharpCap.Cameras.SVBony.dll
Info: 19:23:15.5790690 Thread:#1 SharpCap.MultiCaptureProvider.AddProvidersByReflection(String[] providerNames) :: Added device enumerator of type CelestronDeviceEnumerator
Info: 19:23:15.5790690 Thread:#1 SharpCap.MultiCaptureProvider.AddProvider() :: Added device enumerator of type MoravianDeviceEnumerator
Info: 19:23:15.5790690 Thread:#1 SharpCap.MultiCaptureProvider.AddProvider() :: Added device enumerator of type AtikDeviceEnumerator
Info: 19:23:15.5790690 Thread:#1 SharpCap.MultiCaptureProvider.AddProvider() :: Added device enumerator of type DS3DeviceEnumerator
Info: 19:23:15.5790690 Thread:#1 SharpCap.MultiCaptureProvider.AddProvider() :: Added device enumerator of type AscomDeviceEnumerator
Info: 19:23:15.5790690 Thread:#1 SharpCap.MultiCaptureProvider.AddProvider() :: Added device enumerator of type FolderMonitorDeviceEnumerator
Info: 19:23:15.5790690 Thread:#1 SharpCap.MultiCaptureProvider.AddProvider() :: Added device enumerator of type FakeDeviceEnumerator
Info: 19:23:15.6415837 Thread:#1 SharpCap.ProxyFinder`1.LoadProxiesForFactoryType(Type t) :: Loading Hardware Proxies from SharpCap.WheelProxy.ASCOM.WheelFactory
Error: 19:23:15.6571880 Thread:#1 SharpCap.ProxyFinder`1.LoadProxiesForFactoryType(Type t) :: Exception of type 'FileNotFoundException' from Failed to Fetch available devices from proxy factory : Could not load file or assembly 'ASCOM.Utilities, Version=6.0.0.0, Culture=neutral, PublicKeyToken=565de7938946fba7' or one of its dependencies. The system cannot find the file specified.
Stack Trace: at SharpCap.WheelProxy.ASCOM.WheelFactory.GetAvailableDevices()
at SharpCap.ProxyFinder`1.AvailableDevices(IFactory`1 ff) in C:\Documents\Source Code\SharpCap3.2\src\SharpCap\Utils\ProxyFinder.cs:line 83
Info: 19:23:15.6571880 Thread:#1 SharpCap.ProxyFinder`1.LoadProxiesForFactoryType(Type t) :: Loading Hardware Proxies from SharpCap.WheelProxy.ZWO.WheelFactory
Info: 19:23:15.6571880 Thread:#1 SharpCap.ProxyFinder`1.LoadProxiesForFactoryType(Type t) :: Loading Hardware Proxies from SharpCap.WheelProxy.ZWO.ManualWheelFactory
Info: 19:23:15.6571880 Thread:#1 SharpCap.ProxyFinder`1.LoadProxiesForFactoryType(Type t) :: Found device Manual Filter Wheel
Warning: 19:23:15.6728317 Thread:#1 SharpCap.FocuserFinder..ctor() :: Exception of type 'TargetInvocationException' from Failed to loaded FocuserProxy assembly Sharpcap.FocuserProxy.ASCOM.dll because : Exception has been thrown by the target of an invocation. : Exception has been thrown by the target of an invocation.
Stack Trace: at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at SharpCap.FocuserFinder.LoadFocusers(Type t) in C:\Documents\Source Code\SharpCap3.2\src\SharpCap\Utils\FocuserFinder.cs:line 116
at SharpCap.FocuserFinder.TryLoadFocuserProxy(FileInfo fi) in C:\Documents\Source Code\SharpCap3.2\src\SharpCap\Utils\FocuserFinder.cs:line 99
Warning: 19:23:15.6728317 Thread:#1 SharpCap.Base.Utilities.Logger.Warn(Exception e, String action, String additionalInfo, Boolean stackTrace) :: Inner Exception : System.IO.FileNotFoundException: Could not load file or assembly 'ASCOM.Utilities, Version=6.0.0.0, Culture=neutral, PublicKeyToken=565de7938946fba7' or one of its dependencies. The system cannot find the file specified.
File name: 'ASCOM.Utilities, Version=6.0.0.0, Culture=neutral, PublicKeyToken=565de7938946fba7'
at Sharpcap.FocuserProxy.ASCOM.Factory..ctor()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Warning: 19:23:15.6884558 Thread:#1 SharpCap.ProxyFinder`1..ctor(String pattern) :: Exception from Failed to loaded Hardware Proxy assembly SharpCap.MountProxy.ASCOM.dll because : Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. : Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
Warning: 19:23:15.8759243 Thread:#1 SharpCap.Models.Application.ValidateCaptureFolder() :: Exception of type 'UnauthorizedAccessException' from Failed to write test file to capture folder : C:\Users\Windows\Desktop\SharpCap Captures\SharpCap is testing the capture folder.txt : Access to the path 'C:\Users\Windows\Desktop\SharpCap Captures\SharpCap is testing the capture folder.txt' is denied.
Stack Trace: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at 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, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
at SharpCap.Models.Camera.IsBadFolder(String folder) in C:\Documents\Source Code\SharpCap3.2\src\SharpCap\Models\Camera.cs:line 1423
Info: 19:23:15.8915470 Thread:#1 SharpCap.Models.Application.ValidateCaptureFolder() :: Resetting capture folder to default because C:\Users\Windows\Desktop\SharpCap Captures was invalid.
Info: 19:23:15.8915470 Thread:#1 SharpCap.Models.Application.GetDefaultCaptureFolder() :: Creating default capture folder : C:\Users\Windows\Desktop\SharpCap Captures (exists:True)
Info: 19:23:15.8915470 Thread:#1 SharpCap.Models.Application.GetDefaultCaptureFolder() :: Created default capture folder : C:\Users\Windows\Desktop\SharpCap Captures (exists:True)
Info: 19:23:15.8915470 Thread:#1 SharpCap.UI.SharpCapForm..ctor() :: Application model created
Info: 19:23:16.1571553 Thread:#1 SharpCap.UI.SharpCapForm..ctor() :: Control Form created
Info: 19:23:16.1727772 Thread:#1 SharpCap.UI.SharpCapForm..ctor() :: View model initialized
Info: 19:23:16.2196483 Thread:#1 SharpCap.UI.SharpCapForm..ctor() :: Preview host created
Info: 19:23:16.2196483 Thread:#1 SharpCap.Base.Utilities.Logger.LogStackTrace(LogLevel level, String msg) :: Parent being changed on PreviewPanel


Debug: 19:23:16.5633745 Thread:#1 SharpCap.UI.SharpCapForm..ctor() :: Ended
Info: 19:23:16.5633745 Thread:LogInfo Thread#9 SharpCap.LogSystemInfo.ThreadProc() :: CPU : Intel(R) Core(TM) i7-5600U CPU @ 2.60GHz with 4 cores.
Info: 19:23:16.6414946 Thread:LogInfo Thread#9 SharpCap.LogSystemInfo.ThreadProc() :: OS Full Name = Microsoft Windows 10 Pro
Info: 19:23:16.6571208 Thread:LogInfo Thread#9 SharpCap.LogSystemInfo.ThreadProc() :: AVSoftware = Avast Antivirus
Info: 19:23:16.6571208 Thread:LogInfo Thread#9 SharpCap.LogSystemInfo.ThreadProc() :: Windows Media Version : '12.0.18362.1110'
Debug: 19:23:16.7622589 Thread:#1 SharpCap.UI.SharpCapForm.SharpCapForm_Load(Object sender, EventArgs e) :: Started
Debug: 19:23:16.7652618 Thread:#1 SharpCap.UI.SharpCapForm.SharpCapForm_Load(Object sender, EventArgs e) :: Ended
Debug: 19:23:16.8042342 Thread:#1 SharpCap.UI.SharpCapForm.SharpCap_Shown(Object sender, EventArgs e) :: Started
Debug: 19:23:16.8332186 Thread:#1 SharpCap.UI.SharpCapForm.SharpCap_Shown(Object sender, EventArgs e) :: Timebomb checked
Info: 19:23:16.8412131 Thread:#1 SharpCap.Models.Application.get_Cameras() :: Starting scan for cameras
Info: 19:23:16.8582035 Thread:#11 SharpCap.Base.SimpleDeviceEnumerator.GetDevices(Func`1 deviceNameFinder, String infoText, Func`2 fullNameToDispayName, Func`3 tagCreatorFunc) :: FindCameras - found 0 cameras
Info: 19:23:17.0191139 Thread:#7 SharpCap.Base.SimpleDeviceEnumerator.GetDevices(Func`1 deviceNameFinder, String infoText, Func`2 fullNameToDispayName, Func`3 tagCreatorFunc) :: QHYCameraFinder - found 0 cameras
Warning: 19:23:17.0880715 Thread:#19 System.Threading.Tasks.Task`1.InnerInvoke() :: Exception from fetching cameras from provider : Atik Cameras : Unable to load DLL 'AtikCameras.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
Warning: 19:23:17.0900707 Thread:#19 System.Threading.Tasks.Task`1.InnerInvoke() :: Exception from fetching cameras from provider : ASCOM Cameras : Could not load file or assembly 'ASCOM.Utilities, Version=6.0.0.0, Culture=neutral, PublicKeyToken=565de7938946fba7' or one of its dependencies. The system cannot find the file specified.
Debug: 19:23:17.0910707 Thread:#19 SharpCap.Cameras.Fake.FakeDeviceEnumerator.GetDevices() :: Started
Debug: 19:23:17.0910707 Thread:#19 SharpCap.Cameras.Fake.FakeDeviceEnumerator.GetDevices() :: Ended
Info: 19:23:17.2969533 Thread:#1 SharpCap.MultiCaptureProvider.PostProcessDevicesList(List`1 items, BrandingInfo brandingInfo) :: Detected Camera: Integrated Webcam (DirectShow Cameras)
Info: 19:23:17.3009526 Thread:#1 SharpCap.MultiCaptureProvider.PostProcessDevicesList(List`1 items, BrandingInfo brandingInfo) :: Detected Camera: Nikon Webcam Utility (DirectShow Cameras)
Info: 19:23:17.3009526 Thread:#1 SharpCap.MultiCaptureProvider.PostProcessDevicesList(List`1 items, BrandingInfo brandingInfo) :: Detected Camera: Folder Monitor Camera (Virtual Cameras)
Info: 19:23:17.3015348 Thread:#1 SharpCap.MultiCaptureProvider.PostProcessDevicesList(List`1 items, BrandingInfo brandingInfo) :: Detected Camera: Test Camera 1 (Deep Sky) (Test Cameras)
Info: 19:23:17.3015348 Thread:#1 SharpCap.MultiCaptureProvider.PostProcessDevicesList(List`1 items, BrandingInfo brandingInfo) :: Detected Camera: Test Camera 2 (High Speed) (Test Cameras)
Info: 19:23:17.3189408 Thread:#1 SharpCap.ViewModels.SharpCapViewModel.appModel_OnCaptureEvent(Object sender, CaptureEventArgs e) :: CameraListUpdated event received in UI thread
Debug: 19:23:17.4396591 Thread:#1 SharpCap.UI.SharpCapForm.SharpCap_Shown(Object sender, EventArgs e) :: Docking setup
Debug: 19:23:17.4396591 Thread:#1 SharpCap.UI.SharpCapForm.SharpCap_Shown(Object sender, EventArgs e) :: Startup scripts (if any) run
Debug: 19:23:17.4396591 Thread:#1 SharpCap.UI.SharpCapForm.SharpCap_Shown(Object sender, EventArgs e) :: Menu updated
Info: 19:23:17.6115205 Thread:#1 SharpCap.SharpCapApp.get_ForceSoftwareRendering() :: WPF Rendering tier is 2
Debug: 19:23:19.9722581 Thread:#1 SharpCap.UI.SharpCapForm.SharpCap_Shown(Object sender, EventArgs e) :: Splash and tips done
Debug: 19:23:20.0660160 Thread:#1 SharpCap.UI.SharpCapForm.SharpCap_Shown(Object sender, EventArgs e) :: Ended
Info: 19:23:25.5031202 Thread:#1 SharpCap.Models.Application+<>c__DisplayClass50_0.<set_SelectedCamera>b__0() :: Changing camera from none to Test Camera 1 (Deep Sky)
Info: 19:23:25.5499952 Thread:#1 SharpCap.ViewModels.SharpCapViewModel.appModel_OnCaptureEvent(Object sender, CaptureEventArgs e) :: OpeningDevice event received in UI thread
Debug: 19:23:25.5499952 Thread:#1 SharpCap.MultiCaptureProvider.OpenDevice(DeviceTagData deviceTag) :: Opening device : Test Camera 1 (Deep Sky) (via Test Cameras)
Info: 19:23:25.5656156 Thread:#1 SharpCap.Base.CaptureProviderBase`1.OpenDevice(DeviceTagData dtd) :: Started
Debug: 19:23:25.5656156 Thread:#1 SharpCap.Base.SimpleCaptureProvider.SetupDevice(DeviceTagData dtd) :: Started
Debug: 19:23:25.5656156 Thread:#1 SharpCap.Base.CaptureProviderBase`1.OpenDevice(DeviceTagData dtd) :: Ended
Info: 19:23:25.5656156 Thread:#1 SharpCap.Base.CaptureProviderBase`1.CreateCaptureControl() :: Started
Debug: 19:23:25.5656156 Thread:#1 SharpCap.Base.SimpleCaptureProvider.GetControls() :: Started
Info: 19:23:25.5968663 Thread:#1 SharpCap.Base.ColourSpacePropertyControl..ctor(IEnumFeature mainFeature, List`1 colourSpaces, IPreviewControl previewControl) :: Colour space RGB32 is valid.
Info: 19:23:25.5968663 Thread:#1 SharpCap.Base.ColourSpacePropertyControl..ctor(IEnumFeature mainFeature, List`1 colourSpaces, IPreviewControl previewControl) :: Colour space MONO8 is valid.
Info: 19:23:25.5968663 Thread:#1 SharpCap.Base.ColourSpacePropertyControl..ctor(IEnumFeature mainFeature, List`1 colourSpaces, IPreviewControl previewControl) :: Colour space MONO16 is valid.
Info: 19:23:25.5968663 Thread:#1 SharpCap.Base.ColourSpacePropertyControl..ctor(IEnumFeature mainFeature, List`1 colourSpaces, IPreviewControl previewControl) :: Colour space RAW16 is valid.
Info: 19:23:25.5968663 Thread:#1 SharpCap.Base.ColourSpacePropertyControl..ctor(IEnumFeature mainFeature, List`1 colourSpaces, IPreviewControl previewControl) :: Colour space RAW8 is valid.
Info: 19:23:25.6750029 Thread:#1 SharpCap.Base.Memory.Allocator.NumberOfMegabytesToMap() :: Paged memory check based on total memory of 8064Mb, available of 3796Mb
Info: 19:23:25.6750029 Thread:#1 SharpCap.Base.Memory.Allocator.NumberOfMegabytesToMap() :: Paged memory enabled at 1024Mb for Frame Cache and 1024Mb for LiveStack/Misc on 64 bit system.
Info: 19:23:25.6750029 Thread:#1 SharpCap.Base.Memory.Allocator..cctor() :: Assigning 1024Mb to non-pool memory and 1024Mb to the frame pool.
Info: 19:23:25.6750029 Thread:#1 SharpCap.Base.Memory.Allocator.NumberOfMegabytesToMap() :: Paged memory check based on total memory of 8064Mb, available of 3796Mb
Info: 19:23:25.6750029 Thread:#1 SharpCap.Base.Memory.Allocator.NumberOfMegabytesToMap() :: Paged memory enabled at 1024Mb for Frame Cache and 1024Mb for LiveStack/Misc on 64 bit system.
Info: 19:23:25.7531035 Thread:#1 SharpCap.Base.CaptureProviderBase`1.CreateCaptureControl() :: Ended
Info: 19:23:25.7531035 Thread:#1 SharpCap.Base.CaptureProviderBase`1.OpenDevice(DeviceTagData dtd) :: Ended
Debug: 19:23:25.7531035 Thread:#1 SharpCap.Models.Camera.ApplyDefaultProfile() :: Started
Info: 19:23:25.7687463 Thread:#1 SharpCap.MultiCaptureProvider.StartPreview() :: Starting preview on Test Camera 1 (Deep Sky)
Info: 19:23:25.7884639 Thread:#1 SharpCap.Base.CaptureProviderBase`1.StartPreview() :: Started
Info: 19:23:25.7964361 Thread:#1 SharpCap.Base.CaptureProviderBase`1.StartPreview() :: Starting Preview on Test Camera 1 (Deep Sky), 1280x960, RGB, 8bits
Debug: 19:23:25.8024359 Thread:#1 SharpCap.Base.BaseImageProvider.Start() :: Started
Debug: 19:23:25.8104302 Thread:#1 SharpCap.Base.CameraProxyBase.StartPreview() :: Started
Debug: 19:23:25.8124268 Thread:Grab Thread#21 SharpCap.Base.CameraProxyBase.GrabThreadProc() :: Started
Debug: 19:23:25.8544269 Thread:#1 SharpCap.Base.BaseImageProvider.Start() :: Ended
Debug: 19:23:25.8544269 Thread:#1 SharpCap.Base.BaseImageProvider.Start() :: Ended
Info: 19:23:25.8584027 Thread:#1 SharpCap.MultiCaptureProvider.SendCaptureEvent(Object sender, CaptureEventArgs e) :: Capture Event : StartPreview
Debug: 19:23:25.8644010 Thread:#1 SharpCap.UI.WPFControlForm.InitControls(CaptureControl captureControl, String deviceName) :: Started
Debug: 19:23:25.9233658 Thread:#1 SharpCap.Models.Application.OnStartPreview() :: Ended
Info: 19:23:26.0003396 Thread:#1 SharpCap.Models.Transforms.set_SelectedTransform(Transform value) :: Selecting transform None
Info: 19:23:26.0063391 Thread:#1 SharpCap.ViewModels.SharpCapViewModel.appModel_OnCaptureEvent(Object sender, CaptureEventArgs e) :: StartPreview event received in UI thread
Info: 19:23:26.0093338 Thread:#1 SharpCap.Base.CaptureProviderBase`1.StartPreview() :: Ended
Debug: 19:23:26.0273243 Thread:#1 SharpCap.Models.Camera.ApplyDefaultProfile() :: Ended (Profile applied)
Info: 19:23:29.7908934 Thread:#1 SharpCap.Models.Camera.PrepareToCapture() :: Started
Warning: 19:23:29.7918927 Thread:#1 SharpCap.Models.Camera.PrepareToCapture() :: Exception of type 'UnauthorizedAccessException' from Failed to write test file to capture folder : C:\Users\Windows\Desktop\SharpCap Captures\SharpCap is testing the capture folder.txt : Access to the path 'C:\Users\Windows\Desktop\SharpCap Captures\SharpCap is testing the capture folder.txt' is denied.
Stack Trace: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at 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, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
at SharpCap.Models.Camera.IsBadFolder(String folder) in C:\Documents\Source Code\SharpCap3.2\src\SharpCap\Models\Camera.cs:line 1423
Warning: 19:23:31.9643998 Thread:#1 SharpCap.Models.Application.ShowMessageBox(String message, String caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defButton) :: MessageBox: The capture folder (C:\Users\Windows\Desktop\SharpCap Captures) is missing or cannot be written to.

Please select a new capture folder and try again
Warning: 19:23:31.9643998 Thread:#1 SharpCap.Models.Application.ShowMessageBox(String message, String caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defButton) :: MessageBox: User Chose:OK
Error: 19:23:31.9643998 Thread:#1 SharpCap.Models.Camera.PrepareToCapture() :: Invalid Capture Folder
User avatar
admin
Site Admin
Posts: 13173
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: The Capture folder (path) is missing or can not be written to

#14

Post by admin »

Hi,

my first guess is going to be that your Antivirus (Avast by the look of things) is getting over-excited and is blocking SharpCap from writing to the folder.
Could you try excluding the capture folder ( C:\Users\Windows\Desktop\SharpCap Captures) in the Avast config (see https://support.avast.com/en-gb/article ... xclusions/) or disabling the whole thing temporarily to see if that helps.


thanks,

Robin
lstretch
Posts: 2
Joined: Mon Nov 30, 2020 3:10 am

Re: The Capture folder (path) is missing or can not be written to

#15

Post by lstretch »

Thanks for the quick and correct response!

I created and exception for the save folder but that didn't work. An exception for the entire ShartCap folder in the Program Files folder did work though. I will play around with it a bit (later) and let you know whether I can refine it down to just one folder or file.

Regards,
Lindsay
User avatar
admin
Site Admin
Posts: 13173
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: The Capture folder (path) is missing or can not be written to

#16

Post by admin »

Hi Lindsay,

Thanks reporting back – glad to hear that adding the exclusion helped.

Sadly commercial antivirus programs (even the ones that have a free option) tend to feel the need to be visible about doing things to make the users feel that they are getting value from the software. This means they tend to be more intrusive than (for instance) Microsoft's antivirus.

We have a bit of a rule of thumb – if a problem seems not to make any sense whatsoever then always check to see if it could be antivirus that is causing it :)

Cheers, Robin
VonDriguen
Posts: 1
Joined: Wed Jun 24, 2020 7:13 am

Re: The Capture folder (path) is missing or can not be written to

#17

Post by VonDriguen »

lstretch wrote: Mon Nov 30, 2020 7:41 pmAn exception for the entire ShartCap folder in the Program Files folder did work though.
Many thanks! My current night may be ruined because I lost 2 hours in the cold dark without capturing any image but your solution works perfectly! Unfortunately, I do not get Wifi in the garden so I had to come back home and search a solution.
User avatar
admin
Site Admin
Posts: 13173
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: The Capture folder (path) is missing or can not be written to

#18

Post by admin »

Hi,

sorry to hear that you hit this problem under a clear sky :(

What AV program were you using? Avast?

cheers,

Robin
Post Reply