13 years ago
C# Object still alive after test is completed causing TestComplete to hang
I seem to be having an odd problem. I have a C# object loaded via the CLR bridge which, once created, is not destroyed once the test is completed (I use debugview to monitor it, and it is still very much active once the test is completed).
I tried checking if the project variable it is assigned to != null when the test starts and only to call the constructor in case the variable ==null , but it is always null when starting a test even though the object is still active).
This is even more troublesome, as once the constructor is called upon from testcomplete, testcomplete simply freezes and has to be forcefully killed.
Can anyone please help me out or point me in the right direction as to how to resolve this issue?
Also, I noticed that TC hangs if there are any new incoming logs from the C# object while handling a log message event. Is there any way to handle this issue so that testcomplete does not hang?
Thanks in advance,
IdanE
I tried checking if the project variable it is assigned to != null when the test starts and only to call the constructor in case the variable ==null , but it is always null when starting a test even though the object is still active).
This is even more troublesome, as once the constructor is called upon from testcomplete, testcomplete simply freezes and has to be forcefully killed.
Can anyone please help me out or point me in the right direction as to how to resolve this issue?
Also, I noticed that TC hangs if there are any new incoming logs from the C# object while handling a log message event. Is there any way to handle this issue so that testcomplete does not hang?
Thanks in advance,
IdanE