×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Regular Contributor
    Join Date
    Apr 2008
    Location
    India
    Posts
    477

    Compound control problem...

    Hello all,
    I am creating one compound control application in which the container will contains a control (CCoeControl) and that control also contains another control (CCoeControl)... all the three controls (Container and two controls) are created by me... now prob is that when i am activating the window of my container using ActivateL().. i am getting User 42 panic....which is due to RHeap problem.... so wht may be the prob plz help me to solve this out...
    Code snippet is blow...

    Main Container
    Code:
    ConstructL(CPPViewBase* aContainer, const TRect& aRect)
    {
    	iViewBase = aContainer;
    	iViewIF = iViewBase->iAppView->iViewIF;
            SetRect(aRect);
            iLabel = new(ELeave)CAnimationLabel; 
    	iLabel->ConstructL();
    	iLabel->SetExtent(TPoint(200,200), TSize(300,300));
    	iLabel->SetContainerWindowL(*this);
    	ActivateL();
    Fisrst Control
    Code:
    CAnimationLabel::ConstructL()
    	{
    	iAnimation = new(ELeave)CAnimation;
    	iAnimation->ConstructL();
    	iAnimation->SetExtent(TPoint(20,20), TSize(200,200));
    	iAnimation->SetContainerWindowL(*this);
    	iAnimation->SetFocus(ETrue);	
    	}

    and the third compound control is:

    Code:
    CAnimation::ConstructL()
    	{
    	SetBlank();
    	}
    Isuues:
    1: when i call activateL() in main container the CountComponentControls() and ComponentControl(TInt aIndex) are called and after that User42 is coming... and its not calling these function of my CAnimationLabel class and not activating it....
    Thanks and Regards
    Pawan Gupta
    Last edited by pawan_G; 2008-12-31 at 07:25.

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

    Re: Compound control problem...

    I would try figuring out which part of the program causes the error, so you could try commenting code out, and running the program, and by adding the code back, you could see which part actually gives the error, and then you could try going into that module and figuring ut what it is that goes wrong with it.

  3. #3
    Regular Contributor
    Join Date
    Apr 2008
    Location
    India
    Posts
    477

    Re: Compound control problem...

    yes i tried that also..... when m not creating the embedded compound (CAnimation) the container is initializing the CAnimationLabel and working fine but when m using the CAnimation its creating the problem...

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

    Re: Compound control problem...

    So it has nothing to do with containers then.. Maybe you should check what Wiki says on the topic: http://wiki.forum.nokia.com/index.ph...evice_software

  5. #5
    Regular Contributor
    Join Date
    Apr 2008
    Location
    India
    Posts
    477

    Re: Compound control problem...

    thanx for the reply/..
    i am not using any animation class ... that class name is my own.. which i have given...
    in link only animation class is mentioned which are of no use for me...
    plz any other suggession...

  6. #6
    Regular Contributor
    Join Date
    Apr 2008
    Location
    India
    Posts
    477

    Re: Compound control problem...

    one thing which i notice while debugging is that from my main container the third controls instance is not visible which should be thr inside the object of CAnimationLabel.

    i.e. CAnimationLabel->CAnimation is not working in my case.... strange but its true..

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

    Re: Compound control problem...

    if it is your own implementation, you should really be able to find the error you have done coding it.. So check the codes and debug some more..

  8. #8
    Regular Contributor
    Join Date
    Apr 2008
    Location
    India
    Posts
    477

    Re: Compound control problem...

    Hello all,
    I solved my problem some what but getting one problem...
    When i am calling the ActivateL() of the 3rd level (iAnimation) control then it is not calliing the draw() function which is called by framework....
    i.e. my window for this control is getting activated for drawing...

Similar Threads

  1. Compound control with multiselection list box item
    By thehung111 in forum Symbian User Interface
    Replies: 0
    Last Post: 2008-01-07, 04:51
  2. Edwin control problem
    By msulaiman in forum Symbian
    Replies: 2
    Last Post: 2007-09-16, 14:30
  3. KERN-EXEC3 in compound control.
    By hamishw in forum Symbian User Interface
    Replies: 1
    Last Post: 2005-08-29, 08:02
  4. Problem about the view of Compound Control
    By LvChong in forum Symbian User Interface
    Replies: 2
    Last Post: 2005-08-11, 02:26
  5. problem in custom control.....
    By platinnum in forum Symbian
    Replies: 0
    Last Post: 2005-06-30, 07:11

Posting Permissions

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