Include file not found error when creating event handler. lazarus / 13-General ---------------------------------------------------------------------- Elphi · 2005-12-29 13:49 Hello, I have a project where every unit includes the file InEveryUnit.inc. The compiler settings seem ok because I can compile the project. However, when I try to create an OnCreate event handler for the main form through the Object Inpector I get the message: Unable to find method. Plz fix the error shown in the message window. The message windows says InEveryUnit.inc can't be found in a unit included in the uses clause of the main form. When I comment out the include directive in this unit, the message doesn't appear. What's wrong? ---------------------------------------------------------------------- Vincent Snijders · 2005-12-30 10:45 Did you add the path to the includefile in the Include Path? ---------------------------------------------------------------------- Anonymous · 2005-12-30 11:02 Yes. Cleared and redefined several times. Started a clean project building search and include path again. Irregard of whether a search path has been defined, it is of course very strange that an exception is raised when I try to create an event handler, isn't it? ---------------------------------------------------------------------- Vincent Snijders · 2005-12-30 11:07 No, that is not strange. To be able to create a correct event method, lazarus needs to parse your source to get type definitions etc. If it cannot find it, then it cannot complete the event handler creation. ---------------------------------------------------------------------- Anonymous · 2005-12-31 10:04 Ok, but meanwhile I got these messages on missing lists.inc, streams.inc, ... Is my IDE unstable? ---------------------------------------------------------------------- Vincent Snijders · 2005-12-31 10:30 Maybe you added some rtl source paths to the compiler options? ---------------------------------------------------------------------- Anonymous · 2005-12-31 11:50 No, I didn't. I'm going to reinstall the IDE because things are getting worse. ---------------------------------------------------------------------- Elphi · 2006-01-02 09:15 Reinstalling didn't help anything. Any other suggestions what to do? ---------------------------------------------------------------------- Elphi · 2006-01-21 15:43 This problem is still not solved. I ask myself if I should enter a path my own include files in the Include Files section of the Compiler Options or not.