I´m trying to make a CAknSingleStyleListBox. The problem is: Application crashes with Kern-exec 3. I ´ve tryed to debug the code and the crash happens in line "iListBox = new( ELeave ) CAknSingleStyleListBox();"
I´m greateful for any help! My resource file looks like this:

RESOURCE LISTBOX r_my_listbox
{
flags = EAknListBoxSelectionList;
array_id = r_my_listbox_items;
}

RESOURCE ARRAY r_my_listbox_items
{
items =
{
LBUF
{
txt = "\tItem1\t0\t1";
},
LBUF
{
txt = "\tItem2\t0\t1";
},
LBUF
{
txt = "\tItem3\t0\t1";
}
};
}
code in cpp- file:
iListBox = new( ELeave ) CAknSingleStyleListBox();
iListBox->SetContainerWindowL(*this);
TInt resourceId = R_MY_LISTBOX;
TResourceReader reader;
CEikonEnv::Static()-->CreateResourceReaderLC(
reader, resourceId);
iListBox->ConstructFromResourceL(reader);
CleanupStack::PopAndDestroy();
iListBox->CreateScrollBarFrameL(ETrue);
iListBox->ScrollBarFrame()->SetScrollBarVisibilityL( CEikScrollBarFrame::EOff, CEikScrollBarFrame::EAuto);
iListBox->SetListBoxObserver(this);
SetRect(aRect);
ActivateL();
iListBox->SetCurrentItemIndexAndDraw(0);
iListBox->ActivateL();
CEikScrollBarFrame::EAuto);
I have implemented methods:

TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
TInt CountComponentControls() const;
CCoeControl* ComponentControl(TInt aIndex) const;