What about using a REF array, instead of an int? Thomas Tomiczek THONA Consulting Ltd. (Microsoft MVP C#/.NET)
-----Original Message----- From: Richard Birkby [mailto:[EMAIL PROTECTED]] Sent: Montag, 14. Oktober 2002 17:21 To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] FW: Interop: Handling OUT parameter of array, gets error "Can not use SizeParamIndex for byref array parameters."?? I came across the same problem with C-style arrays only last week. I solved it the same way. I have been getting some very odd behavior though - ExecutionEngineExceptions and other random exceptions (even exceptions which claim I am unable to write to the EventLog, which is patently false). So, reluctantly, I've decided to write an unmanaged proxy which converts a C-style array method into a SafeArray. Regards, Richard You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.