help with debugging a ctypes problem

p.lavarre at ieee.org p.lavarre at ieee.org
Sat Sep 23 16:54:34 EDT 2006


> help figuring out how to debug ... ctypes ...
> a commercial dll.  A certain function takes five arguments, foo(a, b, c, d, e).
> Can I view the appropriate stack? ... Any other ideas or advice?  etc?

Did you call the foo of _cdecl ctypes.cdll or the foo of _stdcall =
ctypes.windll?

What is the sizeof each argument type?  Preferably fetched by compiling
some C to printf them?

Would it help to call C in another Dll to return the stack pointer, so
Python could print the stack?




More information about the Python-list mailing list