Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 18

Hybrid View

  1. #1
    Registered User justindurkan's Avatar
    Join Date
    May 2005
    Posts
    2
    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 Paul.Todd's Avatar
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644
    You cannot use it from a console application, it is restricted to GUI applications.

  3. #3
    Registered User erobeta's Avatar
    Join Date
    Jul 2008
    Posts
    1
    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 Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,712
    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 Paul.Todd's Avatar
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644
    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 lexamor's Avatar
    Join Date
    May 2011
    Posts
    28
    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 Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,712
    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 lexamor's Avatar
    Join Date
    May 2011
    Posts
    28
    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 vineet.jain's Avatar
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,861
    If you comment out that code, then all works fine?

  10. #10
    Registered User lexamor's Avatar
    Join Date
    May 2011
    Posts
    28
    Hello!
    If you comment out that code, then all works fine?
    Yes, in this case all works...

  11. #11
    Nokia Developer Champion vineet.jain's Avatar
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,861
    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 lexamor's Avatar
    Join Date
    May 2011
    Posts
    28
    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 vineet.jain's Avatar
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,861
    is it possible for you to mail me your project? check your PM folder sent you my email id.

  14. #14
    Registered User lexamor's Avatar
    Join Date
    May 2011
    Posts
    28
    Yes, of course ...
    I sent you email ...
    Thanks!))

  15. #15
    Nokia Developer Champion savaj's Avatar
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034
    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

Page 1 of 2 12 LastLast

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 C++
    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 C++
    Replies: 0
    Last Post: 2004-03-31, 15:09
  5. What are PANICs used for?
    By advocatee in forum Symbian C++
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved