CCEditBox strange behaviour, additional random characters displayed

Hi , im porting my cocos2dx game to android, I’m creating ebox and adding to CCLayer. On android phone (htc desire z, android 2.3.3.) simulator 4.02, 4.1.2 etc. CCeditBox displays
one random (??) single digit on the center of the edit box. I cannot remove it, i dont know what is it:)). On IOS there is no such problem.
I’m using cocos2d rc0 2.1.2. Screen is in attachement

my code:

CCEditBox *ebox = CCEditBox::create(CCSizeMake(200, 30),spr);

ebox~~>setPosition.width/2, dialog~~>getContentSize().height/2));
ebox~~>setText);
ebox~~>setMaxLength(cbEditBoxMaxSize);
ebox~~>setPlaceHolder;
ebox~~>setTag(cbEditBoxTag);


android1.jpg (117.6 KB)


android2.jpg (93.5 KB)

What’s the value of lastname.c_str()?

James Chen wrote:

What’s the value of lastname.c_str()?

I was testing this with different values. It is last entered value kept in SharedUserPreferences. In screenshots it was “Kamil”. This digit is displayed always on screen center regardless of lastname value.
The same problem occurs when I’m not setting any value (I’m not usign setText method).