Skip to content
This repository has been archived by the owner on Aug 12, 2018. It is now read-only.

Does not open files on file share through VPN #231

Open
gamepirog opened this issue Aug 1, 2018 · 1 comment
Open

Does not open files on file share through VPN #231

gamepirog opened this issue Aug 1, 2018 · 1 comment

Comments

@gamepirog
Copy link

After opening and closing any text file this exact file does not open any more. Windows notepad works fine.
Connection to remote host using L2TP. Remote host is a Mikrotik router running RouterOS v6.42.6. Tried sheres both on windows and linux samba servers inside corporate network behind mikrotik router.

@zufuliu
Copy link
Contributor

zufuliu commented Aug 1, 2018

Most users can't setup a VPN, I suggest you download the source code put breakpoints in following two functions in Notepad2.c:
line 6808:

BOOL FileIO(BOOL fLoad, LPCWSTR psz, BOOL bNoEncDetect, int *ienc, int *ieol,
			BOOL *pbUnicodeErr, BOOL *pbFileTooBig,
			BOOL *pbCancelDataLoss, BOOL bSaveCopy)

line 6847:

BOOL FileLoad(BOOL bDontSave, BOOL bNew, BOOL bReload, BOOL bNoEncDetect, LPCWSTR lpszFile)

Debug it, see what cause the failure.

If you don't have Visual Studio 2017 at hand, you can download source code from https://github.com/zufuliu/notepad2, and follow Build Notepad2 and metapath to use GCC and CodeLite to debug. Note the related line number is 6726 and 6764 in this repository.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants