This is a migrated thread and some comments may be shown as answers.

NonComVisibleBaseClass was detected

2 Answers 711 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Silvio
Top achievements
Rank 1
Silvio asked on 16 Jan 2013, 02:05 PM
Hi!

Some tests seem to fail in debug mode. Following message is shown:

NonComVisibleBaseClass was detected
Message: A QueryInterface call was made requesting the class interface of COM visible managed class 'MS.Internal.AutomationProxies.WindowsEditBox'. However since this class derives from non COM visible class 'MS.Internal.AutomationProxies.ProxyHwnd', the QueryInterface call will fail. This is done to prevent the non COM visible base class from being constrained by the COM versioning rules.


I don´t see any connection between the failing tests. The only constant is this message shown in debug mode.
Does somebody know this issue?

Kind regards

2 Answers, 1 is accepted

Sort by
0
Accepted
Boyan Boev
Telerik team
answered on 16 Jan 2013, 03:29 PM
Hello Silvio,

It seems that is a question related rather to Visual Studio than to Test Studio.

An option here is to turn off the managed Debugging Assistant for the "NonComVisibleBaseClass" exception in Visual Studio:

1. Navigate to Debug->Exceptions.
2. Expand "Managed Debugging Assistants"
3. Uncheck the NonComVisibleBaseClass Thrown option.
4. Click "OK"

I recorded a short video as a demonstration.

Let me know if this helps.
Greetings,
Boyan Boev
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Silvio
Top achievements
Rank 1
answered on 17 Jan 2013, 09:18 AM
Thanks for your help!

This would surely be a solution / workaround. I could also just run it in release mode. It´s no big problem, but I just wanted to let you know.

Kind regards
Silvio
Tags
General Discussions
Asked by
Silvio
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
Silvio
Top achievements
Rank 1
Share this question
or