Error (LEADDlgImgEffect Control) example for C++ Builder

void __fastcall TForm1::Button1Click(TObject *Sender) 
{
   LEADDlgImgEffect1->EnableMethodErrors = true; 
     try
   {
      LEADDlgImgEffect1->ShowMotionBlurDlg ( NULL ); 
   }
   catch (...)
   {
      ShowMessage("Calling ShowMotionBlurDlg method failed\n Error No " + IntToStr(LEADDlgImgEffect1->Error) + "\n" + LEADDlgImgEffect1->ErrorMsg); 
   }
}