locked
At least one of the arguments for 'IWMPGraphEventHandler.NotifyAcquireCredentials' cannot be marshaled by the runtime marshaler. Such arguments will therefore be passed as a pointer and may require unsafe code to manipulate. RRS feed

  • Question

  • Hi all,
    I have the following warnings when compiling my code(VB10):

    1: Type library importer encountered a property getter 'sessionPlaylistCount' on type 'WMPLib.IWMPNowPlayingHelperDispatch' without a valid return type.  The importer will attempt to import this property as a method instead.

    2: At least one of the arguments for 'IWMPGraphEventHandler.NotifyAcquireCredentials' cannot be marshaled by the runtime marshaler.  Such arguments will therefore be passed as a pointer and may require unsafe code to manipulate.

    How can I fix?

    Thanks

    Friday, October 26, 2012 9:36 AM

Answers

  • Hi Tnn,

    Welcome to the MSDN Forum.

    >>1

    This description is clear. The getter method of that property don't return a valid type. This is by design. Or else you can change the library to provide a valid type. So you need to change your code of this to call something like call a method.

    >>2

    Please take a look at this similar thread: http://stackoverflow.com/questions/7684805/what-does-cannot-be-marshaled-by-the-runtime-marshaler-mean  

    Best regards,


    Mike Feng
    MSDN Community Support | Feedback to us
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.


    • Edited by Mike Feng Monday, October 29, 2012 12:50 PM
    • Marked as answer by Mike Feng Thursday, November 8, 2012 3:51 PM
    Monday, October 29, 2012 12:49 PM