A patch for a Windows error on closing a program that uses wx.lib.PDFWindow

I have a program that uses PDFWindow
and, when it’s run on a machine that has Adobe Reader 9 installed, on
closing, an error dialog appears saying :

The instruction at “0x0700609c” referenced memory at
“0x00000014”. The memory could not be read

This occurs consistently every time when the
program had been built with py2exe, and with the unfrozen version it is
consistent if more than one instance of PDFWindow has been opened
during the session.

The same error has been reported with similar, non-wxPython programs,
for example:

and
Following the ideas offered in these threads, the attached patch for
wx.lib.pdfwin seems to do the trick.
It would be helpful if anyone else can confirm both the problem and its
solution.
Regards,
David Hughes
Forestfield Software

pdfwin-2.8.10.1.patch (1.49 KB)

···

http://stackoverflow.com/questions/1359616/axacropdflib-at-closing-problem-c

http://forums.adobe.com/thread/391780?tstart=0