ClearCase.CCLabelType ->Apply() function throwing Expection

7 views
Skip to first unread message

Rasheed

unread,
Aug 18, 2009, 4:44:19 AM8/18/09
to ClearCase
ClearCase.CCLabelType ->Apply() function throwing Expection Error
HRESULT E_FAIL has been returned from a call to a COM component.
without any detailed information.

Hi ,
I have a solution which creates a branch using the following DLL APIs
“C:\Program Files\Rational\ClearCase\bin\ccauto.dll”.

But I am getting the COM exception while I am creating a branch using
LATEST Dev-Main Branch Config Spec. please find the exception as a
attachment file.

The only API which throwing the exception is (rest all using APIs are
working perfectly) Apply() API function

public interface CCLabelType -> public interface ICCLabelType->

void Apply(ClearCase.CCVersion pVersion, string Comment, bool Replace,
bool Recurse)
Member of ClearCase.ICCLabelType
Description Apply: Applies an instance of this label type to a version
object

I hope code helps you in understanding my problem.

ClearCase.CCLabelType BuildLabel = null;
………………..
………………..
………………..

BuildLabel.Apply
(DevInfraVersionControl.DevInfraVersionControlClearCase.m_CCAppClass.get_Version
(strVOBPath), "", true, true);

My problem is pertaining to only one specific branch (Dev-Main) and
specific vob.
On the Same VOB with different branch my solution is working
perfectly, and for other VOBs also it working fine.

Kindly help me how to find the problem and is there any way to find
the problem.

Regards,
Rasheed.
Reply all
Reply to author
Forward
0 new messages