Welcome to the Xceed Community | Help
Community Search  
More Search Options

At least one of the arguments for... error on VS2005

Sort Posts: Previous Next
  •  08-16-2007, 2:46 PM Post no. 6185

    At least one of the arguments for... error on VS2005

    .Net 2005 (VB), XP, XCeedCry1.1 encryption library. Developing a service (not an application):

    Load Xceed encryption library v1.1 COM. At buid time, I receive 49 warnings*, all about arguments not marshalled**. As warnings, I can live with that, but the created service wont start. Any clue will be appreciatted.

    Sincerely,
    Grenville Tryon



    *First 3 one warnings:
    IXCeedHashing.FromString
    IXCeedHashData.Process
    IXCeedHashData.Revert
    ...

    **At least one of the arguments for 'XXX' can not be marshaled by the runtime marshaler. Such arguments will therefore be passed as a pointer and may require unsafe code to manipulate.
  •  08-20-2007, 11:26 AM Post no. 6186 in reply to 6185

    Re: At least one of the arguments for... error on VS2005

    We don't know why your service will not start, but the warnings are not likely the reason why it does not work.

    You can safely ignore these warnings. You can find out more about this issue by consulting this page: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vbtchtroubleshootingnetinteroperability.asp

    The "In/Out C-Style Arrays" section is particularly relevant. Bottom-line : if the returned buffer of the specified methods in the warnings were accepting "in" values, you would have to apply the modifications in the article. But since all the listed methods only handle out buffers, the warnings are of no consequence to you nor the framework.

    However, if you want to permanently get rid of the warnings (when you do a "Rebuild All" for instance), you will have no choice to proceed as described in the article. You will have to disassemble the interop wrapper (with ildasm), edit the IL and reassemble (with ilasm). This process is also called "creative round tripping".

    André
    Software Developer
    Xceed Software Inc.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.