| | |
python c interface problems
![]() |
•
•
Join Date: Feb 2007
Posts: 3
Reputation:
Solved Threads: 0
I recently made a python module which calls functions from a c program. I used SWIG to generate the wrapper code from an interface file, and compiled the module into a dll which i can import in python and call functions from. While some of the functions are working fine, the others are giving serious errors like:
Python 2.4.3 (#1, May 18 2006, 07:40:45)
[GCC 3.3.3 (cygwin special)] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import agent
>>> agent.dummy_foo()
agent::dummy_foo called!!
x val is: 25
0
>>> agent.get_agent_property(40,12,"agentclass")
you are in get_agent_property:
40 [main] python 5216 _cygtls::handle_exceptions: Error while dumping state
(probably corrupted stack)
Segmentation fault (core dumped)
As shown above, i have no problem calling a dummy function, but when i call the other function, i get the "corrupted stack" and "segmentation fault" errors. I am running these on Cygwin.
Could anyone help me out with this?
Python 2.4.3 (#1, May 18 2006, 07:40:45)
[GCC 3.3.3 (cygwin special)] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import agent
>>> agent.dummy_foo()
agent::dummy_foo called!!
x val is: 25
0
>>> agent.get_agent_property(40,12,"agentclass")
you are in get_agent_property:
40 [main] python 5216 _cygtls::handle_exceptions: Error while dumping state
(probably corrupted stack)
Segmentation fault (core dumped)
As shown above, i have no problem calling a dummy function, but when i call the other function, i get the "corrupted stack" and "segmentation fault" errors. I am running these on Cygwin.
Could anyone help me out with this?
![]() |
Similar Threads
- PATH not known in Windows? (Python)
- get text input from shell cursor (Python)
- python newbie help (Python)
- Problems downloading Python (Python)
- applet , Runnable interface and problems (Java)
- User interface problems (Java)
- Win ME Freeze Problems (Windows 95 / 98 / Me)
Other Threads in the Python Forum
- Previous Thread: Storing a Template String?
- Next Thread: Function for assigning variables
| Thread Tools | Search this Thread |
alarm ansi anydbm app assignment backend beginner binary bluetooth character cipher cmd coordinates customdialog cx-freeze data decimals development directory dynamic exe feet file float format function generator getvalue gnu graphics halp handling heads homework http ideas input ip itunes java keycontrol leftmouse line linux list lists loop maintain maze millimeter module mouse number numbers output parsing path pointer prime programming progressbar push py2exe pygame pymailer python queue random recursion recursive schedule screensaverloopinactive script slicenotation sqlite ssh statistics string strings sudokusolver text thread time tlapse tuple ubuntu unicode url urllib urllib2 variable ventrilo vigenere web webservice wikipedia write wxpython xlib xlwt





