472,358 Members | 2,065 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,358 software developers and data experts.

Never terminated thread - Symbian Seriese 60

Hello,

C++ over Symbian OS Seriese 60 (or any other OS) -
Is there a way to create a thread that is never terminated?
Suppose I want to create a Bluetooth listener / service that doesn't
terminate as the application is closed.

Does it depend on the handset ?
if so which handsets support that ?

Thnaks,
Haggai

Jul 22 '05 #1
3 1646
ha************@gmail.com wrote:
Hello,

C++ over Symbian OS Seriese 60 (or any other OS) -
Is there a way to create a thread that is never terminated?
Suppose I want to create a Bluetooth listener / service that doesn't
terminate as the application is closed.

Does it depend on the handset ?
if so which handsets support that ?

Thnaks,
Haggai


Thread's lifetime is linked to its process.
If, at the application exit, you exit from any process
attached to your application the OS will also kill every thread.
If you need a service that is alive independently by your
main application you probably have to create a
daemon process (with its own threads if you need them)
that runs in background.

Gianguglielmo

Jul 22 '05 #2
ha************@gmail.com wrote:
Hello,

C++ over Symbian OS Seriese 60 (or any other OS) -
Is there a way to create a thread that is never terminated?
Suppose I want to create a Bluetooth listener / service that doesn't
terminate as the application is closed.

Does it depend on the handset ?
if so which handsets support that ?


http://www.parashift.com/c++-faq-lit...t.html#faq-5.9
Jonathan
Jul 22 '05 #3
On 19 Dec 2004 14:33:49 -0800, "GianGuz" <gi*****************@noze.it>
wrote in comp.lang.c++:
ha************@gmail.com wrote:
Hello,

C++ over Symbian OS Seriese 60 (or any other OS) -
Is there a way to create a thread that is never terminated?
Suppose I want to create a Bluetooth listener / service that doesn't
terminate as the application is closed.

Does it depend on the handset ?
if so which handsets support that ?

Thnaks,
Haggai


Thread's lifetime is linked to its process.
If, at the application exit, you exit from any process
attached to your application the OS will also kill every thread.
If you need a service that is alive independently by your
main application you probably have to create a
daemon process (with its own threads if you need them)
that runs in background.


Please cite a reference to any part of the ISO C++ standard that
defines even one of these terms: 'process', 'thread', 'service',
'daemon', 'background'.

If you can't, and I know you can't, kindly stop posting off-topic
answers to off-topic questions in comp.lang.c++.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Jul 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Robert | last post by:
Hi, I read and create some software in Java. One of my future project is to create a Symbian application. I have a very small question: Can i create the software on my desktop computer, and...
8
by: PD | last post by:
Hello, I was wondering if anyone knew of any efforts to get python working on the symbian platform? I've done a search and have turned up a couple of links to projects on the symbian site, but...
1
by: sleepyant | last post by:
Hi, I have a thread where it will do a Do While..Loop and check the blnCancel boolean in every loop. If blnCancel is True, then the loop will exit and the Thread should be terminated naturally. But...
1
by: alexey_m | last post by:
Hi! I try to use setjmp/longjmp instructions, but application fails with KERN-EXEC 3. Code is very simple: int Main() { jmp_buf jump_buffer; if ( setjmp( jump_buffer ) == 0 ) { longjmp(...
7
by: Ralf Gedrat | last post by:
Hello! I have some Vb.Net applications, which are terminated at indefinite times without message. If I call in the program regulated system.GC.Collect, then the program is terminated here...
5
by: A_StClaire_ | last post by:
sorry if this is the wrong place... wasn't sure where else to ask this. I am doing some Nokia Series 60 programming and have been staring at a linker error the past three hours. the calling...
11
by: Jon Slaughter | last post by:
Is there any way to start a terminated thread without using a pool or creating a new thread object? void counter() { clicks = 0; clock.Start(); while (counterActive) { clicks++;
4
by: romcab | last post by:
Hello experts, I would like to ask if you know sites where I can find ebooks about Symbian C++. Thanks in advance...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
0
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.