×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    Registered User
    Join Date
    May 2005
    Posts
    2

    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

  2. #2
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: CSendUi::NewL() Panics. Why?

    You cannot use it from a console application, it is restricted to GUI applications.

  3. #3
    Registered User
    Join Date
    Jul 2008
    Posts
    1

    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.

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    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.

  5. #5
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: CSendUi::NewL() Panics. Why?

    Are you running it from a console app/ non UI exe?
    Download Symbian OS now! [url]http://developer.symbian.org[/url]

  6. #6
    Registered User
    Join Date
    May 2011
    Posts
    28

    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();
    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!

  7. #7
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    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.

  8. #8
    Registered User
    Join Date
    May 2011
    Posts
    28

    Re: CSendUi::NewL() Panics. Why?

    What do you mean ...
    ....when used with Normal GUI application
    ?

    I use normal gui application my appui class inherit from CAknAppUi or CAknViewAppUi...
    but result not changed...

  9. #9
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,038

    Re: CSendUi::NewL() Panics. Why?

    If you comment out that code, then all works fine?

  10. #10
    Registered User
    Join Date
    May 2011
    Posts
    28

    Re: CSendUi::NewL() Panics. Why?

    Hello!
    If you comment out that code, then all works fine?
    Yes, in this case all works...

  11. #11
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,038

    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)

  12. #12
    Registered User
    Join Date
    May 2011
    Posts
    28

    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 ...

  13. #13
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,038

    Re: CSendUi::NewL() Panics. Why?

    is it possible for you to mail me your project? check your PM folder sent you my email id.

  14. #14
    Registered User
    Join Date
    May 2011
    Posts
    28

    Re: CSendUi::NewL() Panics. Why?

    Yes, of course ...
    I sent you email ...
    Thanks!))

  15. #15
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    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

Similar Threads

  1. SetStatus() method of MUINotifier panics in sockets engine with KERN-EXEC 3
    By razas in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2006-02-13, 05:34
  2. Location API panics
    By Kimple in forum Symbian
    Replies: 1
    Last Post: 2005-12-21, 14:21
  3. SetAknEditorSpecialCharacterTable Panics with BAFL 4
    By Gingah in forum Symbian User Interface
    Replies: 1
    Last Post: 2004-12-31, 10:08
  4. CntModel panics documentation
    By TonyStoyanov in forum Symbian
    Replies: 0
    Last Post: 2004-03-31, 15:09
  5. What are PANICs used for?
    By advocatee in forum Symbian
    Replies: 1
    Last Post: 2003-10-20, 09:04

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×