Trap it and check the leave return code.
I don't have the souce code to hand but the date/time setter functions of the calendar entires perform various checks such as the end date is > the start...
Type: Posts; User: hotcheese; Keyword(s):
Trap it and check the leave return code.
I don't have the souce code to hand but the date/time setter functions of the calendar entires perform various checks such as the end date is > the start...
Why would you want to allocate 0 bytes?
I don't wish to sound catty, but it really does help to actually read the question otherwise it is very easy to confuse newcommers to Symbian. Nowhere in the question is he asking about leaving, he...
"i wonder why it works fine on s60v5 and not in s60v3"
Is the contacts database and all its contacts within that database that you are reading absolutely identical on both devices?
If not then...
I recommend you to read a C++ before before using Symbian.
iConnection.Start() does not leave, if a function leaves it has a trailing L in its name.
It returns an error code, just get the return code as you would for any function returning a value and pass...
Efficiency shouldn't be a differentiating factor between synchronous and asynchronous. The major consideration is if you use synchronous your code is unresponsive for the duration of the timer.
The panics will be an enumeration number in a header file, the reason should be evident from the name given to the enumeration and maybe a comment to. Have a look for the header file containing the...
Have a look into if an FEP (Front End Processor) can help you out.
Threads are one idiom, active objects are another. You are trying to mix the two. AOs are a replacement for active objects, its unnecessary and pointless and complex to use both idioms when one will...
Originally within Symbian the classification @internalXXX meant the file was for internal use only and shouldn't be released to licencees/partners/3rd party developers.
If an @internal file appears...
But neither of you have actually answered his question, he is not asking if this will work:
HBufC* buf=GetSomeDetailsL();
SomeMethodL(buf);
delete buf;
He is asking if this will work:
...
No. The cleanup stack can only clean things up that are put onto it.
Only you can put things onto the stack.
In the code you are not putting anything onto the cleanup stack.
I think the OP is not so much asking how to use 2-phase construction (as some people have assumed) nor why/how it works (as others have assumed), rather why it must be used.
What if the question...
Are you trying to run it on the device?
Have you allocated logger?
You could also look to see if Qt has all the necessary functionality
A DLL on its own can do nothing, a DLL contains code to be used by other code. So you should use the basic console application.
If you need help regarding starting the app running there are lots...
The Find() function is 16 years old and thus unlikely to still have a bug. And your code looks ok.
So that only leaves your sureness about the contents of both aBufCallBlock and test as the things...
But there's no evidence in the code you posted of you using the cleanup stack anywhere. If you were a function invocation would not cause a problem.
If you mean the program crashes as the function...
Programming is a skill.
But so is thinking about what the problem could be logically when you have an issue.
What are the possibilities?
1) There is a defect in RPointerArray itself.
2) There is...
What about additionally NetworkControl, as it says in the documentation for using SetBoolAttribute to close a connection.
Its not the number of recursions its how much of the stack is being used. If you already have used up much of the stack before you start to recurse you won't get very far.
Or if each invocation of...
Sounds like you have a memory or handle leak, you say you are deleting everything but something is passing you by.
P.S.
Folks, there's no such thing as a stack memory leak, so if this problem...
I'm surprised with the mention of the phrase "too deep" in combination with the fact that recursion is being used that it is yet to dawn in anybodies thoughts about running out of stack space.