Home Forums ActiveX components Xceed Encryption for ActiveX At least one of the arguments for… error on VS2005

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • User (Old forums)
    Post count: 23064
    #42972 |

    .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.

    Grenville Tryon

    *First 3 one warnings:

    **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.

    Imported from legacy forums. Posted by gtryonp (had 7472 views)

    User (Old forums)
    Post count: 23064

    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”.

    Imported from legacy forums. Posted by André (had 7500 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.