Hi all,
I have some question about BackgroundUploader in release preview build
[Question 1]
http://msdn.microsoft.com/en-us/library/windows/apps/br207140.aspx
Select
CreateUpload, it will show "This content has been removed"
But, if you search CreateUpload in VS2012 Object Browser.
It will show "CreateUpload(Windows::Foundation::Uri^, Windows::Storage::IStorageFile^)"
Why? Which is correct?
[Question 2]
String^ test = https://apis.live.net/v5.0/me/skydrive/files/Hello.txt?access_token=......;
Uri^ url = ref new Uri(test);
task<StorageFile^> createTempFileTask(KnownFolders::VideosLibrary->CreateFileAsync("Hello.txt",CreationCollisionOption::OpenIfExists));
createTempFileTask.then([this, url] (task<StorageFile^> fileTask)
{
try
{
StorageFile^ file = fileTask.get();
auto uploader = ref new BackgroundUploader();
auto uploadOperation = uploader->CreateUpload(url, file);
task<UploadOperation^>(uploadOperation->StartAsync())
.then([this](task<UploadOperation^> uploadTask)
{
//...
});
}
catch (Platform::Exception^ e)
{
//...
}
});
I want upload hello.txt to skydrive.
Follow this code, it can work normaly on Consumer Preview Build
But, it will show Exception message on Release Preview Build.
Error message: "An invalid parameter was passed to a function that considers invalid parameters fata"
Depend on this error message, it means the function parameter is incorrect
But I can debug success
Why?
[Question 3]
http://code.msdn.microsoft.com/windowsapps/Background-Transfer-Sample-d7833f61
Doesn't modify any c++ sample code,
jsut compile and run this sample in Release Preview build
Follow these reproduce step
1. Select File Upload
2. Click start upload button
3. Select upload file
It will show exception message "Microsoft C++ exception: Platform::COMException ^ at memory location"
Why?
Thanks