Sicos1977 / IFilterTextReader

A reader that gets text from different file formats through the IFilter interface
Other
55 stars 38 forks source link

alloc PropVariant manually for GetChunk #47

Closed Happi-cat closed 3 years ago

Happi-cat commented 3 years ago

that change should solve AccessViolationException during Marchal.Release

Sicos1977 commented 3 years ago

Thanks, how did you figure that one out?

Happi-cat commented 3 years ago

I investigated how IFilter::GetValue works according to msdn and few other articles and in few of them saw that author allocates PropVariant manually instead of passing IntPtr.Zero. So decided to try and it helped