[FIX] Internet app closing during file inst
authorAnastasia Lyupa <a.lyupa@samsung.com>
Tue, 29 Oct 2013 09:46:32 +0000 (13:46 +0400)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Tue, 29 Oct 2013 12:56:30 +0000 (12:56 +0000)
It is a temporary solution

Change-Id: I22cf5fcb056251635c553ee84a8bb7eeb358369f
Signed-off-by: Anastasia Lyupa <a.lyupa@samsung.com>
probe_tizenapi/tizen_file.cpp

index 700f0ec..3a07450 100755 (executable)
@@ -134,8 +134,11 @@ result File::Construct(const Tizen::Base::String& filePath,
        if(postBlockBegin(blockresult)) {
                WcharToChar(temp_path,filePath.GetPointer());
                WcharToChar(temp_mode,openMode.GetPointer());
-               if(E_SUCCESS == File::GetAttributes(this->GetName(), attr))
-                       size = attr.GetFileSize();
+               // Comment this because of fault during Internet application profiling
+               // (it closes unexpectedly) but for DATizenTestApp it is ok
+               // There is the same problem at File::~File(void)
+               //if(E_SUCCESS == File::GetAttributes(this->GetName(), attr))
+               //      size = attr.GetFileSize();
 
                PREPARE_LOCAL_BUF();
                PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE,