Macros, Cut & Paste, TextPad 8.3.0 x64, Windows 10 1909

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Kryptryx
Posts: 8
Joined: Tue Apr 14, 2020 5:51 pm

Macros, Cut & Paste, TextPad 8.3.0 x64, Windows 10 1909

Post by Kryptryx »

I have encountered a problem using macros which include a cut and paste.

The problem appears to be some form of race condition between the cut and the paste.

This is with TextPad 8.3.0, x64, and Windows 10 1909. It was happening on at least TextPad 8.2 also.

I found another forum post which may have the same issue, and that is with TextPad 4.7.3.

https://www.textpad.com/forums/viewtopic.php?t=13211

And, as suggested in that post, if I add some delaying no-op commands (like 50 move-left move-right combos), the frequency of occurrence is reduced.

When the error does happen, TextPad emits a 'Beep', and the paste buffer is cleared.

A reliable way to reproduce. Create a file with say 100 identical lines. Create a macro which moves some text within a line using cut and paste. And then execute the macro for each line, either manually or with multi-line. More often than not, there will be a 'beep' sometime during the execution, and a line will not be edited correctly. This will also be apparent because all the lines started as identical.
ben_josephs
Posts: 2464
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

I can reproduce this. And TextPad crashed. I've sent the dump file to Helios.
Kryptryx
Posts: 8
Joined: Tue Apr 14, 2020 5:51 pm

Post by Kryptryx »

Issue still exists in 8.4

I have found a 'better' workaround. If as a no-op, I do an insert and then delete some characters, the failure occurs much less often. But it still occurs.

So I do frequent saves, and revert after the failure, and redo.
Kryptryx
Posts: 8
Joined: Tue Apr 14, 2020 5:51 pm

Post by Kryptryx »

This appears to be fixed with 8.4.1.

Thanks for the support.
User avatar
AmigoJack
Posts: 596
Joined: Sun Oct 30, 2016 4:28 pm
Location: グリーン ヒル ゾーン
Contact:

Post by AmigoJack »

https://textpad.com/support/relnotes.html#v841 announced this as
Macros which did a lot of copying and pasting could be interrupted, because the clipboard could not service the requests quickly enough.
Kryptryx
Posts: 8
Joined: Tue Apr 14, 2020 5:51 pm

Post by Kryptryx »

Thank you @AmigoJack. I did notice that, and that is what prompted me to download and test.

Is there a mechanism to get a notification when a new version is released?
User avatar
AmigoJack
Posts: 596
Joined: Sun Oct 30, 2016 4:28 pm
Location: グリーン ヒル ゾーン
Contact:

Post by AmigoJack »

No, the board software is too old to offer a feature to see new topics in https://forums.textpad.com/viewforum.php?f=4 and the website in general has no newsletter either. I also only discover new versions by chance, but then again I never had a huge bug bothering me...
Post Reply