First program with Lazarus lazarus / 13-General ---------------------------------------------------------------------- hvh · 2010-01-19 21:00 My OS is Windows 7 64 bits Installed Lazarus 0.29-23335-fpc-2.3.1-20100101-win 64.exe. Starting the program for the first time I see in the editor an unit file unit1. Pressing F 12 shows the form belonging to it. Yust to find out eveything is OK  I Press F 9. Then Build is succesfull but the program window does not appear. When I look in the directory where I have stored my test project, there is the executable file Project1.exWhy is the file project1.exe not started. Normally after pressing  F 9 Building and starting must happen. ---------------------------------------------------------------------- Ñuño_Martínez · 2010-01-20 09:35 Run it from console and see if it prints any error. ---------------------------------------------------------------------- Troodon · 2010-01-20 18:18 As a general rule, do not try running your application from the Lazarus IDE, although "it should work". Run it from Windows Explorer instead. ---------------------------------------------------------------------- tcare · 2010-01-20 20:59 Try saving the project and the unit1.pas (you can rename or remove later) first.  Then try running it. [F9] If that did not work, save everything and restart Lazarus. This behavior happened to me when I first installed Lazarus (09.28.2). I don't know why this happens... ---------------------------------------------------------------------- Troodon · 2010-01-20 23:24 Here is the thing: when it does work (running the compiled application from the IDE, that is) it only works for a while, then Lazarus crashes and you need to restart it, and sometimes it won't even open your project as expected anymore because the project files have become corrupted. You will be much better off (even if less "confortable") running the executable by double-clicking its icon in Windows Explorer. ---------------------------------------------------------------------- José Mejuto · 2010-01-21 00:05 Quote from: Troodon on January 21, 2010, 12:24:01 amHere is the thing: when it does work (running the compiled application from the IDE, that is) it only works for a while, then Lazarus crashes and you need to restart it, and sometimes it won't even open your project as expected anymore because the project files have become corrupted. You will be much better off (even if less "confortable") running the executable by double-clicking its icon in Windows Explorer. Hello, I had never started the program from the shell. In that case you can not debug (well, not debug with the GUI), in error case you will not be automagically moved to the offended line, and so on. The are several possibilities to not be able to run the project from inside the Lazarus, I had the same problem with a recent build for Win64 and it is somehow related with the debugger (not verified due lack of time). Also it is recommended to use paths for the project without spaces in any of the path chain, and of course project should not be located under a UAC supervised path like "Program Files".