You Are Here:

Community: Developer Discussion Boards

#1 Old KERNEL-EXEC:0 when calling telephony module function in python thread - 2009-03-04, 15:23

Join Date: Feb 2008
Posts: 2
sobinonline
Offline
Registered User
Hi

I am using Python 1.4 version, I am getting Python crash and Kernel-EXEC:0 message when calling telephone module function within the thread.

The code is somewhat like this



def tel_MO_call(string):
print string
time.sleep(5)
telephone.dial('9952510187')
e32.ao_sleep(2)
telephone.hangup()


def createthread():
thread.start_new_thread(tel_MO_call,("thread1",))


e32.ao_yield()
createthread()


If i remove the functions telephone.dial('9952510187') and telephone.hangup(). the code will work without problem

thanks
sobin
Reply With Quote

#2 Old Re: KERNEL-EXEC:0 when calling telephony module function in python thread - 2009-03-04, 15:38

Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Offline
Forum Nokia Champion
Quote:
Originally Posted by sobinonline View Post
Hi

I am using Python 1.4 version, I am getting Python crash and Kernel-EXEC:0 message when calling telephone module function within the thread.

The code is somewhat like this



def tel_MO_call(string):
print string
time.sleep(5)
telephone.dial('9952510187')
e32.ao_sleep(2)
telephone.hangup()


def createthread():
thread.start_new_thread(tel_MO_call,("thread1",))


e32.ao_yield()
createthread()


If i remove the functions telephone.dial('9952510187') and telephone.hangup(). the code will work without problem

thanks
sobin
Hello sobinonline

welcome to forum nokia Python discussion boards.

I am not sure but the problem may be the telephone module might be using any GUI component thats why its causing the Python to crash.

Enjoy Pythoning
Gaba88


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote

#3 Old Re: KERNEL-EXEC:0 when calling telephony module function in python thread - 2009-03-14, 15:10

Join Date: Feb 2008
Posts: 2
sobinonline
Offline
Registered User
Hi

I think there is problem in threads in Python S60 1.4 edition, i.e there is issue when calling mudule functions inside the threads.
Reply With Quote

#4 Old Re: KERNEL-EXEC:0 when calling telephony module function in python thread - 2009-03-14, 17:57

Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Offline
Forum Nokia Champion
Quote:
Originally Posted by sobinonline View Post
Hi

I think there is problem in threads in Python S60 1.4 edition, i.e there is issue when calling mudule functions inside the threads.
hello sobin

As such there is no problem with the thread module but as i have already said you cant use the UI components with the module.

Moreover as suggested by some of my good freinds you can have a look at the threading module in the new Python 1.9.2.

Hope this helps you

Enjoy Pythoning
Gaba88


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote

#5 Old Smile Re: KERNEL-EXEC:0 when calling telephony module function in python thread - 2009-03-15, 14:18

Join Date: Jul 2008
Posts: 471
Location: Pakistan
sajisoft's Avatar
sajisoft
Offline
Regular Contributor
Quote:
Originally Posted by sobinonline View Post
Hi

I think there is problem in threads in Python S60 1.4 edition, i.e there is issue when calling mudule functions inside the threads.
I can confirm this , U CANT USE telephone.dial feature in the body of thread . So , just sit & think of an alternative logic. If u r not able to make any other logic , then ask here with more details of ur program. We will surely help u in making another logic . .Else test it on python 1.9.2 . Hope it helps u..

Best Regards,
SajiSoft


"The purpose of software engineering is to control complexity, not to create it."

--§ajid Ali Anjum--
http://sajisoft.wordpress.com/
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
regarding building Qt on S60 prajna123 Qt for Symbian 14 2008-12-12 09:12
Problems withSDK emulator kassinen Symbian Tools & SDKs 4 2008-12-01 13:30
Help debugging Keypress module crashing with python 1.4.0 and 1.4.1 - S60v3 xraimon Python 2 2007-10-18 01:02
Prevent python getting closed by kernel prashanth_ym Python 2 2007-05-21 11:30
calling python function from C vipul.mobiance Python 1 2005-12-12 14:18

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia