Menu

AddRef and Release methods

Help
2010-01-20
2012-10-22
  • Emmett O'Sullivan

    Hi, I am relatively new to SimpleVBUnit and have recently taken over a project
    with SimplyVBUnit unit tests. Everything was working fine until today. Now
    when I use the GUIRunner to execute unit tests it displays an AddRef and
    Release method for each test class. I have not added these methods to any test
    class. When I try run the unit tests for a class SimpyVBUnit complains with an
    error 438 saying that the object does not support the AddRef or Release
    methods.

    Any feedback on how I can fix this would be appreciated.

     
  • Kelly Ethridge

    Kelly Ethridge - 2010-01-20

    Hello there,

    I'm sorry you've run into some trouble. This is a very bizarre problem you're
    having. I've never heard of anything like it. There is just no way for me to
    analyze your problem. Is the whole project written in VB6?

     
  • Emmett O'Sullivan

    Hi Killian, thanks for your reply. Yes, the unit test project that I have is
    written in VB6. I am going to debug through the SimplyVBUnit source today to
    see if I can find where it is picking up the AddRef and Release methods. I
    will post anything I find onto to forum.

     
  • Emmett O'Sullivan

    Hi Killian, I found the cause of my issue.

    When I have a VB Group with my UIRunner VPB and my UnitTest VPB added to the
    group and have a 'project' reference from my UIRunner VPB to my UnitTest VPB
    everything works fine. It's when I reference my UnitTest VPB as a DLL (ie. not
    using a VB Group) then the AddRef and Release methods appear. This also means
    that when I run my UIRunner VPB outside of the VB6 IDE I get the AddRef and
    Release methods. I may just add my test classes to the UIRunner VPB so as to
    avoid using a separate DLL and this should resolve my issue.

     

Log in to post a comment.