×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    136

    6210: Y Main screen is not goes into the Landscape Mode

    Hello,
    I have 6210 handset as Test Device,
    I have observed, when BioSensor is enable from setting and all other view except Main phone view is goes into the LANDSCAPE view/mode,
    Why main idle screen not goes into the LANDSCAPE mode.

    My problem is, when my apps is ON and in background, it is giving panic when we change the view mode from Landscape to Normal or vice versa only when its on main idle screeen

    What might be problem??
    Regards
    Swap

  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,142

    Re: 6210: Y Main screen is not goes into the Landscape Mode

    could be that the Main phone view is defined that it is not doing layout changes, so it will only have one.

    I'm not sure what application is the BioSensor , so maybe you could tell more about it.

    For the panic of your application, firstly, you should identify the panic code, and write it to here. And secondly, you should debug and find what line in your application is giving the panic.

  3. #3
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    136

    Re: 6210: Y Main screen is not goes into the Landscape Mode

    Quote Originally Posted by symbianyucca View Post
    could be that the Main phone view is defined that it is not doing layout changes, so it will only have one.

    I'm not sure what application is the BioSensor , so maybe you could tell more about it.

    For the panic of your application, firstly, you should identify the panic code, and write it to here. And secondly, you should debug and find what line in your application is giving the panic.
    Hi Yuccaa,
    BioSensor means, the rotation sensor of phone, while we detect the position (vertical/horizontal) and change the view of phone screen in Landscape and Normal

    I am getting USER 11 panic, and since it is triggered on tilt of phone, i.e. changing view from Landscape to normal or vice a versa, I am not able to check , which part of code it is occuring...

    Since my application is in background and we tilt the phone, for all other screen except Main phone screen, apps works perfectly ..... but on main phone screen, I am getting panic as USER 11.
    (If we are some different screen, i.e. phone menu screen,msg inbox etc except phone main screen and my apps in background, and if we tilt the phone to change the view from landscape to normal or vice a versa, my apps works perfectly OK... )

    Please suggests whats wrong with apps ????

    REgards
    Swap

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

    Re: 6210: Y Main screen is not goes into the Landscape Mode

    strange indeed user 11: http://www.symbian.com/developer/tec...serPanics.html is related descriptor handling, basically a overflow of 16 bit descriptor.

    Anyway, you should put some file logging, or use other means to find out what in your application does that, I'm rather sure it is a bug in your application, and it is impossible to know what causes the actual problem without knowing what your application is doing, and especially what it is doing when it gets the panic.

  5. #5
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    136

    Re: 6210: Y Main screen is not goes into the Landscape Mode

    Quote Originally Posted by symbianyucca View Post
    strange indeed user 11: http://www.symbian.com/developer/tec...serPanics.html is related descriptor handling, basically a overflow of 16 bit descriptor.

    Anyway, you should put some file logging, or use other means to find out what in your application does that, I'm rather sure it is a bug in your application, and it is impossible to know what causes the actual problem without knowing what your application is doing, and especially what it is doing when it gets the panic.
    Yes, Its strange behavior .... I had kept the logging the function trace in files.... but its off NO use, as PANIC is triggered only when I tilt the phone on MAIN screen screen... every other views... it is working fine .....

    Is that any reason where NO LANDSCAPE View for Phone main screen causing such kind of problem .....

    Any suggestion ??

  6. #6
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    136

    Re: 6210: Y Main screen is not goes into the Landscape Mode

    Hello,
    What are all functions that will get called when we tilt the phone to change the view to LANDSCAPE view ....
    Which all functions I need to handle in it ....

  7. #7
    Super Contributor
    Join Date
    Jul 2008
    Location
    Chennai,India
    Posts
    889

    Re: 6210: Y Main screen is not goes into the Landscape Mode

    On orientation change u wud get the callbacks as

    HandleResourceChange..
    In this u need to set the size for each control/view by SetRect which in turn should be handled by

    SizeChanged function

    Also have a look @ HandleScreenDeviceChanged, if needed

  8. #8
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    136

    Re: 6210: Y Main screen is not goes into the Landscape Mode

    Quote Originally Posted by deepchand86 View Post
    On orientation change u wud get the callbacks as

    HandleResourceChange..
    In this u need to set the size for each control/view by SetRect which in turn should be handled by

    SizeChanged function

    Also have a look @ HandleScreenDeviceChanged, if needed
    Hi Deepchand,
    Thanks for a reply...
    Can u clear, Should I call this functions in AppUI?? ... or it should be in View.cpp??

  9. #9
    Nokia Developer Champion
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: 6210: Y Main screen is not goes into the Landscape Mode

    Quote Originally Posted by swapnilb83 View Post
    Hi Deepchand,
    Thanks for a reply...
    Can u clear, Should I call this functions in AppUI?? ... or it should be in View.cpp??
    Talking about which function??? HandleResourceChange() of appview will be called by framwork when u change mode from portrait to lanscape and vice versa.

  10. #10
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    136

    Re: 6210: Y Main screen is not goes into the Landscape Mode

    Quote Originally Posted by savaj View Post
    Talking about which function??? HandleResourceChange() of appview will be called by framwork when u change mode from portrait to lanscape and vice versa.
    HI Savaj
    AS per one of last post asked by yucca, my application is always crashes On function "HandleStatusPaneSizeChange()"

    THis is implemented as
    "//When Application size Chaned This Funftion Get Called By Framwork
    void CTestAppUi::HandleStatusPaneSizeChange()
    {
    iAppView->SetRect( ClientRect() );
    }

    "
    where iAppView is object of standard applicaion view

    Any suggestion !!!
    Last edited by swapnilb83; 2009-04-09 at 08:27.

  11. #11
    Nokia Developer Champion
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: 6210: Y Main screen is not goes into the Landscape Mode

    check SizeChanged() of your AppView, you are doing something wrong there which cause panic on mode change.

    Also what is panic code??

    Put breakpoint in SizeChanged() of your AppView and start application in debug mode, then change view from portrait to landscape.

  12. #12
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    136

    Re: 6210: Y Main screen is not goes into the Landscape Mode

    Quote Originally Posted by savaj View Post
    check SizeChanged() of your AppView, you are doing something wrong there which cause panic on mode change. Also what is panic code??

    The error code i am getting is USER 11

    Code in SizeChanged() of appview.cpp

    void CTestAppView::SizeChanged()
    {
    DrawNow();
    }

  13. #13
    Nokia Developer Champion
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: 6210: Y Main screen is not goes into the Landscape Mode

    What about your CTestAppView:raw() method??

  14. #14
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,335

    Re: 6210: Y Main screen is not goes into the Landscape Mode

    Quote Originally Posted by swapnilb83 View Post
    The error code i am getting is USER 11
    Quote Originally Posted by SDK Help
    USER 11
    This panic is raised when any operation that moves or copies data to a 16-bit variant descriptor, causes the length of that descriptor to exceed its maximum length.

    It may be caused by any of the copying, appending or formatting member functions and, specifically, by the Insert(), Replace(), Fill(), Fillz() and ZeroTerminate() descriptor member functions. It can also be caused by the SetLength() function. See TDes16.
    You might need to check your implementation code and see where are you breaking the rules.
    Nokia Developer Wiki Moderation team

  15. #15
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    136

    Re: 6210: Y Main screen is not goes into the Landscape Mode

    Quote Originally Posted by kiran10182 View Post
    You might need to check your implementation code and see where are you breaking the rules.
    Here is Draw method

    void CTestAppView:raw( const TRect& /*aRect*/ ) const
    {
    // Get the standard graphics context
    CWindowGc& gc = SystemGc();

    // Gets the control's extent
    TRect drawRect( Rect());

    // Clears the screen
    gc.Clear( drawRect );

    }



    Problem is, I am never get any panic if I tilt the phone when
    1. apps is in foreground
    2. apps is in background and any screen other than phone main screen (example: msg:Inbox, any other application screen, Phone menu screen, Phone setting screen etc)

    I am getting error (USER : 11) only when I am on Phone main screen and phone is tilted for landscape view ....

    When Apps is in background .... Following is the Draw() method of active view
    void CTestMainContainer:raw(const TRect& aRect) const
    {
    }

Page 1 of 2 12 LastLast

Similar Threads

  1. Keyboard in landscape mode S60 3rd FP2 v1.1 (bug ?)
    By heuven in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2009-02-28, 12:07
  2. Landscape and Potrait mode!
    By XXmapoXX in forum Symbian User Interface
    Replies: 1
    Last Post: 2008-06-18, 15:12
  3. Replies: 2
    Last Post: 2007-09-14, 09:41
  4. N93 video output and landscape mode.
    By Peter_Eskolin in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2006-11-23, 21:54
  5. UI: Full Screen Mode
    By GENERAL_INFO in forum Symbian User Interface
    Replies: 3
    Last Post: 2004-11-22, 06:27

Posting Permissions

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