.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.
Imported from legacy forums. Posted by gtryonp (had 7472 views)
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)