From: WonYoung Choi Date: Tue, 13 Sep 2016 08:11:19 +0000 (+0900) Subject: Throw an exception when elm_image_memfile_set is failed X-Git-Tag: submit/trunk/20170823.075128~110^2~281 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e6daca02bba9f24f2130cb5d2f8252348cc9bcf5;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git Throw an exception when elm_image_memfile_set is failed Change-Id: I0ef8c85565c417d6632c56254bd1424ed655aa37 --- diff --git a/src/ElmSharp/ElmSharp/Image.cs b/src/ElmSharp/ElmSharp/Image.cs index 84c422709..141623c51 100644 --- a/src/ElmSharp/ElmSharp/Image.cs +++ b/src/ElmSharp/ElmSharp/Image.cs @@ -223,7 +223,7 @@ namespace ElmSharp bool ret = Interop.Elementary.elm_image_memfile_set(Handle, img, size, IntPtr.Zero, IntPtr.Zero); if (!ret) { - Console.WriteLine("Failed to set memory buffer to Image"); + throw new InvalidOperationException("Failed to set memory buffer to Image"); } LoadingCompleted?.Invoke(this, EventArgs.Empty);