[ctypes-users] weird things against modification on source, and more
Brought to you by:
theller
From: oyster <lep...@gm...> - 2007-12-22 09:38:10
|
I am writing the interface to http://www.tecgraf.puc-rio.br/iup, but find 2 too strange things which have let me blue for some days. Can anyone gibe me some light? Thank you. :) You can download the files at http://pyguiviactypes.googlepages.com/mini_bug.zip I am using python 2.5.1 on win2k with sp4 1. in iup.py, if I delete [code] _IupMap.argtypes= [ PTR_Ihandle, #ih ] [/code] then when I choose the menu "MDI-New", no MDI window come out. Why it should be that? 2. for most of the time, I can only choose menu "MDI-New" 3~4 times, then it crashes with this msg: [msg] Traceback (most recent call last): File "\loewis\25\python\Modules\_ctypes\callbacks.c", line 206, in 'calling callback function' File "mdisample_callback.py", line 372, in mdi_new IupShow(dlg) File "H:\my_project\iup4py\mini\iup\iup.py", line 434, in IupShow ih, WindowsError: exception: access violation writing 0x72292AA4 Traceback (most recent call last): File "mdisample_callback.py", line 455, in <module> main() File "mdisample_callback.py", line 447, in main IupMainLoop() File "H:\my_project\iup4py\mini\iup\iup.py", line 247, in IupMainLoop return _IupMainLoop() WindowsError: exception: access violation writing 0x9B73F12E [/msg] sometimes this happens when I delete some other "???.argtypes=???" and some time, it crashes with this msg: [msg] Traceback (most recent call last): File "mdisample_callback.py", line 455, in <module> main() File "mdisample_callback.py", line 447, in main IupMainLoop() File "H:\my_project\iup4py\mini\iup\iup.py", line 247, in IupMainLoop return _IupMainLoop() WindowsError: exception: priviledged instruction [/msg] |