Hi,
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.
Resource:
and in CreateSettingItemL( TInt aIdentifier )Code:AVKON_SETTING_ITEM { 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 { first_field=0; second_field=0; third_field=0; fourth_field=0; }; max_field_values = IP_FIELD { first_field=254; second_field=254; third_field=254; fourth_field=254; }; }
Setting list displays IP field with values 0.0.0.0. When I select it to edit, application crashes.Code:case ERegistrationSettingIP: settingItem = new ( ELeave ) CAknIpFieldSettingItem( aIdentifier, iItemData->iIP ); break;
Now even emulator does not start and I can not post error code.
Does anyone know what is wrong?
Thanks,
Zdenko



