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
@Olof-Lagerkvist
Comment options

@Liryna
Comment options

@Olof-Lagerkvist
Comment options

@Olof-Lagerkvist
Comment options

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