I have modified Registration example form S60 2nd ed (btw. It is removed from 3rd ed samples. what was the reason?)
I am adding one by one element to SettingList. When I add IpField editor app crashes.
and in CreateSettingItemL( TInt aIdentifier )
identifier = ERegistrationSettingPort;
setting_page_resource = r_registration_port_setting_page;
name = rls_port_title;
RESOURCE AVKON_SETTING_PAGE r_registration_ip_setting_page
//hint_text = "Server IP Address";
label = "IP"; //rls_ip_item_title;
type = EAknCtIpFieldEditor;
editor_resource_id = r_registration_ip_field;
RESOURCE IP_FIELD_EDITOR r_registration_ip_field
min_field_values = IP_FIELD
max_field_values = IP_FIELD
Setting list displays IP field with values 0.0.0.0. When I select it to edit, application crashes.
settingItem = new ( ELeave ) CAknIpFieldSettingItem( aIdentifier, iItemData->iIP );
Now even emulator does not start and I can not post error code.
Does anyone know what is wrong?