in reply to Re^2: wxPreviewFrame error on closing
in thread wxPreviewFrame error on closing

So I wonder if the two are linked.

Maybe, but why wonder when you can find out? Fire up strace or debugger and find out exactly where the error occurs in c/xs code... then you can either fix it, or file the appropriate bug report