Unexpected or overlapping window event in .NET library
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Unexpected or overlapping window event in .NET library
Hello,
is there any way how to trap "overlapping window" event in .NET (visual studio) other then through COM component AxEventControl? I am accessing TC from dll library (encapsulating TC functions) so I don't really use forms where to place that COM component. As long as dll doesn't have any mainline static entry point I get error: "ActiveX control cannot be instantiated because the current thread is not in a single-threaded apartment." when I try to create that component dynamically. Does exist any solution?
Thanks
--
Tomas Panik
QA Specialist
AVG Technologies
tomas.panik@avg.com
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Tomas,
I recommend that you examine the Connected and Self-Testing applications concepts - I guess, this is what you actually need (instead of working with COM objects explicitly). Please see the "Connected Applications" ( http://www.automatedqa.com/support/viewarticle.aspx?aid=2526 ) and "Self-Testing Applications" ( http://www.automatedqa.com/support/viewarticle.aspx?aid=2518 ) help topics for more information.
Best regards,
Alexey
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
