Skip to content
Discussion options

You must be logged in to vote

So after some debug a lot of try error, was able to find a fix for now that works:

  private DokanInstance _dokanInstance;
var dokan = new Dokan(dokanLogger);
var dbfileSystem = new DokanFileSystem();
var dokanBuilder = new DokanInstanceBuilder(dokan)
.ConfigureOptions(options =>
{
options.MountPoint = $"{driveLetter}:\";
options.TimeOut = TimeSpan.FromMinutes(10); // Set a long timeout
options.SingleThread = false; // Use multiple threads
});

                // Create and mount the file system
                _dokanInstance = dokanBuilder.Build(dbfileSystem);

this is the previous code, and i was trying to mantain the _DokanINstance alive, but i have to make sure that dokan(new Dokan())…

Replies: 8 comments 11 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@PedroVentura235
Comment options

Comment options

You must be logged in to vote
1 reply
@PedroVentura235
Comment options

Comment options

You must be logged in to vote
1 reply
@PedroVentura235
Comment options

Comment options

You must be logged in to vote
2 replies
@PedroVentura235
Comment options

@PedroVentura235
Comment options

Comment options

You must be logged in to vote
1 reply
@PedroVentura235
Comment options

Comment options

You must be logged in to vote
1 reply
@PedroVentura235
Comment options

Comment options

You must be logged in to vote
4 replies
@LTRData
Comment options

LTRData Mar 14, 2025
Collaborator

@Liryna
Comment options

@LTRData
Comment options

LTRData Mar 15, 2025
Collaborator

@LTRData
Comment options

LTRData Mar 19, 2025
Collaborator

Answer selected by PedroVentura235
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants