VisualElementPropertyAnimation* pOpacityAnimation = null;
VisualElementPropertyAnimation* pBoundsAnimation = null;
- String* pOpenUserData = new String(L"BarOpenAnimation");
- SysTryReturn(NID_UI_CTRL, pOpenUserData, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation is failed");
+ String* pOpenUserData = null;
+ String* pCloseUserData = null;
- String* pCloseUserData = new String(L"BarCloseAnimation");
- SysTryReturn(NID_UI_CTRL, pCloseUserData, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation is failed");
+ pOpenUserData = new (std::nothrow) String(L"BarOpenAnimation");
+ SysTryCatch(NID_UI_CTRL, pOpenUserData, , E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation is failed");
+
+ pCloseUserData = new (std::nothrow) String(L"BarCloseAnimation");
+ SysTryCatch(NID_UI_CTRL, pCloseUserData, , E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation is failed");
pAnimationGroup->SetDuration(ANIMATION_DURATION);