CSendUi::NewL() Panics. Why?
I've created a server process to perform a number of action on behalf of clinets/ One of these actions is to prepopulate an SMS editor with a recipient and a body and awaiting the user hitting the send button. This is clearly a case for CSendUi.
However, my NewL call on CSendUi panics the server. Why?
The NewL call takes no parameters.
I'm at a loss to explain it and I'm in bad need of a fix. Anyone know anything about CSendUI?
/JD
Re: CSendUi::NewL() Panics. Why?
You cannot use it from a console application, it is restricted to GUI applications.
Re: CSendUi::NewL() Panics. Why?
Hi
I have a problem about CSendUi::NewL too.
it occurs panic "CONE 14".
My environment is SDK 3rd FP2.
I generate symbian project with carbide C++ 1.3 and make method for SendUI.
CSendUI::NewL() <= this code bring PANIC CONE 14.
I insert code "iSendUi = CSendUi::NewL();".
I don't understand this panic.
plz help me.
Re: CSendUi::NewL() Panics. Why?
you could find it from SDK help documentation, just write CONE 14 into the search field in it, do a search.
Re: CSendUi::NewL() Panics. Why?
Are you running it from a console app/ non UI exe?
Re: CSendUi::NewL() Panics. Why?
Hello!
I have same problenm as erobeta...
my app crashes with CONE 14 ("Environment cannot find the specified resource in any resource file")
when i use code
[CODE]CSendUi* sendAppUi = CSendUi::NewLC(); [/CODE]
I did some tests - created new symbian gui application,
link require libraries, sendui.lib, etext.lib etc...
add capabilities LocalServices NetworkServices ReadDeviceData WriteDeviceData ReadUserData WriteUserData
include headers...
and in ConstructL function for appui add 1 code line CSendUi* sendAppUi = CSendUi::NewLC(); or CSendUI::NewL
and my test app crash also...
i trying build my app with 5th and 3th (FP1), for devices and emulator, on win Xp and win 7..... but reseive some result CONE 14....
Earlier I use this api and all work fine...
I do not understand what has happened...
I will be grateful for any advice! Thanks!
Re: CSendUi::NewL() Panics. Why?
I would suggest checking that the panic is really coming from SendUI, in essense it should not panic with this panic, when used with Normal GUI application.
Re: CSendUi::NewL() Panics. Why?
What do you mean ... [QUOTE]....when used with Normal GUI application[/QUOTE] ?
I use normal gui application my appui class inherit from CAknAppUi or CAknViewAppUi...
but result not changed...
Re: CSendUi::NewL() Panics. Why?
If you comment out that code, then all works fine?
Re: CSendUi::NewL() Panics. Why?
Hello!
[QUOTE]If you comment out that code, then all works fine?[/QUOTE]
Yes, in this case all works...
Re: CSendUi::NewL() Panics. Why?
I created a new HelloWorld app & wrote the following two lines in Appui's constructL():
CSendUi* sendAppUi = CSendUi::NewLC();
CleanupStack::PopAndDestroy(1);
& it opened nicely(s60 3rd FP1 emulator, windows 7)
Re: CSendUi::NewL() Panics. Why?
I can not understand what leads to this problem ...
I found my old project where are using this API and it works well...
I also created another empty project as you described, and he also earned ...
But before I get a panic ... and is presented ...
Re: CSendUi::NewL() Panics. Why?
is it possible for you to mail me your project? check your PM folder sent you my email id.
Re: CSendUi::NewL() Panics. Why?
Yes, of course ...
I sent you email ...
Thanks!))
Re: CSendUi::NewL() Panics. Why?
Check if increasing stack/heap size will fix this issue. Try to add following lines in your .mmp file and then test app.
[CODE]EPOCSTACKSIZE 0x14000
EPOCHEAPSIZE 0x020000 0x800000[/CODE]