.NET Components for Mobility

NullReferenceException on Attachment.Save

Last post 04-21-2010 5:31 AM by penyaskito. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 04-11-2010 4:05 PM

    NullReferenceException on Attachment.Save

    I've just noticed that the Attachment.Save doesn't work correctly. I'm using the InTheHand 4.0 version and also use the workaround below:

     oAttach.GetType().GetMethod("OpenNativeAttachment", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance).Invoke(oAttach, null);

     

    Is this a known issue?

  • 04-12-2010 1:17 AM In reply to

    Re: NullReferenceException on Attachment.Save

    That workaround is no longer required. The current version is 4.1. Attachment.Save works so long as the attachment is fully downloaded, otherwise it will throw an InvalidOperationException. You can check the download state with the DownloadState property. If you want to force retrieval of an Attachment call its RemoteDownload() method then do a Synchronize() on the account.

    Peter

  • 04-21-2010 5:31 AM In reply to

    Re: NullReferenceException on Attachment.Save

    I'm having the same problem with this, and I'm using 4.1.
    I didn't see this thread before, so I started this one: http://inthehand.com/forums/p/3481/10221.aspx
    Sorry for the annoyance
Page 1 of 1 (3 items)
Copyright © 2001-2012 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy. OrcsWeb's Windows Cloud Server Hosting