Re: [ADVANCED-DOTNET] FW: Interop: Handling OUT parameter of array, gets error "Can not use SizeParamIndex for byref array parameters."??

2002-10-20 Thread Andrew Hopper
OTNET@;DISCUSS.DEVELOP.COM] On Behalf Of Thomas Tomiczek Sent: Saturday, October 19, 2002 9:18 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."?? Thanks a lot Andrew, b

Re: [ADVANCED-DOTNET] FW: Interop: Handling OUT parameter of array, gets error "Can not use SizeParamIndex for byref array parameters."??

2002-10-19 Thread Thomas Tomiczek
[mailto:Andy.Hopper@;MINDSPRING.COM] Sent: Samstag, 19. Oktober 2002 14:38 To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] FW: Interop: Handling OUT parameter of array, gets error "Can not use SizeParamIndex for byref array parameters."?? Thomas- If the value of size changed something went terr

Re: [ADVANCED-DOTNET] FW: Interop: Handling OUT parameter of array, gets error "Can not use SizeParamIndex for byref array parameters."??

2002-10-19 Thread Andrew Hopper
half Of Thomas Tomiczek Sent: Friday, October 18, 2002 4:47 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."?? Andrew - I hve to ge this back up. Found the time to try

Re: [ADVANCED-DOTNET] FW: Interop: Handling OUT parameter of array, gets error "Can not use SizeParamIndex for byref array parameters."??

2002-10-19 Thread Thomas Tomiczek
rop: Handling OUT parameter of array, gets error "Can not use SizeParamIndex for byref array parameters."?? Hello, Thomas- >From what I understand, using the SizeParamIndex to marshal arrays only works for marshaling data from managed code into COM and will not work for out parameters.

Re: [ADVANCED-DOTNET] FW: Interop: Handling OUT parameter of array, gets error "Can not use SizeParamIndex for byref array parameters."??

2002-10-14 Thread Andrew Hopper
h 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 para

Re: [ADVANCED-DOTNET] FW: Interop: Handling OUT parameter of array, gets error "Can not use SizeParamIndex for byref array parameters."??

2002-10-14 Thread Thomas Tomiczek
: 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

Re: [ADVANCED-DOTNET] FW: Interop: Handling OUT parameter of array, gets error "Can not use SizeParamIndex for byref array parameters."??

2002-10-14 Thread Richard Birkby
ctober 2002 15:37 > To: [EMAIL PROTECTED] > Subject: Re: [ADVANCED-DOTNET] FW: Interop: Handling OUT parameter of > array, gets error "Can not use SizeParamIndex for byref array > parameters."?? > > > Hello, Thomas- > > From what I understand, using the SizeParamIn

Re: [ADVANCED-DOTNET] FW: Interop: Handling OUT parameter of array, gets error "Can not use SizeParamIndex for byref array parameters."??

2002-10-14 Thread Andrew Hopper
derated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED]] On Behalf Of Thomas Tomiczek Sent: Monday, October 14, 2002 6:49 AM To: [EMAIL PROTECTED] Subject: [ADVANCED-DOTNET] FW: Interop: Handling OUT parameter of array, gets error "Can not use SizeParamIndex for byref array parame

Re: [ADVANCED-DOTNET] FW: Interop: Handling OUT parameter of array, gets error "Can not use SizeParamIndex for byref array parameters."??

2002-10-14 Thread Thomas Tomiczek
]] Sent: Montag, 14. Oktober 2002 15:20 To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] FW: Interop: Handling OUT parameter of array, gets error "Can not use SizeParamIndex for byref array parameters."?? Thomas, Try it like this [PreserveSig] int Next( int cPins,

Re: [ADVANCED-DOTNET] FW: Interop: Handling OUT parameter of array, gets error "Can not use SizeParamIndex for byref array parameters."??

2002-10-14 Thread Mattias Sjögren
Thomas, Try it like this [PreserveSig] int Next( int cPins, [Out, MarshalAs(UnmanagedType.LPArray, SizeParamIndex=0)] IPin[] ppPins, out int pcFetched ); Mattias === Mattias Sjögren [EMAIL PROTECTED] You can read messages from the Advanced DOTNET archive, unsubscr

[ADVANCED-DOTNET] FW: Interop: Handling OUT parameter of array, gets error "Can not use SizeParamIndex for byref array parameters."??

2002-10-14 Thread Thomas Tomiczek
> Hello, simple question (so to say). > > I ham trying to manage interoo for interface arrays. > > This interface definition is not working. It is for a DirectShow > Interface: > > [ComVisible(true), ComImport, > Guid("56a86892-0ad4-11ce-b03a-0020af0ba770"), > InterfaceType( C