That might work using the approach that Mattias suggested (using SizeParamIndex and the first parameter instead of the third), but I simply don't know if the marshaler would behave properly. It certainly couldn't hurt to try. If it doesn't work, I'm fairly sure the approach I recommended will.
Good luck! -Andy -----Original Message----- From: Moderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED]] On Behalf Of Thomas Tomiczek Sent: Monday, October 14, 2002 11:54 AM To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] FW: Interop: Handling OUT parameter of array, gets error "Can not use SizeParamIndex for byref array parameters."?? What about using a REF array, instead of an int? Thomas Tomiczek THONA Consulting Ltd. (Microsoft MVP C#/.NET) You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.