Hi guys. I recently needed to use a Crystal Reports viewer control in
one of my wxPython apps, and I basically borrowed as much code as
possible from the activeX demos which come with Python. Unfortunately
it turns out that when my application is closed (after opening the
window containing the viewer control) the python process gets hung or
crashes to an error immediately.
If I use pythonw.exe to run the app, it's not always so obvious as
pythonw may simply get hung up and will stay in my process list until I
kill it.
I went back to look at the demos, and it turns out that the behavior
I'm seeing actually occurs in the ActiveXWrapper_Acrobat demo as well.
The program works properly, then blows up on exit. (My last run of it
generated a windows application error - "The instruction at "0x771dee24"
referenced memory at "0x00000000c". The memory could not be "read".)
The error doesn't occur if you run the demo and do not load a PDF, by
the way. I'm hoping that someone can point out why the demo fails, and
that it will help me solve the problem with my own app.
Stats:
I'm using Python 2.3.1 with wxPython 2.4.1.2u.
Having realized I am behind the times with the versions of both
packages, I'm going to try updating them and see if that improves the
situation. It would be a cheap fix, eh?