RSS Forums RSS

python c interface problems

Please support our Python advertiser: Programming Forums
Reply
Posts: 3
Reputation: saintlysav is an unknown quantity at this point 
Solved Threads: 0
saintlysav saintlysav is offline Offline
Newbie Poster

Help python c interface problems

  #1  
Mar 15th, 2007
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?
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



Views: 1444 | Replies: 0 | Currently Viewing: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 3:09 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC