언어 설정

Menu
Sites
Language
Paremeters allowed for local/remote message ports

I am curious which objects can be set to Tizen::Base::Collection::IMap that is passed as a message when communicating between apps using Tizen::Io::LocalMessagePort and Tizen::Io::RemoteMessagePort.

For example, when I tried to use this code (slightly modified example), my app crashed.

void MyAppClass::GetOnlineFriends(void)
{
  HashMap* pMap = new HashMap(SingleObjectDeleter);
  pMap->Construct();

  pMap->Add(new String(L"RequestType"), new Integer(42));

  pRemotePort->SendMessage(pLocalPort, pMap);

  delete pMap;
}

Am I doing something wrong, or only Strings are allowed as values when using message ports?

Edited by: Brock Boland on 17 3월, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

1 댓글
youngsik yoon
in dev guide, it says the pMessage argument is "A pointer to an argument map of key (String) and value (String or ByteBuffer) pair The recommended message size is under 4KB". so looks like it doesn't take Key(String) and value(integer) pair.