TCustomApplication.DoRun lazarus / 31-LCL ---------------------------------------------------------------------- mcculloch · 2025-07-11 16:05 I am looking at Lazarus again since I was a big fan of Delphi many years ago.  I opened a new Console Application project and compiled it without adding anything.  It works, but of course doesn't do anything.  The class inheriting TCustomApplication declares a procedure DoRun as an override, suggesting that TCustomApplication has or inherits a DoRun procedure.  Is DoRun defined in one of the ancestors? In general, I'm having difficulty figuring out how DoRun gets called. Thanks ---------------------------------------------------------------------- cdbc · 2025-07-11 16:58 Hi 'TCustomApplication' has a method 'Run', that calls the /virtual/ 'DoRun' method, i.e.: It ends up calling your overridden 'DoRun' instead of the one in the ancester-class. Regards Benny ---------------------------------------------------------------------- mcculloch · 2025-07-11 19:17 Thanks!  That makes sense.  I looked at the docs for TCustomApplication on freepascal.org and it doesn't list a procedure DoRun at all.  That's why I was confused.  It could be that it's not listed because it doesn't have an implementation for it. ---------------------------------------------------------------------- dsiders · 2025-07-11 19:28 Quote from: mcculloch on July 11, 2025, 09:17:47 pmThanks!  That makes sense.  I looked at the docs for TCustomApplication on freepascal.org and it doesn't list a procedure DoRun at all.  That's why I was confused.  It could be that it's not listed because it doesn't have an implementation for it. RTL and FCL docs do not include private or protected members. ---------------------------------------------------------------------- cdbc · 2025-07-11 19:31 Hi You can always Ctrl + left-click on a method or a class and codetools will take you to the implementation, in the code editor ofc. Regards Benny