473,704 Members | 2,781 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1707
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.l earn.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
2269
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 once finish, transfer it to my SymbianOS phone? Someone know a good web site about doing it? (I have search on this subject, but don't know where to start)
8
4050
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 these projects appear to be long dead. I personally prefer python to java and would love to find a python alternative to j2me. Just wondering.
1
1987
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 there is some scenario where the program stuck somewhere in the Do While..Loop and and unable to exit the loop. In this case, I would need to abort the thread all together. But I have some problem in doing this, here is how I did: Private Sub...
1
1544
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( jump_buffer, 1 ); }
7
6698
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 sporadically without message. It's not possible to debug in visual studio, i get no exceptions (application is terminated unexpectedly without message).
5
1919
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 code that generates the error is this: void CListItem::ExternalizeL(RWriteStream& aStream) const { aStream << *iName;
11
3784
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
4486
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
8766
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8684
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9025
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8975
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6604
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5930
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3134
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2478
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2078
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.