Comments (8)
Hi @TrabacchinLuigi ,
I got a couple of people requesting this features and I always propose to simply call DokanMain in a new thread but I am open to any proposition.
What kind of implementation for errors handling would your propose ?
from dokan-dotnet.
Not really sure how i don't work with unmanaged code that much...
I would like to just have DokanMain return if everythings goes right and have a HandleDokanError that get's called when docan is going down unexpectedly ... like someone unmounted your drive, or dokany become unavailable for some reason ...
I can share how i actually handle mounting and unmounting the mirror to show why it is a little annoying, also my implementation is disposable and unmount cleanly the disk before shutting down ...
from dokan-dotnet.
I would prefer to let DokanMain C as it is 😃
I was thinking to make async DokanMain by C# wrapper (Start thread, call event when return..)
I would be interested to see show this is annoying for you, yes.
from dokan-dotnet.
here we go: How i would write mirror.cs and use it
from dokan-dotnet.
The annoying part is i have to wait for a semaphore (line 69, that get's green when an exception is thrown during mount or when mounted get's called)... it's not that intuitive ...
Average users would not understand how to use it...
Average user want to do programmatically call like:
Using(var dokan = new DocanNetImplementation())
{
dokan.Mount("C:\myfolder", "N:\"); // expect that when this call return N:\ is available
System.IO.CreateFile("N:\myfile.txt");
}
from dokan-dotnet.
I think @TrabacchinLuigi is right. For the moment I would keep it like it is until the following issue has been implemented. dokan-dev/dokany#210
from dokan-dotnet.
@TrabacchinLuigi You made your point 👍
And @marinkobabic is right, this would be solved by issue dokan-dev/dokany#210
We would have DokanMain C return at the Mount.
It also mean that the DokanMain async will probably more be in 1.1.0 than in the next release.
from dokan-dotnet.
Great! keep up the good work!
i'll keep this open as a remainder!
from dokan-dotnet.
Related Issues (20)
- Cant Enable Only one OPEN Stream on a file HOT 1
- Is FileSystemSecurity affects something in GetFileSecurity method? HOT 2
- Does the driver have compatibility issues with server 2022? HOT 9
- [Help wanted] Random unmounts after updating from 1.5.0.0 to 2.0.5.1 HOT 2
- FILE SIZE HOT 10
- Locking the entire application on mount HOT 1
- error 0x800705AA Insufficient system resources exist to complete the requested service. HOT 1
- Folder Icon Change HOT 2
- How to disable virtual disk renaming? HOT 1
- DokanNetMirror does not return "." (self) and ".." (parent) directories in `FindFiles` HOT 20
- Encountered infinite recursion for setting SingleThread=false in DOKAN_OPTIONS HOT 1
- Remounted volumes are randomly unmounted after a few seconds HOT 9
- Hardcoded use of date/time and culture in ConsoleLogger HOT 5
- Identifying exact type of file info call from .NET wrapper HOT 6
- `ReadFile`: semantics of `bytesRead` HOT 27
- AccessViolationException in `RentBuffer` HOT 1
- Feature: Async HOT 3
- The volume label is incorrect HOT 2
- Feature: cancellation tokens HOT 1
- Don't know how to mount the DokanInstance... HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dokan-dotnet.