fileseekback not working after update to 4.102
Thank you for your reporting.
発生時期(4.101-4.102の間)からすると、一番関係ありそうな変更は r7292
この変更により、filecreate して書き込むのに使ったファイルハンドルを読み込みに使い回せなくなっていますか?
投稿された再現用コードを整理
これも同じ問題が起きそうと思って書いてみたコード(再現しました)
CreateFile()の引数の問題だと思い、 filecreate マクロに関する修正をトレースしました。
r7290 から問題があり、Tera Term 4 は 4.102以降(4-stable ブランチでは現在も)問題がある状態。
trunk は r9134 で修正されています。
4-stable branch を trunk と同様に修正してみます。
I committed fixes(r9806)。
This is snapshot binary. Please test this.
https://osdn.net/projects/ttssh2/storage/snapshot/snapshot-teraterm4-r9806-20220313.zip
Reply To zmatsuo
I committed fixes(r9806)。 This is snapshot binary. Please test this. https://osdn.net/projects/ttssh2/storage/snapshot/snapshot-teraterm4-r9806-20220313.zip
Hi,
sorry for the late reply I tested it with my old macro and it worked without problem!
Thank you
Thank you.
Hi,
I am using teraterm and macros for years now and with the latest update I did from 4.90 to 4.106, one of the macros stopped working. I could narrow it down to 4.102 being the version where my macro breaks. At one point I am creating a new file, setting a pointer just after creation, then writing a few chars to it and the get back to the pointer and read out that line.
Now the following bit of code stopped working with any version newer than 4.101
As a workaround, I have to close the file I just wrote to and reopen it for reading