CodeLobster IDE
http://codelobster.com/forum/

Can't open local file when try to save FTP file
http://codelobster.com/forum/viewtopic.php?f=3&t=9951
Page 1 of 1

Author:  Dennis [ Fri May 20, 2016 5:21 pm ]
Post subject:  Can't open local file when try to save FTP file

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.

Author:  Dennis [ Thu Jun 02, 2016 11:26 am ]
Post subject:  Re: Can't open local file when try to save FTP file

Since the new version has been released i didn't saw a bug fix for this. Let me know if you need help with anything.

Author:  Admin [ Thu Jun 02, 2016 11:57 am ]
Post subject:  Re: Can't open local file when try to save FTP file

Hi, Dennis.

Does the problem on new version?
Do You able to reproduce it?

Could You, please, send us step-by-step instructions to duplicate it.

Regards,
Codelobster Team.

Author:  Dennis [ Fri Jun 03, 2016 11:38 am ]
Post subject:  Re: Can't open local file when try to save FTP file

Yes, the problem is still there is the new version.
Yes, I am able to reproduce it.
Also I made a short video about the problem.

Textual instruction:
1. Open Codelobster.
2. Connect to a FTP server.
3. Open/create an empty *.php file on the FTP server.
4. Copy some random code, in this example I used Lorem Ipsum from loripsum.net.
5. Paste the copied text in the opened FTP file in Codelobster. Until you have more then 1500 lines of code.
6. Save the file (Cntrl+S).
7. Codelobster throws an error in the 'output window' from Codelobster: Can not open local file.

Video instruction
http://rgho.st/private/75QqZzVdG/70a09dc435baf09513b9f5e228d8b192
Mirror: http://www107.zippyshare.com/v/HTmJ89es/file.html

Author:  slorandus [ Wed Mar 14, 2018 2:04 pm ]
Post subject:  Re: Can't open local file when try to save FTP file

Any news with this topic? The problem is still there. I am using version 5.14.5 on Windows 10.

Thank you.

Author:  Admin [ Thu Mar 15, 2018 8:40 am ]
Post subject:  Re: Can't open local file when try to save FTP file

Hi.

We can't reproduce this problem :(

1) Do You use FTP or SFTP connection?
2) Are your steps the same?
3) Could You, please, record a video too.

Many thanks,
Codelobster Team.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/