http://developer.symbian.org/wiki/index.php/The_Implications_of_Leaving_in_a_Destructor
"Historically (prior to Symbian OS v9.1) the destructor of a stack-based object was not called in the...
Type: Posts; User: The Cynic; Keyword(s):
http://developer.symbian.org/wiki/index.php/The_Implications_of_Leaving_in_a_Destructor
"Historically (prior to Symbian OS v9.1) the destructor of a stack-based object was not called in the...
Actually the situation regarding T classes has changed, their destructors will now get called if they go out of scope and so can have one.
But personally I think this will just confuse people who...
"Please note that ecom only exposes class objects that are known to implement a perticular interface."
What do you mean? That's not true at all. You can write/expose whatever interface you want...
You don't need to make sure your DLLs get loaded, the system will do it for you.
The number of people on here who think they need to load DLLs themselves is astounding.
The number of people who...
Then why didn't you just say you'd told him the answer in private in the first place?
What was the problem, I'm dying to know?
You've changed the signature of setQuestion during the lifetime of this posting so you've now learned that TDesC& and const TDesC& are not the same thing.
Now the next thing to learn is what the...
From the way the question is asked I suspect you are not 100% clear on the use of the cleanupstack and its role in deletion/closing.
I think you have another misunderstanding behind the surface...
I think with this question its better to ask what you are trying to do and give you the correct way of doing that.
Give some details and more context.
THe code you shown is no different than in SYmbian, if you had changed the return type to string& then you would have had a problem.
Return by value to a local variable = ok in C++ and ok in...
I don't want to sound unfriendly, but you've been told to read C++ books before learning Symbian.
This is a SYmbian board, if you keep posting the most basic of C++ questions eventually people...
Its disappointing to see so much misunderstanding in this thread.
If you declare a local TBuf<> in a function and return a reference to it, then when the TBuf<> goes out of scope it is destroyed....
Threads are used when you NEED pre-emptive multitasking, AOs are not pre-emptively multitasked.
If you don't know what that means you need to do some homework before successfully writing programs...
So seeing as you were asking if there is an API to make calls, but you were already aware of the CTelephony API and had tried to use it but had failed.
So actually therefore your original question...
Q: If there are hardcoded resource files which might not be present, please explain how its not big enough on the first run, but it is on subsequent runs?
Q: So if the stack size isn't big enough,...
A global variable? In conjunction with active objects? Sounds a bit potentially dodgy to me, so I am interested to see the details of the proposal too.
He's not suggesting you do your homework, he's suggesting you do some debugging.
a) If you suspect "\\" in a string causes problems for AppendFormatList it would take 5 minutes to confirm.
b) If...
If you already have some links with information on a topic, then ask for information on a topic, you stand a good chance of getting the links you already have - unless, gasp, you say you already have...
I forgot to mention, there are a surprisingly large number of people who want to load their own plug-ins, when ECOM will do it for you and in a standard manner. Replace something that is standard and...
There are a surprisinly large number of people who want to explicitly load their own dlls, and frequently get into problems doing so, yet the system will load and unload a DLL for you so I never...
Sounds like not a good idea to me, many problems and issues, for example, how does one program know when there is something in the file for it to read? What about access synchronization for another?
I can't be bothered to read this thread to comment on if what you want to do is correct or not, but you can get an active object to run itself (called a self scheduling active object) by completing...
The beauty of active objects, and a reason why they are recommended instead of threads, is that with them there are no issues that make you need to turn to semaphores and mutexes to solve.
Why...
Its already is open source now.
Title says integers, body says TPtr.
Make your mind up, otherwise how can you expect proper advice. An integer is not a TPtr, maybe you meant number not integer?
I missed there is an iStatus as an argument to the Copy() function.
If I was the poster, I wouldn't be worried about a memory leak, I'd be more worried about a logic leak.