Somewhere in the forum I saw a post about not saving ftp files sometimes. Since i experience the same problem i decided to load codelobster in a debugger.
After 5 seconds i located the issue. In codelobster FileExplorer.dll, the winAPI CreateFileW is the problem here. This functions returns -1 and winAPI GetLastError() returns ERROR_SHARING_VIOLATION, 32 (0x20), which means:
The process cannot access the file because it is being used by another process.
This trows an error message in the codelobster code inspector: Can't open local file.
Right now i can think about 2 reasons for that
- A handle is still open and not closed by winAPI CloseHandle(). Because according to MSDN:
Quote:
CreateFileW: dwShareMode
If this parameter is zero and CreateFile succeeds, the file or device cannot be shared and cannot be opened again until the handle to the file or device is closed.
- There are not enough privileges to open the file. Maybe you need to change dwDesiredAccess parameter.
I am a malware researcher and a cross platform software developer so if you need any assistance i'm glad to help. If you need virtual addresses or offsets just ask.