platform/wm/tools/detool/detool.cpp in rhodes-3.3.2.beta.4 vs platform/wm/tools/detool/detool.cpp in rhodes-3.3.2.beta.5

- old
+ new

@@ -1044,10 +1044,12 @@ _tprintf( TEXT("FAILED\n")); return false; } _tprintf( TEXT("DONE\n")); + startWMDC(); + hFind = CeFindFirstFile(app_dir, &findData); if (INVALID_HANDLE_VALUE == hFind) { _tprintf( TEXT("Application directory on device was no found\n")); new_copy = 1; @@ -1094,10 +1096,13 @@ if (copyBundle(bundle_path, _T("/"), remote_bundle_path) == EXIT_FAILURE) { printf ("Failed to copy bundle\n"); goto stop_emu_deploy; } + // establish network connectivity of the device from Windows Mobile Device Center (if applicable) + connectWMDC(); + Sleep(2 * 1000); _tprintf( TEXT("Starting application...")); _tcscpy(params_buf, TEXT("\\Program Files\\")); _tcscat(params_buf, app_name); @@ -1105,12 +1110,14 @@ _tcscat(params_buf, app_name); _tcscat(params_buf, _T(".exe")); _tprintf( TEXT("%s\n"), params_buf); TCHAR params[128]; - _tcscpy(params, _T("-log=")); - _tcscat(params, log_port); + // temporary disable log from device (caused enormous delays) + params[0] = 0; + //_tcscpy(params, _T("-log=")); + //_tcscat(params, log_port); if(!wceRunProcess(T2A(params_buf), T2A(params))) { _tprintf( TEXT("FAILED\n")); goto stop_emu_deploy; } @@ -1128,10 +1135,12 @@ _tprintf( TEXT("FAILED\n")); return false; } _tprintf( TEXT("DONE\n")); + startWMDC(); + _tprintf( TEXT("Loading cab file to device...")); USES_CONVERSION; if (!wcePutFile (T2A(cab_file), "")) { _tprintf( TEXT("FAILED\n")); goto stop_emu_deploy; @@ -1170,19 +1179,24 @@ goto stop_emu_deploy; } _tprintf( TEXT("DONE\n")); + // establish network connectivity of the device from Windows Mobile Device Center (if applicable) + connectWMDC(); + _tprintf( TEXT("Starting application...")); _tcscpy(params_buf, TEXT("\\Program Files\\")); _tcscat(params_buf, app_name); _tcscat(params_buf, _T("\\")); _tcscat(params_buf, app_name); _tcscat(params_buf, _T(".exe")); TCHAR params[128]; - _tcscpy(params, _T("-log=")); - _tcscat(params, log_port); + // temporary disable log from device (caused enormous delays) + params[0] = 0; + //_tcscpy(params, _T("-log=")); + //_tcscat(params, log_port); if(!wceRunProcess (T2A(params_buf), T2A(params))) { _tprintf( TEXT("FAILED\n")); goto stop_emu_deploy; }