NonComVisibleBaseClass was detected

3 posts, 1 answers
  1. Silvio
    Silvio avatar
    52 posts
    Member since:
    Dec 2012

    Posted 16 Jan 2013 Link to this post

    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. Answer
    Boyan Boev
    Admin
    Boyan Boev avatar
    1039 posts

    Posted 16 Jan 2013 Link to this post

    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
  3. Silvio
    Silvio avatar
    52 posts
    Member since:
    Dec 2012

    Posted 17 Jan 2013 Link to this post

    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
Back to Top