[python-win32] "access violation" debugging advice?

Tim Roberts timr at probo.com
Mon Nov 8 21:38:39 CET 2010


RayS wrote:
> I'm accessing a 3rd party ctypes cDLL function and getting 
> WindowsError "access violation at 0xnnnn" at seemingly random time 
> intervals; what tips does the group have for debugging? The DLL 
> author is an MS C++ guy and not Python literate. The DLL appears to 
> run without error with his MSVC apps. It almost seems CPU-load 
> dependent, but I could be imagining that...

I think you're going to need to run the app inside a debugger, and get a
traceback to figure out where in the DLL it is crashing.  There are just
too many possibilities.

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the python-win32 mailing list