clipboard function results in error when I close my app

OOPS! Greg, your solution only worked on one test. Now it’s back to the way it was. Back to the ol’ drawing board I guess. :wink:

EDIT: I just discovered that if I copy AND paste before closing the app, I don’t get the error. If I copy and DON’T paste, I get the error. How weird is that???

BTW: that’s still using Greg’s suggestion.

Please file your experiments in a bug report with an example if you haven’t already.

Will do. Thanks.

I found a workaround here:
https://forum.xojo.com/22632-value-of-the-selected-cell-in-the-listbox/0

Doesn’t use contextmenu at all.