Mattias,

I think that decimal cyVal member was the problem. After I removed it, the
type was able to load. However, I'm getting a weird exception when I call
GetValue.

An unhandled exception of type 'System.OutOfMemoryException' occurred in
felix.dll
Additional information: Not enough storage is available to complete this
operation.

The signature for GetValue is

[PreserveSig]

int GetValue(

    [MarshalAs(UnmanagedType.Struct)]

    out PROPVARIANT ppPropValue

);


I'm calling it with

PROPVARIANT var;

filter.GetValue(out var);



The exception occurs here. I have no idea what could be causing this
exception. Any ideas?

Thanks,
Erick

----- Original Message -----
From: "Mattias Sjögren" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 15, 2002 12:11 AM
Subject: Re: [DOTNET] RCW for IFilter and LoadIFilter


Erick,

>Ok, I think I sent this last email too quickly. If I try to use the
>PROPVARIANT struct as defined, it blows up on me when the type is loaded.
>
>An unhandled exception of type 'System.TypeLoadException' occurred in
>felix.dll
>Additional information: Could not load type PROPVARIANT from assembly

Oops, that should teach me to test code before posting. Sorry for all the
typos in there too.


>Everything compiles correctly, so I'm not sure where the problem could be.
>Anyone?

Looks like it didn't like the decimal cyVal member, so try removing that
one.


Mattias

===
Mattias Sjögren
[EMAIL PROTECTED]

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to