Hello all.
I meet one strange issue.
Public Class MyClass
{
Public MyClass()
{
// Some time the New Com Obj code will crush in Construcor
su.SUEvent += new _IaSystemMgrEvents_SuEventEventHandler(su_SuEvent);
su.SUEventSteps += new _IaSystemMgrEvents_SuEventIemsEventHandler(su_SuEventSteps);
su.SetHBCOMAddr();}
public void Init()
{
// If i inserted the three lines code to Init() fun, it worked very well.
su.SUEvent += new _IaSystemMgrEvents_SuEventEventHandler(su_SuEvent);
su.SUEventSteps += new _IaSystemMgrEvents_SuEventIemsEventHandler>(su_SuEventSteps);
su.SetHBCOMAddr();
}
}
su is a lib file from C++ Why i can't creat Com Obj in constructor in C#.