hi,
i am having problem with creating a CEikEdwin object. i dont want to create it from a resource file. the program seems to be creating the object (i can see the cursor) but crashes just after that and gives an error -- the memory couldnt be written. what could be going wrong? the code is below -

CEikEdwin* iEdwin = new (ELeave) CEikEdwin;
iEdwin->SetContainerWindowL(*this);

iEdwin->ConstructL(0,1,50,10); // <<---- is this ok?

iEdwin->SetExtent((TPoint(0,100)), TSize(100,100));
iEdwin->SetFocus(ETrue);

thanks,
ash