Has anyone run into "unknown software exception 0xC000005" using pyPgSQL and Python 2.4 in 64-bit Windows?
Specifically, I'm running Python 2.4 32-bit interpreter on Windows XP Professional SP2 x64. My application uses PyQt for the application framework and pyPgSQL for database access. I have a separate thread running to process postgres LISTEN/NOTIFY events and the intent is when events are found, use the Qt framework to post the events to the app running in the main thread using qApp.postEvent. T
This works fine on Fedora and 32-bit XP but on 64-bit Windows, calls to the PgConnection notifies() method usually, but not always, cause the app to crash and Windows pops up the error message referenced in the subject line of this question. Any suggestions or ideas on how to troubleshoot and/or solve this problem are greatly appreciated.
Permission denied? Thank you for the response, but from what I've been able to discern so far, that error code is a memory access violation. Plus, wouldn't a "permission denied" situation occur consistently rather than the intermittent nature I originally reported?
It often happens when you access memory through the uninitialized pointer. The reasons may differ a lot. For example, some OS kernel function that should say return the pointer to "something" failed, and the situation is not assumed hence not checked in the calling code. It may be difficult to debug such situations unless you have all source code. It is even more difficult to say anything more specific about the situation based on your question.
I would recommend to try to cut your application so that you get the minimal example with the observed behaviour. Then I would send it to the authors of the related software and libraries. You should also post it to the related mailing lists.
The minimal example that shows the behaviour is the key point here. But it may be difficult to find it. Good luck. ;)