BackgroundUploadAsync使用错误 [英] BackgroundUploadAsync usage error

查看:116
本文介绍了BackgroundUploadAsync使用错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在尝试将文件上传到Metro风格的天空驱动器应用程序,使用新的BackgroundUploadAsync方法。我的上传曾经在上一个UploadAsync方法中工作。我已将Stream更改为新函数中的IInputStream。



LiveOperationResult upLoadResult =
等待 LiveClient.BackgroundUploadAsync(SkyDriveFolderID,
SkyDUpFileName,inputStream,
< span style ="color:#0000ff; font-size:small"> true );



我在ab之后收到以下错误执行中的ove行。


" Windows.Foundation.winmd中发生了'System.AccessViolationException'类型的未处理异常


其他信息:已尝试读取或写入受保护的内存。这通常表明其他记忆已损坏。"



任何想法我在这里做错了什么?





解决方案

是否可以将片段发布到您创建输入流的位置。

谢谢你
Deepesh

I am trying to upload a file to sky drive in a Metro style app, using the new BackgroundUploadAsync method. My upload used to work in the previous UploadAsync method. I have changed the Stream to an IInputStream in the new function.

LiveOperationResultupLoadResult = awaitLiveClient.BackgroundUploadAsync(SkyDriveFolderID, SkyDUpFileName, inputStream, true);

I am getting the following error after the above line in executed.

"An unhandled exception of type 'System.AccessViolationException' occurred in Windows.Foundation.winmd

Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

Any Idea what am I doing wrong here?

解决方案

Would it be possible to post the snippet where you are creating the input stream.
Thanks
Deepesh


这篇关于BackgroundUploadAsync使用错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆