Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled exception, can't access file. -- caused by: 2 or more slider.exe is Run At StartUp.. #163

Closed
titmousemees opened this issue Jan 12, 2025 · 6 comments

Comments

@titmousemees
Copy link

titmousemees commented Jan 12, 2025

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IO.IOException: The process cannot access the file 'C:\Users\***\AppData\Local\Win10_BrigtnessSlider\Win10_BrigtnessSlider.litedb' because it is being used by another process.
   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)
   at LiteDB.Engine.FileStreamFactory.GetStream(Boolean canWrite, Boolean sequencial)
   at LiteDB.Engine.StreamPool.<>c__DisplayClass3_0.<.ctor>b__0()
   at System.Lazy`1.CreateValue()
   at System.Lazy`1.LazyInitValue()
   at System.Lazy`1.get_Value()
   at LiteDB.Engine.DiskService..ctor(EngineSettings settings, EngineState state, Int32[] memorySegmentSizes)
   at LiteDB.Engine.LiteEngine.Open()
   at LiteDB.Engine.LiteEngine..ctor(EngineSettings settings)
   at LiteDB.ConnectionString.CreateEngine(Action`1 engineSettingsAction)
   at LiteDB.LiteDatabase..ctor(ConnectionString connectionString, BsonMapper mapper)
   at LiteDB.LiteDatabase..ctor(String connectionString, BsonMapper mapper)
   at Win10_BrightnessSlider.Gui.Settings_litedb.GetSettings()
   at Win10_BrightnessSlider.Form1.CreateNotifyIcon_ContexMenu()
   at Win10_BrightnessSlider.Form1.<Form1_Load>d__16.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)
.

image

image

@blackholeearth
Copy link
Owner

blackholeearth commented Jan 12, 2025

You opened the app 10 times.
Close all . Just start one.


You see , its open already why did you stubbornly opened again and again????

@blackholeearth blackholeearth changed the title Unhandled exception, can't access file Unhandled exception, can't access file. -- İ opened app 10 times. Surprise. İ got an Error.. Jan 12, 2025
@blackholeearth blackholeearth changed the title Unhandled exception, can't access file. -- İ opened app 10 times. Surprise. İ got an Error.. Unhandled exception, can't access file. -- İ opened app 10 times. İ got an Error.. Jan 12, 2025
@titmousemees
Copy link
Author

You opened the app 10 times. Close all . Just start one..

Not bug.. User skill issues...

You see , its open already why did you stubbornly opened again and again????

It did that by itself when I started my PC

@blackholeearth
Copy link
Owner

blackholeearth commented Jan 13, 2025

you probably have 2 or More slider.exe in your computer. different places ... all has [v] run at startup checked..

to diagnose this::

  1. install everything exe... (this can find any file on pc..)

  2. open everthing exe.

    • enable Regex
  3. search this win.*slider.exe$

    • if you see 2 or more slider like these . only Keep 1 slider.exe.. delete All the others..

@blackholeearth blackholeearth changed the title Unhandled exception, can't access file. -- İ opened app 10 times. İ got an Error.. Unhandled exception, can't access file. -- caused by: 2 or more slider.exe is Run At StartUp.. Jan 13, 2025
@blackholeearth
Copy link
Owner

blackholeearth commented Jan 13, 2025

try new release 8.12

  • it doesn't use litedb.
    • ldb doesn't allow simultaneous access to settings.db file. By default

BUT first.. use everyting.exe
and delete all of the Old brighness-slider.exe from computer

@blackholeearth
Copy link
Owner

dev note , correction:

Litedb woks in shared mode.. but NOT by default. !!! litedb-org/LiteDB#1453

Anyway , we fixed our problem..

@titmousemees
Copy link
Author

Sick that u took the time to fix it, thanks for your dedication! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants