×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Mar 2009
    Posts
    80

    Question Emulator exits code = 0 - pls help

    Hi

    I need help with my example Symbian C++ application HelloWorld from the book Quick Recepies on Symbian OS.
    The Hello World example worked fine first (Build/Run).
    However, after doing the additional edits (p 18 ff) I have run into a problem:

    When trying to Run the application, the Windows emulator is launched - and then it suddenly dies.
    The only debug info is that error code = 0.
    I have not been able to find the explanation of this error code.

    No Error messages when building/running the application.

    Environment:
    PC Windows XP Pro SP3, 3 GB mem
    Carbide C++ 2.0
    SDK S60_3rd_FP1

    Please help!
    /Per

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,688

    Re: Emulator exits code = 0 - pls help

    Check the logfile of the emulator, http://wiki.forum.nokia.com/index.php/Epocwind.out

  3. #3
    Regular Contributor
    Join Date
    Mar 2009
    Posts
    80

    Re: Emulator exits code = 0 - pls help

    Dear wizard_hu

    I got the Debugger running. But now I'm quite confused.
    I cannot understand where the fault happens. I cannot't find any ref's to modules or line #.
    I have set breakpoints in the beginning of several CPP modules but the application Panics before I reach them.
    The problem has to do with Descriptor strings, however I can't get a clue on where.
    Please help.
    Thank's in advance.

    Plse find the full Debug output (could'nt find a way to include the file):

    27.910 [DOSSERVER] CDosSession::DispatchMessageL()
    27.915 [DOSSERVER] dosService created, continuing...
    27.915 [DOSSERVER] Calling ExecuteMessageL...
    27.915 [DOSSERVER] RegisterAndListenL: event:23, size:4, queue:2
    27.920 [DOSSERVER] CDosSession::ServiceL()
    27.920 [DOSSERVER] CDosSession::DispatchMessageL()
    27.920 [DOSSERVER] dosService created, continuing...
    27.920 [DOSSERVER] Calling ExecuteMessageL...
    27.920 [DOSSERVER] CDosSession::ServiceL()
    27.920 [DOSSERVER] AutoComplete flag unset
    27.920 [DOSSERVER] CDosSession::DispatchMessageL()
    27.920 [DOSSERVER] dosService created, continuing...
    27.920 [DOSSERVER] Calling ExecuteMessageL...
    27.930 [DOSSERVER] RegisterAndListenL: event:25, size:4, queue:2
    27.930 [DOSSERVER] CDosSession::ServiceL()
    27.930 [DOSSERVER] CDosSession::DispatchMessageL()
    27.930 [DOSSERVER] dosService created, continuing...
    27.930 [DOSSERVER] Calling ExecuteMessageL...
    27.935 [DOSSERVER] CDosSession::ServiceL()
    27.935 [DOSSERVER] AutoComplete flag unset
    27.935 [DOSSERVER] CDosSession::DispatchMessageL()
    27.935 [DOSSERVER] dosService created, continuing...
    27.935 [DOSSERVER] Calling ExecuteMessageL...
    27.945 [DOSSERVER] RegisterAndListenL: event:64, size:4, queue:2
    27.945 [DOSSERVER] CDosSession::ServiceL()
    27.945 [DOSSERVER] CDosSession::DispatchMessageL()
    27.950 [DOSSERVER] dosService created, continuing...
    27.950 [DOSSERVER] Calling ExecuteMessageL...
    27.950 [DOSSERVER] CDosSession::ServiceL()
    27.955 [DOSSERVER] AutoComplete flag unset
    27.955 [DOSSERVER] CDosSession::DispatchMessageL()
    27.955 [DOSSERVER] dosService created, continuing...
    27.955 [DOSSERVER] Calling ExecuteMessageL...
    27.955 SAE (CM): CSaeConnMonObserver::ConstructL() start
    27.975 FontProvider: Category=1, TextPane Height=8; mapped request=6; typeface=Series 60 Sans, actual range=7(a,d,exa,exd=5 1 1 0)
    28.110 Thread ConnMonExe.EXE::Main created @ 0x1cf4294 - Win32 Thread ID 0x13f4
    28.125 AknGlobalNote, SetMaxDisplayPriorityL: 1000
    28.140 Thread SystemAMSCore.exe::Security2.Thread created @ 0x1cf1dd0 - Win32 Thread ID 0xf58
    28.150 FontProvider: Category=1, TextPane Height=8; mapped request=6; typeface=Series 60 Sans, actual range=7(a,d,exa,exd=5 1 1 0)


    ---cut here to fit 10 000 char's




    34.395 (SECURITYNOTIFIER)CSecurityNotifier::RegisterL()

    34.465 [DOSSERVER] CDosSession::ServiceL()
    34.465 [DOSSERVER] AutoComplete flag unset
    34.465 [DOSSERVER] CDosSession::DispatchMessageL()
    34.465 [DOSSERVER] dosService created, continuing...
    34.465 [DOSSERVER] Calling ExecuteMessageL...
    34.470 [DOSSERVER] CDosEventListenerBase::HandleEventL(...)
    34.470 [DOSSERVER] CDosEventListenerBase::NetworkBarsL(0x0)
    34.470 SAE: CSaeDosObserver::NetworkBarsL(), aValue=(0)
    34.470 SAE: CSaePubSubNotifier::NotifyPubSub : aVariable:100052d4, aState: 1
    34.470 SAE: CSaePubSubNotifier::NotifyPubSub : aVariable:100052c7, aState: 2
    34.470 SAE: CSaePubSubNotifier::NotifyPubSub : aVariable:100052c8, aState: 1
    34.510 [DOSSERVER] CDosSession::ServiceL()
    34.510 [DOSSERVER] AutoComplete flag unset
    34.510 [DOSSERVER] CDosSession::DispatchMessageL()
    34.510 [DOSSERVER] dosService created, continuing...
    34.510 [DOSSERVER] Calling ExecuteMessageL...
    34.515 StartupApp: "CStartupPSObserver::StateOfVariable(): End, return 1"
    34.515 StartupApp: "CStartupPSObserver::HandlePropertyChangedL(): eventState == EPSSecurityCodeNotRequired"
    34.515 StartupApp: "CStartupAppUi::SimSupported()"
    34.515 StartupApp: "CStartupPSObserver::SimPresent()"
    34.515 StartupApp: "CStartupPSObserver::StateOfVariable()"
    34.515 StartupApp: "CStartupPSObserver::StateOfVariable(): End, return 1"
    34.515 StartupApp: "CStartupPSObserver::SimPresent(): SIM inserted"
    34.515 StartupApp: "CStartupPSObserver::SimPresent(): End, return 1"
    34.515 StartupApp: "CStartupPSObserver::HandlePropertyChangedL(): iSimOK:0, iSecurityCodeOK:1, iSimPresent:1"
    34.515 StartupApp: "CStartupPSObserver::HandlePropertyChangedL(): End"
    34.530 [DOSSERVER] CDosEventListenerBase::HandleEventL(...)
    34.530 [DOSSERVER] CDosEventListenerBase::SimStateL(0x7)
    34.530 SAE: CSaeDosObserver::SimStateL(), aState=(7)
    34.530 SAE: CSaePubSubNotifier::NotifyPubSub : aVariable:100052e9, aState: 8
    34.535 SAE: CSaePubSubNotifier::NotifyPubSub : aVariable:100052c6, aState: 1
    34.535 [DOSSERVER] CDosSession::ServiceL()
    34.535 [DOSSERVER] AutoComplete flag unset
    34.535 [DOSSERVER] CDosSession::DispatchMessageL()
    34.535 [DOSSERVER] dosService created, continuing...
    34.535 [DOSSERVER] Calling ExecuteMessageL...
    34.550 StartupApp: "CStartupPSObserver::HandlePropertyChangedL()"
    34.550 StartupApp: "CStartupPSObserver::HandlePropertyChangedL(): aCategory = 270497206"
    34.550 StartupApp: "CStartupPSObserver::HandlePropertyChangedL(): aKey = 268456681"
    34.550 StartupApp: "CStartupPSObserver::HandlePropertyChangedL(): aCategory is default"
    34.550 StartupApp: "CStartupPSObserver::HandlePropertyChangedL(): key == KPSUidSimCStatusValue"
    34.550 StartupApp: "CStartupPSObserver::StateOfVariable()"
    34.550 StartupApp: "CStartupPSObserver::StateOfVariable(): End, return 8"
    34.550 StartupApp: "CStartupPSObserver::HandlePropertyChangedL(): eventState == EPSCSimOk"
    34.550 StartupApp: "CStartupAppUi::SimSupported()"
    34.550 StartupApp: "CStartupPSObserver::SimPresent()"
    34.550 StartupApp: "CStartupPSObserver::StateOfVariable()"
    34.550 StartupApp: "CStartupPSObserver::StateOfVariable(): End, return 1"
    34.550 StartupApp: "CStartupPSObserver::SimPresent(): SIM inserted"
    34.550 StartupApp: "CStartupPSObserver::SimPresent(): End, return 1"
    34.550 StartupApp: "CStartupPSObserver::HandlePropertyChangedL(): iSimOK && iSecurityCodeOK"
    34.550 StartupApp: "CStartupPSObserver::HandlePropertyChangedL(): NotifySimAndSecurityOKStatusL( ETrue )"
    34.550 StartupApp: "CStartupAppUi::NotifySimAndSecurityOKStatusL()"
    34.550 StartupApp: "CStartupAppUi::NotifySimAndSecurityOKStatusL(): iStartupSecurityOK = ETrue"
    34.550 StartupApp: "CStartupAppUi::HandleSecurityStatusL()"
    34.550 StartupApp: "CStartupAppUi::HandleSecurityStatusL(): End"
    34.550 StartupApp: "CStartupAppUi::NotifySimAndSecurityOKStatusL(): End"
    34.550 StartupApp: "CStartupPSObserver::HandlePropertyChangedL(): Key == KUidSimCStatusValue"
    34.595 [DOSSERVER] CDosEventListenerBase::HandleEventL(...)
    34.595 [DOSSERVER] CDosEventListenerBase::PhonePowerOnL()
    34.600 SAE: CSaeDosObserver::PhonePowerOnL()
    34.600 SAE: CSaePubSubNotifier::NotifyPubSub : aVariable:100052c5, aState: 1
    34.605 [DOSSERVER] CDosSession::ServiceL()
    34.605 [DOSSERVER] AutoComplete flag unset
    34.605 [DOSSERVER] CDosSession::DispatchMessageL()
    34.605 [DOSSERVER] dosService created, continuing...
    34.605 [DOSSERVER] Calling ExecuteMessageL...
    34.610 SAE (avail): CSaeGprsAvailabilityObs::RunL() TRequestStatus(-5)
    34.610 SAE (avail): ERROR CSaeGprsAvailabilityObs: Registration status not supported!
    34.610 SAE: CSaeSignalStrengthObserver::RunL(), bars: -111
    34.610 SAE: CSaeSignalStrengthObserver::RunL() request failed -1
    34.610 SAE: CSaeSignalStrengthObserver::RunL(), reissue request
    34.610 SAE: CSaeSignalStrengthObserver::IssueRequest()
    34.625 SAE: CSaeSignalStrengthObserver::IssueRequest() return void.
    34.625 SAE: CSaeSignalStrengthObserver::RunL(), same state as on last notif., do not update states
    34.625 SAE: CSaeSignalStrengthObserver::RunL(), return void.
    34.635 StartupApp: "CStartupPSObserver::HandlePropertyChangedL(): iSimOK:1, iSecurityCodeOK:1, iSimPresent:1"
    34.635 StartupApp: "CStartupPSObserver::HandlePropertyChangedL(): End"
    34.670 FontProvider: Category=1, TextPane Height=8; mapped request=6; typeface=Series 60 Sans, actual range=7(a,d,exa,exd=5 1 1 0)
    34.675 RAknUiServer::ConnectAknServer(), handle 0, softAlarm_v0_0_1
    34.675 RAknUiServer::ConnectAknServer() end
    34.690 FontProvider: Category=1, TextPane Height=24; mapped request=21; typeface=Series 60 Sans, actual range=24(a,d,exa,exd=16 5 4 -1)
    34.745 Thread Caption softAlarm 0.0.1::Caption softAlarm 0.0.1 Panic USER 23

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,688

    Re: Emulator exits code = 0 - pls help

    Is softAlarm (the thread dying in the last line) your code?
    What happens if you just launch the emulator from the Start Menu?

  5. #5
    Super Contributor
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146

    Re: Emulator exits code = 0 - pls help

    Thats the only panic thats really visible from the stack trace atleast, if thats the case you should check your descriptor usage coz :-

    This panic is raised when any operation that moves or copies data to an 8 bit variant descriptor, causes the length of that descriptor to exceed its maximum length.
    Cheers,
    Mayank

Similar Threads

  1. Replies: 106
    Last Post: 2009-05-11, 05:53
  2. C++ 學習程序2
    By hanwen813 in forum [Archived] Other Programming Discussion 关于其他编程技术的讨论
    Replies: 32
    Last Post: 2009-04-02, 09:10
  3. Replies: 3
    Last Post: 2008-11-06, 16:19
  4. implementing code...help pls!
    By f.dedominicis in forum Symbian
    Replies: 0
    Last Post: 2007-04-08, 22:52

Posting Permissions

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