dspace-group/dscom

Use StandardOleMarshalObject in case if single threaded apartment

Closed this issue · 0 comments

In case of an single threaded apartment, the StandardOleMarshalObject should be used.
https://learn.microsoft.com/en-us/dotnet/api/system.runtime.interopservices.standardolemarshalobject?view=net-7.0

In case of an MTA, we should use the regular free-threaded marshaler.
https://devblogs.microsoft.com/oldnewthing/20220622-00/?p=106774