-
Notifications
You must be signed in to change notification settings - Fork 52
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
Unable to open volume? #32
Comments
can you provide the error backtrace and conditions of how you are running/using the code? |
Thank you for your prompt response. I opened the 20230427 release sln file in vs2022 and compiled it as is. At that time, dokan was not installed. Then I created my project with msvcpp in vs2022, targeted win32, linked libfsntfs.lib as an extra library and copied libfsntfs.dll. When I tried the above code in my project, it failed to open the volume. I'm very sorry, but could you tell me how to get the backtrace? I will send whatever I can send. |
what is the actual error message you are seeing? |
The libfsntfs_volume_open function worked normally and returned an error code of 97(a) to the libfsntfs_error_t variable. |
what if you print the error? https://github.com/libyal/libfsntfs/blob/main/include/libfsntfs.h.in#L206 |
I didn't know that function. Run it and report the results. please wait. |
Running the above code returned the below output
Also, by writing the above code, the debugger output the following error when exiting the main function.
|
It likely does not like |
Thank you for your support.
|
wide functions require wchar_t strings, e.g. Also note that running libfsntfs on a live file system is not recommend. The file system will change under your feet and the library does internal caching.
I'll have a look when time permits see if I can reproduce it, can you provide some details on your build configuration? e.g. which WINVER |
I'm also surprised that this error output even though I'm not using the libfsntfs_volume_open_wide function.
The preprocessor macro for the debug configuration is below.
I'll let you know if I notice anything too. thank you. |
I will write about what I researched a little more.
The cause of the error seems to be within the above function.
When the above function is called, the value of the variable will be as follows
And since it is passed as NULL to the "libcsplit_narrow_split_string_get_number_of_segments" function, an error occurs in this function. |
I am facing error unable to open volume in msvcpp console project on windows.
Do you know what is the reason?
Microsoft Visual Studio Community 2022 (64) Version 17.6.4
`
#include
#include <stdlib.h>
#include <stdio.h>
#define LIBFSNTFS_DLL_IMPORT
#include "libfsntfs.h"
using namespace std;
`
When I stepped in, I found that I was getting an error in the block below, but nothing more than that.
`
libcpath_path.c
`
The text was updated successfully, but these errors were encountered: