diff --git a/ide/lazarusidestrconsts.pas b/ide/lazarusidestrconsts.pas index c21e27a16c..55635e6f47 100644 --- a/ide/lazarusidestrconsts.pas +++ b/ide/lazarusidestrconsts.pas @@ -915,7 +915,7 @@ resourcestring +'is inherited from %s.%sTo rename an inherited component open the ' +'ancestor and rename it there.'; lisUnableToFindMethod = 'Unable to find method.'; - lisUnableToCreateNewMethod = 'Unable to create new method.'; + //lisUnableToCreateNewMethod = 'Unable to create new method.'; lisUnableToShowMethod = 'Unable to show method.'; lisPleaseFixTheErrorInTheMessageWindow = 'Please fix the error shown in the' +' message window which is normally below the source editor.'; diff --git a/ide/main.pp b/ide/main.pp index 205da4ee69..2644f4608f 100644 --- a/ide/main.pp +++ b/ide/main.pp @@ -13321,7 +13321,8 @@ begin end else begin DebugLn(['Error: (lazarus) TMainIDE.PropHookCreateMethod failed adding method "'+ShortMethodName+'" to source']); DoJumpToCodeToolBossError; - raise Exception.Create(lisUnableToCreateNewMethod+' '+lisPleaseFixTheErrorInTheMessageWindow); + //Firing the exception twice + its handling message dialog causes high CPU load. Issue #41019. + //raise Exception.Create(lisUnableToCreateNewMethod+' '+lisPleaseFixTheErrorInTheMessageWindow); end; finally OpenEditorsOnCodeToolChange:=OldChange;