I'm not experienced with C# so excuse me for my lack of knowledge..
I need to implement a COM Message filter for a multi-thread application(Background worker). I got send through to this(https://learn.microsoft.com/en-us/previous-versions/ms809971(v=msdn.10)?redirectedfrom=MSDN) site but it doesn't give an example of a working filter. I can't seem to find a multi-thread message filter online.. does anyone have an example code for this filter?
The error I'm getting is described on the Beckhoff site(https://infosys.beckhoff.com/english.php?content=../content/1033/tc3_automationinterface/54043195771173899.html&id=, scroll down until you see the black administrator window, that's the error), but doesn't help me fix the problem.
Thanks!
Here is an example of a com message filter:
call the filter in your main method like this: